Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple WARs in a Single EAR

2 views
Skip to first unread message

novd...@yahoo.co.in

unread,
Jun 10, 2009, 12:16:34 AM6/10/09
to
Hi All,

Tool Used to deploy EAR : Application Server Toolkit / RAD
Server : WAS

I have an EAR and two Wars war1 and war2 inside the EAR. Each WAR has got their own web.xml. Also there is a seperate context root for both the WARs. Here the problem is after deploying the EAR i can only access the first WAR1 and all the beans are properly loaded when the JSP page i called. In the Second WAR only the JSP page is getting loaded and bean fails to load as it always says method not found. Can you anyone explain me what could be the problem.

Thanks in advance.

Ken Hygh

unread,
Jun 10, 2009, 5:46:14 AM6/10/09
to

What's in the logs? Where's the 'bean'?

Ken

mani_k...@yahoo.com

unread,
Jun 11, 2009, 5:57:52 AM6/11/09
to
Do u have different class loader policies for the WARS?

novd...@yahoo.co.in

unread,
Jun 11, 2009, 6:28:46 AM6/11/09
to
Class Loader

The General Properties which i have is as follows

Class Loader Order:
Option 1: Classses loaded with parent class loader first
*Option 2: Classes laoded with application class loader first - *this option is chosen**

WAR class loader policy:
Option 1: Class loader for each WAR file in application
*Option 2: Single class loader for application - this option is chosen.*

In the WAR class loader policy i chose the Option 1 and saw but then it is not working.

Please help me out in this problem....i am in a very urgency situation to find solution for this.

Thanks in advance.

mani_k...@yahoo.com

unread,
Jun 12, 2009, 4:19:20 AM6/12/09
to
Yor are using single class loader for the application, so your problem is not related to class loaders.
With out any logs its difficult to come to a conclusion. I think something wrong with your 2nd WAR,you
can try installing the application with the 2nd WAR alone and test it.

novd...@yahoo.co.in

unread,
Jun 12, 2009, 6:55:05 AM6/12/09
to
I have my EAR set up like as follows
EAR which containes
jar1.jar
jar2.jar
WAR1
refers to jar1.jar
WAR2
refers to jar1.jar

So all the jars are kept in the ear and each war can access what ever module jar it wants.

For the WAR1 it works fine and for the WAR2 it fails.

I tried having the WAR2 alone it works fine. When i include both the WARs then the 2nd WAR fails.

The Signin page loads for the Second WAR where the page has JSF components. And when i perform a click action it says method not found.
The log is as follows
O 16:20:08,109 [WebContainer : 1] ERROR InvokeApplicationPhase : #{testHandler.getAddressDetails}: javax.faces.el.MethodNotFoundException: getAddressDetails
javax.faces.FacesException: #{testHandler.getAddressDetails}: javax.faces.el.MethodNotFoundException: getAddressDetails
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:94)
at javax.faces.component.UICommand.broadcast(UICommand.java:332)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:62)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at com.exterro.fusion.cryo.web.util.security.PortalSecurityFilter.doFilter(PortalSecurityFilter.java:77)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)

Please help me out
Thanks

Ken Hygh

unread,
Jun 12, 2009, 8:53:53 AM6/12/09
to

Sounds like you have the faces jar in one of your wars.

Ken

mani_k...@yahoo.com

unread,
Jun 15, 2009, 4:58:09 AM6/15/09
to
Do u have testHandler in both WARs? Its looks like typical class loading issue. You can
go through the class loading section of the following link to fix your issue.

http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.was_v6/was/6.1/Classloading.html

Thanks,
Mani

0 new messages