[Installation, Configuration & DEPLOYMENT] - Re: Best Practice for multiple applications
by PeterJ
Well, one best practice is to definitely not use DefaultDS for your apps. Leave the JBoss AS services with DefaultDS (though you should use a database other than Hypersonic for it), and each of your apps should use their own data sources, unless the apps are accessing the same data in which case they would want to use the same datasource. Actually, if the two apps are accessing the same data you probably really want one set of EJBs accessing the database with two web apps using that one set of EJBs.
As to whether to run them in the same app server instance or in two instances, the answer to that depends on other factors. Such as:
* If one of the apps runs into an issue and you have to restart the app server, is that OK as far as the other app (and its users) are concerned?
* How much memory is on the host system and can it handle the large memory requirements for two app server instances?
* Would there be an issue with using two different HTTP ports to access the two applications (this can often be hidden behind and Apache HTTPD server)?
Thus you see it is more of an administration question as to which is more appropriate.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225462#4225462
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225462
17 years
[Installation, Configuration & DEPLOYMENT] - Classloader issues in JBoss 5.0.0
by jbossasuser
Hi
Am using JBoss AS 5.0.0 on jdk5.
Deployment of my war file fails. I see this error:
------------------------------------------------------------
08:31:46,225 ERROR [StandardContext] Context [/myapp] startup failed due to previous errors
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/Parser class
at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at org.apache.tomcat.util.digester.Digester.getParser(Digester.java:704)
at org.apache.tomcat.util.digester.Digester.getXMLReader(Digester.java:978)
-------------------------------------------------------------
Seems like three might be conflict between jboss's "lib/endorsed/xercesImpl.jar" and my app's "WEB-INF/lib/xercesImpl.jar".
I tried the following below.
Created file "myapp.war/WEB-INF/jboss-web.xml"
-----------------------------------
<jboss-web>
<class-loading java2ClassLoadingCompliance='false'>
<loader-repository>
com.example:loader='myapp.war'
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
</jboss-web>
-----------------------------------
I removed the temporary files and restarted the webcontainer.
But this didn't resolve the problem.
How do I configure the classloading, to use my app's xercesImpl.jar over the one in JBoss ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225450#4225450
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225450
17 years