I found one way it can work. I created
wiki.war dir and in that added my war appln in the exploded format. That too some portion still doesn't work properly.
If I have to add ejbs to it and bundle them as EAR, I do not think it will work. For me the whole problem is, the JBoss is not able to invoke Action servlet mapped to actions in the struts-config.xml. Thus view.do action seems to be unmapped.
If I see the console output it seems there are more than one classloader.
And it may happen that
20:29:41,194 INFO [EmbeddedCatalinaService41] Using Java2 parent classloader delegation: true
may the mother of all errors.
I would be nice if JBoss develoeprs can solve this mystery as many guys are facing the same problem.
Can you post a snippet of your code including your struts-config.xml and your action class that it cant load. Maybe its in the configuration.
I use the same Jboss bundle with Struts and have no problems.
I have a related question with struts... Where are the struts .tld files supposed to go? In Tomcat stand-alone, you just put them in the WEB-INF directory of the webapp that you're doing. Haven't been able to figure out where they go in the bundled jboss/tomcat. Anyone that can help would be appreciated.
This EAR file works properly in weblogic and the WAR file works properly on Tomcat.
The code is very simple. The index.html loads an action servlet which send a jsp as response.
<!-- View Page -->
Chiki Welcome (Redirect)
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=../view.do?nodeId=Chiki">
If your browser does not redirect you, Please click here