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:[EMAIL PROTECTED]] 
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:
<mailto:[EMAIL PROTECTED]>
> jpd> For additional commands, e-mail: 
> jpd> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 


-----------------------
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to