You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by eshore <es...@us.ibm.com> on 2007/09/10 22:32:58 UTC

geronimo-application-client and internal-rar


I'm bundling an EAR for Geronimo V2.0. I have a rar within my EAR project
that I am referencing from an application-client project and attempting to
deploy, through Eclipse, to Geronimo.

Under Project Explorer it shows my connector, activemq-ra-3.2.2.ibm.rar
under EarContent.

Within my geronimo-application-client.xml file it is listed as:

...
<resource>
<internal-rar>activemq-ra-3.2.2.ibm.rar</internal-rar>
...

And when I deploy I get this error:

!ENTRY org.eclipse.wst.server.core 4 0 2007-09-10 15:49:39.456
!MESSAGE Publishing failed
!SUBENTRY 1 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
!MESSAGE Distribution of configuration failed.  See log for details.
!SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
!MESSAGE Could not locate connector inside ear
...
!MESSAGE Caused by: java.io.IOException: Jar entry does not exist:
jarFile=/tmp/geronimo-deploymentUtil13604.jar,
path=activemq-ra-3.2.2.ibm.rar
!SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
!MESSAGE 	at
org.apache.geronimo.deployment.util.NestedJarFile.<init>(NestedJarFile.java:51)
!SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
!MESSAGE 	at
org.apache.geronimo.client.builder.AppClientModuleBuilder.createModule(AppClientModuleBuilder.java:348)
!SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
!MESSAGE 	... 59 more


I've verified that this is the entry that is blowing up. Whatever I put in
as the <internal-rar> value, I get the same error specifying that value. I
cannot find any examples on the web that show the syntax for <internal-rar>,
and per the nature of my project, I cannot use external references, I need
this project to be stand-alone including the connectors with the project.

Any help on this would be appreciated.

Thanks.
-- 
View this message in context: http://www.nabble.com/geronimo-application-client-and-internal-rar-tf4418346s134.html#a12602272
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: geronimo-application-client and internal-rar

Posted by eshore <es...@us.ibm.com>.
Well, I have a solution, though I'm not sure if it's ideal. I have the
geronimo-application-client.xml reference the rar as an external, and then
the EAR references the internal rar file. As long as they are the same
version, it works.

Thanks.




eshore wrote:
> 
> activemq-ra-3.2.2.ibm.rar really is there in the root. If internal-rar
> doesn't work on 2.0.1, what would work? 
> 
> The original scope of the project was to provide an EAR package with a
> tutorial with everything the user would need.
> 
> I may be confusing the issue. I'm trying to force some artifacts to be
> created with my geronimo-jms-plan.xml associated with the connector. When
> I referenced the connector with <external-rar> the deploy went through but
> my artifacts were not created.
> 
> I don't have a small sample I can send.
> 
> Thanks for the response.
> 
> 
> 
> 
> djencks wrote:
>> 
>> internal-rar might not work in 2.0.1.  Can you provide a test  
>> project?  Have you tried deploying from the command line rather than  
>> through eclipse?  is activemq-ra-3.2.2.ibm.rar really there in the  
>> root of your ear?
>> 
>> If you use an external-rar the rar classes will still get included in  
>> the car file just like they do with internal-rar so I'm not sure why  
>> you need internal-rar for portability.  Could you explain?
>> 
>> thanks
>> david jencks
>> 
>> 
>> On Sep 10, 2007, at 1:32 PM, eshore wrote:
>> 
>>>
>>>
>>> I'm bundling an EAR for Geronimo V2.0. I have a rar within my EAR  
>>> project
>>> that I am referencing from an application-client project and  
>>> attempting to
>>> deploy, through Eclipse, to Geronimo.
>>>
>>> Under Project Explorer it shows my connector, activemq- 
>>> ra-3.2.2.ibm.rar
>>> under EarContent.
>>>
>>> Within my geronimo-application-client.xml file it is listed as:
>>>
>>> ...
>>> <resource>
>>> <internal-rar>activemq-ra-3.2.2.ibm.rar</internal-rar>
>>> ...
>>>
>>> And when I deploy I get this error:
>>>
>>> !ENTRY org.eclipse.wst.server.core 4 0 2007-09-10 15:49:39.456
>>> !MESSAGE Publishing failed
>>> !SUBENTRY 1 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
>>> !MESSAGE Distribution of configuration failed.  See log for details.
>>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
>>> !MESSAGE Could not locate connector inside ear
>>> ...
>>> !MESSAGE Caused by: java.io.IOException: Jar entry does not exist:
>>> jarFile=/tmp/geronimo-deploymentUtil13604.jar,
>>> path=activemq-ra-3.2.2.ibm.rar
>>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
>>> !MESSAGE 	at
>>> org.apache.geronimo.deployment.util.NestedJarFile.<init> 
>>> (NestedJarFile.java:51)
>>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
>>> !MESSAGE 	at
>>> org.apache.geronimo.client.builder.AppClientModuleBuilder.createModule 
>>> (AppClientModuleBuilder.java:348)
>>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
>>> !MESSAGE 	... 59 more
>>>
>>>
>>> I've verified that this is the entry that is blowing up. Whatever I  
>>> put in
>>> as the <internal-rar> value, I get the same error specifying that  
>>> value. I
>>> cannot find any examples on the web that show the syntax for  
>>> <internal-rar>,
>>> and per the nature of my project, I cannot use external references,  
>>> I need
>>> this project to be stand-alone including the connectors with the  
>>> project.
>>>
>>> Any help on this would be appreciated.
>>>
>>> Thanks.
>>> -- 
>>> View this message in context: http://www.nabble.com/geronimo- 
>>> application-client-and-internal-rar-tf4418346s134.html#a12602272
>>> Sent from the Apache Geronimo - Users mailing list archive at  
>>> Nabble.com.
>>>
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/geronimo-application-client-and-internal-rar-tf4418346s134.html#a12605986
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: geronimo-application-client and internal-rar

Posted by eshore <es...@us.ibm.com>.
activemq-ra-3.2.2.ibm.rar really is there in the root. If internal-rar
doesn't work on 2.0.1, what would work? 

The original scope of the project was to provide an EAR package with a
tutorial with everything the user would need.

I may be confusing the issue. I'm trying to force some artifacts to be
created with my geronimo-jms-plan.xml associated with the connector. When I
referenced the connector with <external-rar> the deploy went through but my
artifacts were not created.

I don't have a small sample I can send.

Thanks for the response.




djencks wrote:
> 
> internal-rar might not work in 2.0.1.  Can you provide a test  
> project?  Have you tried deploying from the command line rather than  
> through eclipse?  is activemq-ra-3.2.2.ibm.rar really there in the  
> root of your ear?
> 
> If you use an external-rar the rar classes will still get included in  
> the car file just like they do with internal-rar so I'm not sure why  
> you need internal-rar for portability.  Could you explain?
> 
> thanks
> david jencks
> 
> 
> On Sep 10, 2007, at 1:32 PM, eshore wrote:
> 
>>
>>
>> I'm bundling an EAR for Geronimo V2.0. I have a rar within my EAR  
>> project
>> that I am referencing from an application-client project and  
>> attempting to
>> deploy, through Eclipse, to Geronimo.
>>
>> Under Project Explorer it shows my connector, activemq- 
>> ra-3.2.2.ibm.rar
>> under EarContent.
>>
>> Within my geronimo-application-client.xml file it is listed as:
>>
>> ...
>> <resource>
>> <internal-rar>activemq-ra-3.2.2.ibm.rar</internal-rar>
>> ...
>>
>> And when I deploy I get this error:
>>
>> !ENTRY org.eclipse.wst.server.core 4 0 2007-09-10 15:49:39.456
>> !MESSAGE Publishing failed
>> !SUBENTRY 1 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
>> !MESSAGE Distribution of configuration failed.  See log for details.
>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
>> !MESSAGE Could not locate connector inside ear
>> ...
>> !MESSAGE Caused by: java.io.IOException: Jar entry does not exist:
>> jarFile=/tmp/geronimo-deploymentUtil13604.jar,
>> path=activemq-ra-3.2.2.ibm.rar
>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
>> !MESSAGE 	at
>> org.apache.geronimo.deployment.util.NestedJarFile.<init> 
>> (NestedJarFile.java:51)
>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
>> !MESSAGE 	at
>> org.apache.geronimo.client.builder.AppClientModuleBuilder.createModule 
>> (AppClientModuleBuilder.java:348)
>> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
>> !MESSAGE 	... 59 more
>>
>>
>> I've verified that this is the entry that is blowing up. Whatever I  
>> put in
>> as the <internal-rar> value, I get the same error specifying that  
>> value. I
>> cannot find any examples on the web that show the syntax for  
>> <internal-rar>,
>> and per the nature of my project, I cannot use external references,  
>> I need
>> this project to be stand-alone including the connectors with the  
>> project.
>>
>> Any help on this would be appreciated.
>>
>> Thanks.
>> -- 
>> View this message in context: http://www.nabble.com/geronimo- 
>> application-client-and-internal-rar-tf4418346s134.html#a12602272
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/geronimo-application-client-and-internal-rar-tf4418346s134.html#a12602720
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: geronimo-application-client and internal-rar

Posted by David Jencks <da...@yahoo.com>.
internal-rar might not work in 2.0.1.  Can you provide a test  
project?  Have you tried deploying from the command line rather than  
through eclipse?  is activemq-ra-3.2.2.ibm.rar really there in the  
root of your ear?

If you use an external-rar the rar classes will still get included in  
the car file just like they do with internal-rar so I'm not sure why  
you need internal-rar for portability.  Could you explain?

thanks
david jencks


On Sep 10, 2007, at 1:32 PM, eshore wrote:

>
>
> I'm bundling an EAR for Geronimo V2.0. I have a rar within my EAR  
> project
> that I am referencing from an application-client project and  
> attempting to
> deploy, through Eclipse, to Geronimo.
>
> Under Project Explorer it shows my connector, activemq- 
> ra-3.2.2.ibm.rar
> under EarContent.
>
> Within my geronimo-application-client.xml file it is listed as:
>
> ...
> <resource>
> <internal-rar>activemq-ra-3.2.2.ibm.rar</internal-rar>
> ...
>
> And when I deploy I get this error:
>
> !ENTRY org.eclipse.wst.server.core 4 0 2007-09-10 15:49:39.456
> !MESSAGE Publishing failed
> !SUBENTRY 1 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
> !MESSAGE Distribution of configuration failed.  See log for details.
> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.456
> !MESSAGE Could not locate connector inside ear
> ...
> !MESSAGE Caused by: java.io.IOException: Jar entry does not exist:
> jarFile=/tmp/geronimo-deploymentUtil13604.jar,
> path=activemq-ra-3.2.2.ibm.rar
> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
> !MESSAGE 	at
> org.apache.geronimo.deployment.util.NestedJarFile.<init> 
> (NestedJarFile.java:51)
> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
> !MESSAGE 	at
> org.apache.geronimo.client.builder.AppClientModuleBuilder.createModule 
> (AppClientModuleBuilder.java:348)
> !SUBENTRY 2 org.apache.geronimo.st.core 4 0 2007-09-10 15:49:39.457
> !MESSAGE 	... 59 more
>
>
> I've verified that this is the entry that is blowing up. Whatever I  
> put in
> as the <internal-rar> value, I get the same error specifying that  
> value. I
> cannot find any examples on the web that show the syntax for  
> <internal-rar>,
> and per the nature of my project, I cannot use external references,  
> I need
> this project to be stand-alone including the connectors with the  
> project.
>
> Any help on this would be appreciated.
>
> Thanks.
> -- 
> View this message in context: http://www.nabble.com/geronimo- 
> application-client-and-internal-rar-tf4418346s134.html#a12602272
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>