This content has been marked as final. Show 1 reply
Which version of JBoss are you using?
We just migrated to java 1.6 from 1.4
The latest stable version of JBoss (i.e. 4.2.2) is not yet fully qualified to run under Java6. You will have to use Java5 instead.
So i specified docbase in server.xml in webdeploy directory in Jboss.(Correct me if there is any other way to specify the exploded code.)
There are a couple of options for this:
1) Follow this http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment
2) Edit the jboss-service.xml file under %JBOSS_HOME%/server/< serverName>/conf folder to include the path where you have the deployable application. There's a attribute named URLs under Deployment Scanning section which contains the list of folders which will scanned by JBoss for deploying application. Read through the comments there, to understand how you can add your own folder which will be scanned by JBoss:
<attribute name="URLs"> deploy/ </attribute>
As far as the datasource issue is concerned, you will first have to deploy the datasource using a -ds.xml file. The datasource by default will be bound to the java: namespace with the jndi-name that you specified in the -ds.xml file. If you further have to bind it in the java:comp/env namespace then you will have to configure it using resource-ref elements in the web.xml and jboss-web.xml files