Re: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2

2003-10-23 Thread Jonathan . O'Connor
Scott,
As Sherlock Holmes said (?), when all the probable causes have been 
eliminated, then we must look at the improbable causes!
The problem is the listener in the WAR is failing because the session 
beans do not exist.
And as the ejb jar was deployed first, then its deployment must have 
failed. I'll look into that and get back to you if I find anything.
Thanks,
Jonathan O'Connor
XCOM Dublin




Scott M Stark <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
20.10.2003 17:06
Please respond to jboss-user
 
To: [EMAIL PROTECTED]
cc: 
Subject:    Re: [JBoss-user] Specifying deployment order in 
EAR - JBoss 3.2.2


ejb jars are deployed before wars so show the startup ordering. A test.ear
with ejbs and a war shows the ejbs started before the war:

09:14:48,246 INFO  [MainDeployer] Starting deployment of package: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:48,247 INFO  [EARDeployer] Init J2EE application: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:49,956 INFO  [EjbModule] Deploying BMPBean
09:14:50,216 INFO  [EjbModule] Deploying BMPCallbackBean
09:14:50,232 INFO  [EjbModule] Deploying CMPBean
09:14:50,272 INFO  [EjbModule] Deploying CMPBean2
...
09:14:53,536 INFO  [EJBDeployer] Deployed: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/cts.jar
09:14:53,794 INFO  [EmbeddedTomcatService] deploy, ctxPath=/traxbahn, 
warUrl=file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/traxbahn.war/
09:14:54,312 INFO  [Engine] ContextConfig[/traxbahn]: Added certificates 
-> 
request attribute Valve
...
09:14:54,347 INFO  [Engine] StandardWrapper[/traxbahn:invoker]: Loading 
container servlet invoker
09:14:54,758 INFO  [EARDeployer] Started J2EE application: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:54,758 INFO  [MainDeployer] Deployed package: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/

-- 

Scott Stark
Chief Technology Officer
JBoss Group, LLC


Jonathan.O'[EMAIL PROTECTED] wrote:

> Hi, I'm trying to migrate our code from JBoss 3.0.6 to 3.2.2 and I've 
got 
> a problem due to deployment order.
> My ear file has a backend.jar containing entity beans and session beans, 
a 
> frontend.war. In 3.0.6, the backend.jar was always deployed first before 

> the WAR. This meant that a listener in the WAR ran happily accessing 
> session beans in the backend.
> 
> But in 3.2.2 (and in RC4 too) I get an exception trying to run the 
> listener code in contextInitialized(). It seems that the session beans 
in 
> the backend.jar have not been loaded yet. Is there a way of setting a 
> dependency on the order of loading in 3.2.2? jboss-service.xml has a 
> depends clause, but that won't work for  or  stuff.
> 
> Any help would be greatly appreciated
> Ciao,
> Jonathan O'Connor
> XCOM Dublin



---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2

2003-10-22 Thread Scott M Stark
ejb jars are deployed before wars so show the startup ordering. A test.ear
with ejbs and a war shows the ejbs started before the war:
09:14:48,246 INFO  [MainDeployer] Starting deployment of package: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:48,247 INFO  [EARDeployer] Init J2EE application: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:49,956 INFO  [EjbModule] Deploying BMPBean
09:14:50,216 INFO  [EjbModule] Deploying BMPCallbackBean
09:14:50,232 INFO  [EjbModule] Deploying CMPBean
09:14:50,272 INFO  [EjbModule] Deploying CMPBean2
...
09:14:53,536 INFO  [EJBDeployer] Deployed: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/cts.jar
09:14:53,794 INFO  [EmbeddedTomcatService] deploy, ctxPath=/traxbahn, 
warUrl=file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/traxbahn.war/
09:14:54,312 INFO  [Engine] ContextConfig[/traxbahn]: Added certificates -> 
request attribute Valve
...
09:14:54,347 INFO  [Engine] StandardWrapper[/traxbahn:invoker]: Loading 
container servlet invoker
09:14:54,758 INFO  [EARDeployer] Started J2EE application: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/
09:14:54,758 INFO  [MainDeployer] Deployed package: 
file:/tmp/jboss-3.2.2/server/default/deploy/test.ear/

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Jonathan.O'[EMAIL PROTECTED] wrote:

Hi, I'm trying to migrate our code from JBoss 3.0.6 to 3.2.2 and I've got 
a problem due to deployment order.
My ear file has a backend.jar containing entity beans and session beans, a 
frontend.war. In 3.0.6, the backend.jar was always deployed first before 
the WAR. This meant that a listener in the WAR ran happily accessing 
session beans in the backend.

But in 3.2.2 (and in RC4 too) I get an exception trying to run the 
listener code in contextInitialized(). It seems that the session beans in 
the backend.jar have not been loaded yet. Is there a way of setting a 
dependency on the order of loading in 3.2.2? jboss-service.xml has a 
depends clause, but that won't work for  or  stuff.

Any help would be greatly appreciated
Ciao,
Jonathan O'Connor
XCOM Dublin


---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2

2003-10-20 Thread Scott M Stark
There has been no change in this regard.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Rod Macpherson wrote:

Perhaps 3.2.2 is being more compliant insofar as a war is not supposed
to access classes outside WEB-INF/lib or WEB-INF/classes. The solution
would be to specify backend.jar in your war's manifest and that would
explain why we do not see the problem you are having: we never use
WEB-INF/lib or WEB-INF/classes but rather stipulate what jars we use in
the manifest and place those in the EAR root:
Manifest-Version: 1.0
Class-Path: backend.jar



---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2

2003-10-20 Thread Rod Macpherson
Perhaps 3.2.2 is being more compliant insofar as a war is not supposed
to access classes outside WEB-INF/lib or WEB-INF/classes. The solution
would be to specify backend.jar in your war's manifest and that would
explain why we do not see the problem you are having: we never use
WEB-INF/lib or WEB-INF/classes but rather stipulate what jars we use in
the manifest and place those in the EAR root:

Manifest-Version: 1.0
Class-Path: backend.jar



-Original Message-
From: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 7:43 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Specifying deployment order in EAR - JBoss
3.2.2


Rod,
It sure does. Here it is:

TraxbahnApp
All Traxbahn Entity, Message Driven and Session
Bean 
jars
 

backend.jar


TIPS_bs_soap.wsr



traxbahn.war
traxbahn

 


And this works perfectly in JBoss 3.0.6 and 3.0.8

Ciao,
Jonathan O'Connor
XCOM Dublin




"Rod Macpherson" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
20.10.2003 13:24
Please respond to jboss-user
 
To: <[EMAIL PROTECTED]>
    cc: 
Subject:    RE: [JBoss-user] Specifying deployment order in 
EAR - JBoss 3.2.2


Does the EAR's application.xml include both the EJB and WEB module
elements? 

-Original Message-
From: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 4:50 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2


Hi, I'm trying to migrate our code from JBoss 3.0.6 to 3.2.2 and I've
got 
a problem due to deployment order.
My ear file has a backend.jar containing entity beans and session beans,
a 
frontend.war. In 3.0.6, the backend.jar was always deployed first before

the WAR. This meant that a listener in the WAR ran happily accessing 
session beans in the backend.

But in 3.2.2 (and in RC4 too) I get an exception trying to run the 
listener code in contextInitialized(). It seems that the session beans
in 
the backend.jar have not been loaded yet. Is there a way of setting a 
dependency on the order of loading in 3.2.2? jboss-service.xml has a 
depends clause, but that won't work for  or  stuff.

Any help would be greatly appreciated
Ciao,
Jonathan O'Connor
XCOM Dublin


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2

2003-10-20 Thread Jonathan . O'Connor
Rod,
It sure does. Here it is:

TraxbahnApp
All Traxbahn Entity, Message Driven and Session Bean 
jars
 

backend.jar


TIPS_bs_soap.wsr



traxbahn.war
traxbahn

 


And this works perfectly in JBoss 3.0.6 and 3.0.8

Ciao,
Jonathan O'Connor
XCOM Dublin




"Rod Macpherson" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
20.10.2003 13:24
Please respond to jboss-user
 
To: <[EMAIL PROTECTED]>
cc: 
    Subject:RE: [JBoss-user] Specifying deployment order in 
EAR - JBoss 3.2.2


Does the EAR's application.xml include both the EJB and WEB module
elements? 

-Original Message-
From: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 4:50 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2


Hi, I'm trying to migrate our code from JBoss 3.0.6 to 3.2.2 and I've
got 
a problem due to deployment order.
My ear file has a backend.jar containing entity beans and session beans,
a 
frontend.war. In 3.0.6, the backend.jar was always deployed first before

the WAR. This meant that a listener in the WAR ran happily accessing 
session beans in the backend.

But in 3.2.2 (and in RC4 too) I get an exception trying to run the 
listener code in contextInitialized(). It seems that the session beans
in 
the backend.jar have not been loaded yet. Is there a way of setting a 
dependency on the order of loading in 3.2.2? jboss-service.xml has a 
depends clause, but that won't work for  or  stuff.

Any help would be greatly appreciated
Ciao,
Jonathan O'Connor
XCOM Dublin


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2

2003-10-20 Thread Rod Macpherson
Does the EAR's application.xml include both the EJB and WEB module
elements? 

-Original Message-
From: Jonathan.O'[EMAIL PROTECTED] [mailto:Jonathan.O'[EMAIL PROTECTED] 
Sent: Monday, October 20, 2003 4:50 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Specifying deployment order in EAR - JBoss 3.2.2


Hi, I'm trying to migrate our code from JBoss 3.0.6 to 3.2.2 and I've
got 
a problem due to deployment order.
My ear file has a backend.jar containing entity beans and session beans,
a 
frontend.war. In 3.0.6, the backend.jar was always deployed first before

the WAR. This meant that a listener in the WAR ran happily accessing 
session beans in the backend.

But in 3.2.2 (and in RC4 too) I get an exception trying to run the 
listener code in contextInitialized(). It seems that the session beans
in 
the backend.jar have not been loaded yet. Is there a way of setting a 
dependency on the order of loading in 3.2.2? jboss-service.xml has a 
depends clause, but that won't work for  or  stuff.

Any help would be greatly appreciated
Ciao,
Jonathan O'Connor
XCOM Dublin


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user