How do I add a custom Servlet to my store?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Commerce suite > How do I add a custom Servlet to my store?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How do I add a custom Servlet to my store?  
KBDRand


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-03-05 10:54 PM

I want to add a custom servlet (not a JSP, I need it to be a servlet), but
after adding a servlet within my Java Source folder under my Stores project
and then starting the server I get a ClassNotFoundException for my servlet
(it has been added to the web.xml).

Even after rebuilding my project (to compile the servlet) it still give me
the ClassNotFoundException.

Can anyone tell me where I should be putting my servlet code to get it to
work with Commerce?

Environment:

Websphere Commerce 5.6 Express
WSAD Test Environment







[ Post a follow-up to this message ]



    Re: How do I add a custom Servlet to my store?  
Robert Brown


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-05-05 10:50 PM

> I want to add a custom servlet (not a JSP, I need it to be a servlet), but
> after adding a servlet within my Java Source folder under my Stores projec
t
> and then starting the server I get a ClassNotFoundException for my servlet
> (it has been added to the web.xml).
>
> Even after rebuilding my project (to compile the servlet) it still give me
> the ClassNotFoundException.
>
> Can anyone tell me where I should be putting my servlet code to get it to
> work with Commerce?
>
> Environment:
>
> Websphere Commerce 5.6 Express
> WSAD Test Environment

You should be building your code within WSAD in the
WebSphereCommerceServerExtensionsLogic area.  This should be compiled
into a single jar (of the same name) and pushed to the EAR folder with
the other IBM EJB jars.  You can also push custom classes directly under
the Stores.war\WEB-INF\classes directory if they are expanded to mirror
the package names.  There is a \lib folder under \WEB-INF too for other
jars to support the environment.

Sounds like you need more training.  Do you know where to find material
for developers?

R





[ Post a follow-up to this message ]



    Re: How do I add a custom Servlet to my store?  
KBDRand


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-14-05 10:56 PM

I understand where to put custom code, we have a bunch, I'm just wondering
why if Commerce is a J2EE environment that the Stores project doesn't
support servlets?

"Robert Brown" <rbrown@redbaritone.com> wrote in message
news:cu2prv$3jfe$1@news.boulder.ibm.com... 
but[vbcol=seagreen] 
project[vbcol=seagreen] 
servlet[vbcol=seagreen] 
me[vbcol=seagreen] 
to[vbcol=seagreen] 
>
> You should be building your code within WSAD in the
> WebSphereCommerceServerExtensionsLogic area.  This should be compiled
> into a single jar (of the same name) and pushed to the EAR folder with
> the other IBM EJB jars.  You can also push custom classes directly under
> the Stores.war\WEB-INF\classes directory if they are expanded to mirror
> the package names.  There is a \lib folder under \WEB-INF too for other
> jars to support the environment.
>
> Sounds like you need more training.  Do you know where to find material
> for developers?
>
> R







[ Post a follow-up to this message ]



    Re: How do I add a custom Servlet to my store?  
Robert Brown


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-14-05 10:56 PM

> I understand where to put custom code, we have a bunch, I'm just wondering
> why if Commerce is a J2EE environment that the Stores project doesn't
> support servlets?

A ClassNotFoundException does not mean that WC does not support servlets.

R

> "Robert Brown" <rbrown@redbaritone.com> wrote in message
> news:cu2prv$3jfe$1@news.boulder.ibm.com...
> 
>
> but
> 
>
> project
> 
>
> servlet
> 
>
> me
> 
>
> to
> 
>
>
>





[ Post a follow-up to this message ]



    Re: How do I add a custom Servlet to my store?  
KBDRand


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-16-05 10:58 PM

I never said that it does.

I said I was getting them because the Commerce Toolkit would not allow me to
compile Java classes that reside inside of the Stores WAR. I guess I could
create the classes outside of the project, compile it outside and then move
the compiled class into the project, but why should I have to go to all that
trouble?

I'm not trying to blast Commerce, I'd just like to know how to setup my
project so that I can compile Java classes inside of the Stores WAR.

I'm asking for help here, not flames.

"Robert Brown" <rbrown@redbaritone.com> wrote in message
news:cur0q3$3b6k$1@news.boulder.ibm.com...[vbcol=seagreen] 
wondering[vbcol=seagreen] 
>
> A ClassNotFoundException does not mean that WC does not support servlets.
>
> R
> 







[ Post a follow-up to this message ]



    Re: How do I add a custom Servlet to my store?  
KBDRand


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-16-05 10:58 PM

Follow up:

I went through my previous posts and noticed that some text I thought I post
here didn't get posted (I must have posted it to another place I usually
frequent).

Anyway, the major problem from the beginning is the fact that I can't seem
to compile any Java classes that reside inside of the Stores WA, including
servlets which leads to a ClassNotFoundException.

Sorry for the confusion.

"KBDRand" <kbdrand@hotmail.com> wrote in message
news:cv01al$6nr0$1@news.boulder.ibm.com...
> I never said that it does.
>
> I said I was getting them because the Commerce Toolkit would not allow me
to
> compile Java classes that reside inside of the Stores WAR. I guess I could
> create the classes outside of the project, compile it outside and then
move
> the compiled class into the project, but why should I have to go to all
that
> trouble?
>
> I'm not trying to blast Commerce, I'd just like to know how to setup my
> project so that I can compile Java classes inside of the Stores WAR.
>
> I'm asking for help here, not flames.
>
> "Robert Brown" <rbrown@redbaritone.com> wrote in message
> news:cur0q3$3b6k$1@news.boulder.ibm.com... 
> wondering 
servlets.[vbcol=seagreen] 
servlet),[vbcol=seagreen] 
give[vbcol=seagreen] 
it[vbcol=seagreen] 
under[vbcol=seagreen] 
mirror[vbcol=seagreen] 
other[vbcol=seagreen] 
material[vbcol=seagreen] 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:02 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register