Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.servlet.UnavailableException: Parsing error processing resource path

Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting this issue when I am running my struts application

Aug 13, 2012 12:03:43 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\oracle\product\10.2.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;c:\Program Files\Sophos\SafeGuard Enterprise\SSO\;C:\Program Files\Enterprise Vault\EVClient\;C:\Program Files\java\jdk1.7.0\bin;C:\Program Files\Java\jdk1.6.0_29\bin;C:\Eclipse Indigo\Eclipse Indigo\Indigo-JEE;;.
Aug 13, 2012 12:03:43 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:OPS_Assistant' did not find a matching property.
Aug 13, 2012 12:03:44 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8082
Aug 13, 2012 12:03:44 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1549 ms
Aug 13, 2012 12:03:44 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 13, 2012 12:03:44 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
Aug 13, 2012 12:03:45 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\UIS\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\OPS_Assistant\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
Aug 13, 2012 12:03:45 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Aug 13, 2012 12:03:45 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /OPS_Assistant threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path
at org.apache.struts.action.ActionServlet.handleConfigException(
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(
at org.apache.struts.action.ActionServlet.initModuleConfig(
at org.apache.struts.action.ActionServlet.init(
at javax.servlet.GenericServlet.init(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(

Aug 13, 2012 12:03:46 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8082
Aug 13, 2012 12:03:46 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /
Aug 13, 2012 12:03:46 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/125 config=null
Aug 13, 2012 12:03:46 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1841 ms
Aug 13, 2012 12:03:47 PM org.apache.catalina.core.ApplicationDispatcher invoke
WARNING: Servlet action is currently unavailable

Struts-config.xml file is

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration1.3//EN" "struts-config_1_3.dtd">

<form-bean name="OpsAssntForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="select1" type="java.lang.String" />
<form-property name="text1" type="java.lang.String" />
<form-property name="highLog" type="java.lang.String"/>
<form-property name="lowLog" type="java.lang.String"/>
<form-property name="scriptlist" type="java.util.List"/>

<forward name="success" path="/jsp/OpsAssnt.jsp" />
<forward name="uis_auth_workflow" path="/jsp/OpsAssnt.jsp" />
<forward name="uis_registration_workflow" path="/jsp/OpsAssnt.jsp" />
<forward name="uis_cert_dss" path="/jsp/OpsAssnt.jsp"/>

<controller nocache="true"/>
<message-resources parameter="config.ApplicationResources" />
<!-- plug-in className="com.verizon.scrubber.controller.helper.TestPlugin"></plug-in -->

Amit Goda
Ranch Hand
Posts: 37
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Your error states clearly that apache was unable to load certain file. So I guess you are missing one of the jar files from your build path. Can you list down the jar files in your application or check out if you are using older version of some jar? Also first check you have not misplaced and jar file.

Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amit,
Thanks for reply..
you are right.problm with jar file only.problem got sloved.

What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!