This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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(ActionServlet.java:1035)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1012)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

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 /0.0.0.0:8011
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">




<struts-config>
<form-beans>
<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"/>
</form-bean>
</form-beans>



<action-mappings>
<action
path="/OpsAssistant"
type="com.opsassistant.OpsAssntAction"
name="OpsAssntForm"
scope="request"
input="/OpsAssnt.jsp"
validate="false"
parameter="method">
<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"/>
</action>
</action-mappings>

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







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

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.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic