You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Miguel Angel Mulero Martinez <mi...@mad.tecsidel.es> on 2002/09/20 08:53:34 UTC
RE: Dumb Question ../servlet/com.justatest.test.MyServlet error
Maybe the InitSnoop.java don't start with "package com.justatest.test;"
-----Mensaje original-----
De: John-Paul Delaney [mailto:jp@justatest.com]
Enviado el: viernes, 20 de septiembre de 2002 12:43
Para: tomcat-user@jakarta.apache.org
Asunto: Dumb Question ../servlet/com.justatest.test.MyServlet error
Hello List...
I've created the directory path:
<tomcat-root>webapps/jat/WEB-INF/classes/com/justatest/test/
but I get an error when I try to run the oreilly servlet from URL:
http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop
The same servlet will run ok from URL:
http://localhost:8080/jat/servlet/InitSnoop
The exception is:
Cannot allocate servlet instance for
path /jat/servlet/com.justatest.test.InitSnoop
cause:
lang.NoClassDefFoundError: com/justatest/test/InitSnoop (wrong name:
InitSnoop)
Any suggestions on what I'm doing wrong would be appreciated,
thanks
/j-p.
--------------------
JUSTATEST Art Online
www.justatest.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Dumb Question com.justatest.test.MyServlet error
Posted by John-Paul Delaney <jp...@justatest.com>.
Hello... Sorry about pushing so - but I'm stuck with this one....
What URL do I use to launch the servlet MyServlet deployed (not a .war) as:
<tomcat-root>/webapps/jat/classes/com/justatest/test/MyServlet.class?
(<tomcat-root>/webapps/jat/classes/MyServlet.class launches successfully with
this url:
http://localhost:8080/jat/servlet/MyServlet)
I'm running tomcat 4.0.1 with sun jdk 1.3.1 on redhat 7.0.
thanks for any help,
/j-p.
Quoting Miguel Angel Mulero Martinez <mi...@mad.tecsidel.es>:
> Maybe the InitSnoop.java don't start with "package com.justatest.test;"
>
>
> -----Mensaje original-----
> De: John-Paul Delaney [mailto:jp@justatest.com]
> Enviado el: viernes, 20 de septiembre de 2002 12:43
> Para: tomcat-user@jakarta.apache.org
> Asunto: Dumb Question ../servlet/com.justatest.test.MyServlet error
>
> Hello List...
>
> I've created the directory path:
> <tomcat-root>webapps/jat/WEB-INF/classes/com/justatest/test/
>
> but I get an error when I try to run the oreilly servlet from URL:
> http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop
>
>
> The same servlet will run ok from URL:
> http://localhost:8080/jat/servlet/InitSnoop
>
> The exception is:
> Cannot allocate servlet instance for
> path /jat/servlet/com.justatest.test.InitSnoop
>
> cause:
> lang.NoClassDefFoundError: com/justatest/test/InitSnoop (wrong name:
> InitSnoop)
>
> Any suggestions on what I'm doing wrong would be appreciated,
>
> thanks
> /j-p.
>
--------------------
JUSTATEST Art Online
www.justatest.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Re[2]: Dumb Question ../servlet/com.justatest.test.MyServlet
error
Posted by john-paul delaney <jp...@justatest.com>.
> Are you saying that your directory structure (where the servlet .class
> file resides) looks like the following:
>
> <TOMCAT_HOME>/webapps/<your-app-name>/WEB-INF/classes/com/justatest/test
> /InitSnoop.class
>
Yes.
Firstly, I needed to know if I was reading the docs correctly - it works for others apparantly, so that's something I suppose. Now to find out what's causing that "wrong name" error message.
thanks
/j-p.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Re[2]: Dumb Question ../servlet/com.justatest.test.MyServlet error
Posted by Anand Sharma <an...@cisco.com>.
John:
Are you saying that your directory structure (where the servlet .class
file resides) looks like the following:
<TOMCAT_HOME>/webapps/<your-app-name>/WEB-INF/classes/com/justatest/test
/InitSnoop.class
If so, then I will be surprised. If you've something like
<TOMCAT_HOME>/webapps/<your-app-name>/WEB-INF/classes/InitSnoop.class
then that would explain the error Tomcat is throwing.
Just a thought..
Sincerely,
Anand
-------------------------------------------
Anand Sharma
Global AS-IT Support team
Cisco Systems
408.525.7080
http://asitzone.cisco.com
"When in doubt, follow your heart"
-----Original Message-----
From: john-paul delaney [mailto:jp@justatest.com]
Sent: Friday, September 20, 2002 3:49 PM
To: Tomcat Users List
Subject: Re: Re[2]: Dumb Question
../servlet/com.justatest.test.MyServlet error
Thanks for confirming that Jacob... I was beginning to doubt that I had
understood the web app. deployment strategy. Nevertheless, an internal
server error is returned when I use the url you suggested:
Cannot allocate servlet instance for path
/jat/servlet/com.justatest.test.InitSnoop.
And the root cause is:
NoClassDefFoundError: com/justatest/test/InitSnoop (wrong name:
InitSnoop)
I haven't used a servlet-mapping, and I can confirm an InitSnoop.class
exists in that directory.
Can anyone shed some light on this for me?
thanks
/j-p.
On Fri, 20 Sep 2002, Jacob Kjome wrote:
> Hello john-paul,
>
> If you haven't provided a servlet-mapping, you can use Tomcat's
> invoker servlet like this:
>
> http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop
>
> Otherwise, you could provide a servlet-mapping to, say, "/initsnoop"
> and access it like this:
>
> http://localhost:8080/jat/initsnoop
>
>
> Jake
>
> Friday, September 20, 2002, 11:32:08 AM, you wrote:
>
>
>
> jpd> Then what is the URL I should be using to invoke the InitSnoop
> jpd> servlet if the file system location is:
>
> jpd>
> jpd> <tomcat-root>webapps/jat/WEB-INF/classes/com/justatest/test/InitS
> jpd> noop?
>
> jpd> thanks
> jpd> /j-p.
>
> jpd> On Fri, 20 Sep 2002, Miguel Angel Mulero Martinez wrote:
>
> >> Maybe the InitSnoop.java don't start with "package
> >> com.justatest.test;"
>
>
>
> jpd> -----------------------
> jpd> JUSTATEST Art Online
> jpd> www.justatest.com
>
>
>
>
> jpd> --
> jpd> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> jpd> For additional commands, e-mail:
> jpd> <ma...@jakarta.apache.org>
>
>
>
>
-----------------------
JUSTATEST Art Online
www.justatest.com
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Re[2]: Dumb Question ../servlet/com.justatest.test.MyServlet
error
Posted by john-paul delaney <jp...@justatest.com>.
Thanks for confirming that Jacob... I was beginning to doubt that I had understood the web app. deployment strategy. Nevertheless, an internal server error is returned when I use the url you suggested:
Cannot allocate servlet instance for path /jat/servlet/com.justatest.test.InitSnoop.
And the root cause is:
NoClassDefFoundError: com/justatest/test/InitSnoop (wrong name: InitSnoop)
I haven't used a servlet-mapping, and I can confirm an InitSnoop.class exists in that directory.
Can anyone shed some light on this for me?
thanks
/j-p.
On Fri, 20 Sep 2002, Jacob Kjome wrote:
> Hello john-paul,
>
> If you haven't provided a servlet-mapping, you can use Tomcat's
> invoker servlet like this:
>
> http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop
>
> Otherwise, you could provide a servlet-mapping to, say, "/initsnoop"
> and access it like this:
>
> http://localhost:8080/jat/initsnoop
>
>
> Jake
>
> Friday, September 20, 2002, 11:32:08 AM, you wrote:
>
>
>
> jpd> Then what is the URL I should be using to invoke the InitSnoop servlet if the file system location is:
>
> jpd> <tomcat-root>webapps/jat/WEB-INF/classes/com/justatest/test/InitSnoop?
>
> jpd> thanks
> jpd> /j-p.
>
> jpd> On Fri, 20 Sep 2002, Miguel Angel Mulero Martinez wrote:
>
> >> Maybe the InitSnoop.java don't start with "package com.justatest.test;"
>
>
>
> jpd> -----------------------
> jpd> JUSTATEST Art Online
> jpd> www.justatest.com
>
>
>
>
> jpd> --
> jpd> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> jpd> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
-----------------------
JUSTATEST Art Online
www.justatest.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re[2]: Dumb Question ../servlet/com.justatest.test.MyServlet error
Posted by Jacob Kjome <ho...@visi.com>.
Hello john-paul,
If you haven't provided a servlet-mapping, you can use Tomcat's
invoker servlet like this:
http://localhost:8080/jat/servlet/com.justatest.test.InitSnoop
Otherwise, you could provide a servlet-mapping to, say, "/initsnoop"
and access it like this:
http://localhost:8080/jat/initsnoop
Jake
Friday, September 20, 2002, 11:32:08 AM, you wrote:
jpd> Then what is the URL I should be using to invoke the InitSnoop servlet if the file system location is:
jpd> <tomcat-root>webapps/jat/WEB-INF/classes/com/justatest/test/InitSnoop?
jpd> thanks
jpd> /j-p.
jpd> On Fri, 20 Sep 2002, Miguel Angel Mulero Martinez wrote:
>> Maybe the InitSnoop.java don't start with "package com.justatest.test;"
jpd> -----------------------
jpd> JUSTATEST Art Online
jpd> www.justatest.com
jpd> --
jpd> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
jpd> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
Best regards,
Jacob mailto:hoju@visi.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Dumb Question ../servlet/com.justatest.test.MyServlet error
Posted by john-paul delaney <jp...@justatest.com>.
Then what is the URL I should be using to invoke the InitSnoop servlet if the file system location is:
<tomcat-root>webapps/jat/WEB-INF/classes/com/justatest/test/InitSnoop?
thanks
/j-p.
On Fri, 20 Sep 2002, Miguel Angel Mulero Martinez wrote:
> Maybe the InitSnoop.java don't start with "package com.justatest.test;"
-----------------------
JUSTATEST Art Online
www.justatest.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>