| Author |
migration from weblogic 8.1.4 to jBoss
|
Aniruddh Joshi
Ranch Hand
Joined: Jul 29, 2008
Posts: 275
|
|
Hi all, I am using bea weblogic 1.4 for my app. But due to some reasons I have to switch to an open-source server. My application ( which I am maintaining ) seems to use EJBs , there's no such code present but in the application directory a folder called EJBServices is present which has a XML called ejb-jar.xml Hence I am looking forward to use jBoss. My app directory structure is as follows :
AGS \.metadata \.settings \ags .... \user .... \js .... \META-INF ...-MANIFEST.MF ....\secure ..-all JSPs ....\WEB-INF ......\classes ......\lib ......\src ....\config ......-config.properties ......-log4j.jar \EJBServices ....-ejb-jar.xml ....-weblogic-ejb-jar.xml \META-INF -MANIFEST.MF .classpath .project
Please suggest the apporach I should to deploy this on jBoss server ( I have 4.2.2 ). I have gone thruogh the getting started documentation at jBoss.org, but I think I need some more study. If possible direct me to some tutorial . [ December 04, 2008: Message edited by: Aniruddh Joshi ]
|
Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8141
|
|
|
For deploying this application, you first have to create an EAR (which can contain the WAR and the EJB jars) and deploy it in JBoss. Do you have the EARs? If yes, then for deploying in JBoss, all you have to do is place the EAR in %JBOSS_HOME%/server/default/deploy folder and start the server.
|
[My Blog] [JavaRanch Journal]
|
 |
Aniruddh Joshi
Ranch Hand
Joined: Jul 29, 2008
Posts: 275
|
|
Thanks Jai, I don't have the EAR ..how do I create it ?
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8141
|
|
These might help you get started: Packaging EAR structure
|
 |
Aniruddh Joshi
Ranch Hand
Joined: Jul 29, 2008
Posts: 275
|
|
Thanks Jai, I deployed the app using myEclipse and a test page is working, but there is a problem, When I deploy it using myEclipse, it creates a web.xml by its own which has only the default tags in it. I want to use my own deployment descriptor as I have to assign roles and a lot more is defined there. I went to the server directory and kept my original web.xml there... when I started the server , following parsing error occured : Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> uploadImage.jas in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2414) at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2390) ... 158 more 2008-12-14 12:02:58,089 ERROR [org.apache.catalina.startup.ContextConfig] Parse error in application web.xml file at jndi:/localhost/iee/WEB-INF/web.xml java.lang.IllegalArgumentException: Invalid <url-pattern> uploadImage.jas in servlet mapping at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2807) Can someone please suggest why this happens . same application is working fine on weblogic 8.1,even the above url pattern works.
|
 |
 |
|
|
subject: migration from weblogic 8.1.4 to jBoss
|
|
|