[Installation, Configuration & DEPLOYMENT] - Re: Help! Migrating from tomcat to Jboss
by jaikiran
Which version of JBoss are you using?
anonymous wrote : 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.
anonymous wrote : 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
OR
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121853#4121853
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121853
18 years, 6 months
[Installation, Configuration & DEPLOYMENT] - SAR Deployers conflict
by deruelle_jean
Hi guys,
We are currently building a sip servlets (JSR 289) implementation that aims to be able to run both on top of Tomcat and Jboss.
Unfortunately for us, the specs mandates that compliant containers should be able to deploy sip servlets bundled as a sar archive (.sar extension). A valid sar file should contain a sip.xml in its WEB-INF directory.
This requirement made me look into Jboss AS 4.2.2.GA code and I found that the current SARDeployer will accept any file with .sar extension (in its accepts method, actually through the SubDeployerSupport accepts method). However if the sar file deployed doesn't contain a META-INF/jboss-service.xml it will fail to deploy.
This prevents us to provide our Deployer to deploy sip servlet archive file (sar file with a sip.xml)
We have a proposition to correct the situation so that we can use Jboss as a sip servlets converged container :
Provide an accepts method in SARDeployer that enforce checks to see if the sar file contains a META-INF/jboss-service.xml. If not the method would return false and won't accept the deployment, leaving it for our sip servlets deployer to process and accept since it will contain a sip.xml.
We might have missed something. if not, do you think that would be possible ? If so should I open an issue in JIRA or something ?
Thx.
Best regards
Jean Deruelle
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121847#4121847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121847
18 years, 6 months