|
Home > Archive > WebSphere Commerce suite > February 2005 > How do I add a custom Servlet to my store?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How do I add a custom Servlet to my store?
|
|
| KBDRand 2005-02-03, 5: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
| |
| Robert Brown 2005-02-05, 5: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 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
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
| |
| KBDRand 2005-02-14, 5: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
| |
| Robert Brown 2005-02-14, 5: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
>
>
>
>
| |
| KBDRand 2005-02-16, 5: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
>
| |
| KBDRand 2005-02-16, 5: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]
>
>
|
|
|
|
|