Bookmark Topic Watch Topic
  • New Topic

Error allocating a servlet instance  RSS feed

 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry .....i have made mistake.Please Delete previous topic.
 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
Error by tomcat

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
root cause


What is the root cause exception?
 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
Root Cause Exception

 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Report post to moderator
I got the solution.

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

So this Error occured.
 
li bei
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi ~
maybe
<form method="POST" action="/yourAppName/SelectCoffee.do">
or
<url-pattern>SelectCoffee.do</url-pattern>

try that.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Report post to moderator
Originally posted by Ben Souther:
He had it the other way around.


silly of me.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!