aspose file tools*
The moose likes Servlets and the fly likes Error allocating a servlet instance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Error allocating a servlet instance

Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
Exception report

Exception : Error allocating a servlet instance

What is this Error & how Can this error can be solved ?Please Help.
[banghead] I have get Stucked up....... [banghead]
I am calling this Servlet from one HTML page.





This is my Web.xml


This is my Servlet



This is my Form.html from where i am calling servlet




[BPSouther: Brought subject line and initial text over from other post]
[ July 20, 2007: Message edited by: Ben Souther ]

Kamal.B.Trivedi
Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
When i run Form.html page & click submit,i get this error from tomcat
Error allocating a servlet instance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

Please be sure not to start new topics to add information to an existing one. Since you;ve provided more info in this topic, I'll close the previous one.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
Sorry .....i have made mistake.Please Delete previous topic.
Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
Error by tomcat

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

root cause


What is the root cause exception?
Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
Root Cause Exception

Kamal Trivedi
Ranch Hand

Joined: May 22, 2006
Posts: 38
I got the solution.

I have configured tomcat to jre1.5
&
Classpath was pointing to jre1.6

So this Error occured.
li bei
Greenhorn

Joined: Jul 22, 2007
Posts: 20
hi ~
maybe
<form method="POST" action="/yourAppName/SelectCoffee.do">
or
<url-pattern>SelectCoffee.do</url-pattern>

try that.


I am sorry that my English is poor.If there is something wrong with my words,please tell me .Thank you very much.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Kamal Trivedi:
I got the solution.

I have configured tomcat to jre1.5
&
Classpath was pointing to jre1.6

So this Error occured.


Is this the problem?
I mean , a class compiled with JDK 1.5 should run well within JRE-1.6.


Rahul Bhattacharjee
LinkedIn - Blog
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Rahul Bhattacharjee:


Is this the problem?
I mean , a class compiled with JDK 1.5 should run well within JRE-1.6.


He had it the other way around.
His classpath (assuming, he meant path; what the compiler sees) is set to 1.6 and Tomcat was using 1.5
[ July 23, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Ben Souther:
He had it the other way around.


silly of me.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Kamal Trivedi:
I got the solution.

I have configured tomcat to jre1.5
&
Classpath was pointing to jre1.6

So this Error occured.


Glad it's working for you.
Thanks for posting back with the solution.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error allocating a servlet instance