File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes HTTP Status 500 -Error instantiating servlet class com.Category Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "HTTP Status 500 -Error instantiating servlet class com.Category" Watch "HTTP Status 500 -Error instantiating servlet class com.Category" New topic
Author

HTTP Status 500 -Error instantiating servlet class com.Category

tigerxx om
Greenhorn

Joined: Oct 16, 2012
Posts: 2
i am very new to this topic.....when i run this on apache tomcat 7.0.32 then i get the welcome page...but when i click on submit then___________________

type Exception report

message Error instantiating servlet class com.Category

description The server encountered an internal error that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Error instantiating servlet class com.Category
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
root cause

java.lang.ClassNotFoundException: com.Category
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.32 logs.



Please help me someOne.....................what goes wrong.

i have put the files like this:-
webapps-->categorycheck---> (web.xml)(newform.html)(Category.java) -->WEB-INF -->web.xml -->classes -->com -->Category.class


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<servlet>
<servlet-name>Category </servlet-name>
<servlet-class>com.Category</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Category</servlet-name>
<url-pattern> /Category.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>newform.html</welcome-file>
</welcome-file-list>
</web-app>

tigerxx om
Greenhorn

Joined: Oct 16, 2012
Posts: 2
in url pattern i have tried this also

<url-pattern> /com.Category.do</url-pattern>
Pablo Abbate
Ranch Hand

Joined: Aug 06, 2012
Posts: 30

where is Category.java?


Nissi Group, Posicionamiento Web, Desarrollo de Software, DiseƱo Web
Blog , LinkedIn
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 500 -Error instantiating servlet class com.Category