Solved

JBoss multiple ear files

Posted on 2008-10-22
9
991 Views
Last Modified: 2013-12-02
I have two ear files: A.ear and B.ear. How can I make JBoss start both applications? Just the A.ear works.
0
Comment
Question by:ivanorro
  • 5
  • 3
9 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22782678
i hope both A.ear and B.ear  have different contexts;then u can access

A.ear as http://localhost:8080/A
B.ear as http://localhost:8080/B
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22782901

for a.ear application.xml should be like this
 
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
  <display-name>a</display-name>
    <web>
      <web-uri>web.war</web-uri>
      <context-root>/A</context-root>
    </web>
  </module>
    <ejb>a.jar</ejb>
  </module>
</application>
..............................
 
for b.ear application.xml should be like this
 
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
  <display-name>b</display-name>
    <web>
      <web-uri>web.war</web-uri>
      <context-root>/B</context-root>
    </web>
  </module>
    <ejb>b.jar</ejb>
  </module>
</application>

Open in new window

0
 
LVL 5

Expert Comment

by:muktajindal
ID: 22783457
How are you verifying that your ear "does not work" ? Do you see any errors in logs ?
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

Author Comment

by:ivanorro
ID: 22838841
I know it does not work because when I start JBoss I get the following error message:
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:name=jca/JETI/Adapter,service=TxCM
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22838859
so you have deployed two ears in the same jboss.can you send server.log file?
0
 

Author Comment

by:ivanorro
ID: 22839371
Here you are.
The name of the ear files is tc and tc_es.

server.log
0
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22839412
in the server.log file at line 3315 below errror is coming.can you resolve this error?

2008-10-30 11:31:55,031 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] warURL: file:/C:/jboss-4.0.1sp1/server/default/deploy/jmx-console.war/
2008-10-30 11:31:55,062 ERROR [org.jboss.metadata.XmlFileLoader] The markup in the document following the root element must be well-formed.:2:8
org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.


2008-10-30 11:31:55,093 WARN  [org.jboss.web.tomcat.tc5.Tomcat5] Failed to parse descriptors for war(file:/C:/jboss-4.0.1sp1/server/default/deploy/jmx-console.war/)
org.jboss.deployment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: The markup in the document following the root element must be well-formed.; - nested throwable: (org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.))
      at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:655)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:294)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      at org.jboss.web.AbstractWebContainer.parseMetaData(AbstractWebContainer.java:648)
      at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:294)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
0
 

Author Comment

by:ivanorro
ID: 22840749
Sorry, that was a mistake. I have done so many changes in the configuration... Here is the correct server.log
server.log
0
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 500 total points
ID: 22847077
when you are deploying only tc.ear are you getting same error or not?
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JMS Tibco queue/topic : how to get messages count of queue? 7 332
how to pass command line arguments to Jetty 10 143
oneTwo java challenge 31 589
spring example errors 33 333
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question