Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Error allocating a servlet instance

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
When i run Form.html page & click submit,i get this error from tomcat
Error allocating a servlet instance
 
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Error by tomcat

 
Bear Bibeault
Sheriff
Posts: 67595
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

root cause



What is the root cause exception?
 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Root Cause Exception

 
Kamal Trivedi
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
hi ~
maybe
<form method="POST" action="/yourAppName/SelectCoffee.do">
or
<url-pattern>SelectCoffee.do</url-pattern>

try that.
 
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic