• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parsing error processing resource path /WEB-INF/struts-config.xml  RSS feed

 
Abhi Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating a simple ejb application.

In which I create a WAR and JAR file and then make a EAR file.
When I deploy WAR file then it successfully deploy and as I click on welcome file then i get the login page.

But if I deploy EAR file then it successfully deploy but as I click on welcome file then I get error

Parsing error processing resource path /WEB-INF/struts-config.xml

Can any body help me..???
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the exception stacktrace and also the contents of the struts-config.xml file
 
Abhi Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Content of struts-config.xml file
-----------------------


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>
<form-beans>

<!-- ******************************** Form Beans Start *************************************** -->

<!-- ========================== Login Related Begin============================= -->
<form-bean name="BpmainflowForm"
type="abhi.bsource.bpnp.BpmainflowForm"/>
<!-- ========================== Login Related End=============================== -->

</form-beans>

<action-mappings>
<!-- ************************* Action Mapping for welcome file **************************** -->

<action path="/loginAction"
type="abhi.bsource.bpnp.Log"
scope="request"
validate="false">
<forward name="mainlog" path="/web/login.jsp"/>
</action>


<!-- ************************* Action Mapping for login page **************************** -->

<action path="/login"
type="abhi.bsource.bpnp.BpmainflowAction"
name="BpmainflowForm"
scope="request"
validate="false">
<forward name="output"
path="/web/output.jsp"/>
</action>
</action-mappings>

<message-resources parameter="ApplicationResources"/>

</struts-config>




Exception
----------



Vector size : 1
<Jun 28, 2006 12:47:17 PM GMT+05:30> <Error> <HTTP> <BEA-101018> <[ServletContext(id=11484249,name=e
xample,context-path=/example)] Servlet failed with ServletException
javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml
l
at org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:739)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:715)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:670)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:329)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070
)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!