• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

migration from weblogic 8.1.4 to jBoss

 
Ranch Hand
Posts: 275
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Aniruddh Joshi
Ranch Hand
Posts: 275
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jai,
I don't have the EAR ..how do I create it ?
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These might help you get started:

Packaging
EAR structure
 
Aniruddh Joshi
Ranch Hand
Posts: 275
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!