You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by ivanrc <ir...@indra.es> on 2007/12/12 13:00:08 UTC

Remote deploy JMS Resources

I trying to deploy my JMS Resources remotedly. This command run well in local
but I obtain this exeception deploying remotedly. whats happen?

java -jar %GERONIMO_HOME%/bin/deployer.jar --user system --password manager
--host pepew2k deploy JmsResources.xml
%GERONIMO_HOME%/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.2/geronimo-activemq-ra-2.0.2.rar 

Uploading 2 file(s) to server
Error: Unable to distribute geronimo-activemq-ra-2.0.2.rar:
Connection refused: connect
Connection refused: connect

-- 
View this message in context: http://www.nabble.com/Remote-deploy-JMS-Resources-tp14293818s134p14293818.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Remote deploy JMS Resources

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Dec 12, 2007 3:35 PM, ivanrc <ir...@indra.es> wrote:

> java -jar %GERONIMO_HOME%/bin/deployer.jar --host tpascualw2k --user system
> --password manager  --verbose deploy JmsResources.xml
>
>
> Do you know if remote deploy works well in geronimo 2.0.2?

I don't know how stable the remote deployment is in 2.0.2. It doesn't
look good with this: GERONIMO-3620 Remote deployment using command
line deployer does not really work [1].

Is there any way you could give it a try with the latest Geronimo?
Download it from
http://people.apache.org/~prasad/binaries/trunk/20071212/ and report
back.

[1] https://issues.apache.org/jira/browse/GERONIMO-3620

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Remote deploy JMS Resources

Posted by ivanrc <ir...@indra.es>.


 I have created this below application deploy plan...that deploy well in
localhost but remotedly I obtain this exception:

Uploading 1 file(s) to server
 File upload complete (Server status=OK)
 File(s) transferred to server.  Resuming deployment operation.
 Error: Unable to distribute JmsResources.xml: Plan file does not
 exist: D:\geronimo-tomcat6-jee5-2.0.2\var\temp\JmsResources.xml

 org.apache.geronimo.common.DeploymentException: Plan file does not
 exist: D:\geronimo-tomcat6-jee5-2.0.2\var\temp\JmsResources.xml

The command is this:

java -jar %GERONIMO_HOME%/bin/deployer.jar --host tpascualw2k --user system
--password manager  --verbose deploy JmsResources.xml 


Do you know if remote deploy works well in geronimo 2.0.2?



<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
    <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
    	<dep:moduleId>
    		<dep:groupId>console.jms</dep:groupId>
    		<dep:artifactId>jmsResources</dep:artifactId>
    		<dep:version>1.0</dep:version>
    	<dep:type>rar</dep:type>
  	</dep:moduleId>
    </dep:environment>
    <ext-module>
        <connector>jmsResources</connector>
        <external-path
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
            <dep:groupId>org.apache.geronimo.modules</dep:groupId>
            <dep:artifactId>geronimo-activemq-ra</dep:artifactId>
            <dep:type>rar</dep:type>
        </external-path>
        <connector
xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
			 <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
			   <dep:moduleId>
			   	<dep:groupId>console.jms</dep:groupId>
			   	<dep:artifactId>jmsResources</dep:artifactId>
			   	<dep:version>1.0</dep:version>
			   <dep:type>rar</dep:type>
			 	</dep:moduleId>
			   <dep:dependencies>
			     <dep:dependency>
			       <dep:groupId>org.apache.geronimo.configs</dep:groupId>
			       <dep:artifactId>activemq-broker</dep:artifactId>
			       <dep:type>car</dep:type>
			     </dep:dependency>
			   </dep:dependencies>
			 </dep:environment>
			 <resourceadapter>
			   <resourceadapter-instance>
			     <resourceadapter-name>jmsResources</resourceadapter-name>
			     <workmanager xmlns="http://geronimo.apache.org/xml/ns/naming-1.2">
			       <gbean-link>DefaultWorkManager</gbean-link>
			     </workmanager>
			   </resourceadapter-instance>
			   <outbound-resourceadapter>
			     <connection-definition>
			      
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
			       <connectiondefinition-instance>
			         <name>IHCIConnectionFactory</name>
			        
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
			        
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
			         <connectionmanager>
			           <xa-transaction>
			             <transaction-caching />
			           </xa-transaction>
			           <single-pool>
			             <max-size>10</max-size>
			             <min-size>0</min-size>
			            
<blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
			             <idle-timeout-minutes>0</idle-timeout-minutes>
			             <match-one />
			           </single-pool>
			         </connectionmanager>
			       </connectiondefinition-instance>
			     </connection-definition>
			   </outbound-resourceadapter>
			 </resourceadapter>
			 <!-- ElementSupportData -->
			 <adminobject>
			   <adminobject-interface>javax.jms.Topic</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
			   <adminobject-instance>
			    
<message-destination-name>ElementSupportData</message-destination-name>
			     <config-property-setting
name="PhysicalName">ElementSupportData</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			  <!-- ExportacionProgPlanData -->
			
			 <adminobject>
			   <adminobject-interface>javax.jms.Topic</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
			   <adminobject-instance>
			    
<message-destination-name>ExportacionProgPlanData</message-destination-name>
			     <config-property-setting
name="PhysicalName">ExportacionProgPlanData</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			 <!-- PlanExplotacionData -->
			
			 <adminobject>
			   <adminobject-interface>javax.jms.Topic</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
			   <adminobject-instance>
			    
<message-destination-name>PlanExplotacionData</message-destination-name>
			     <config-property-setting
name="PhysicalName">PlanExplotacionData</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			 <!-- RTElementSupportData -->
			
			 <adminobject>
			   <adminobject-interface>javax.jms.Topic</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
			   <adminobject-instance>
			    
<message-destination-name>RTElementSupportData</message-destination-name>
			     <config-property-setting
name="PhysicalName">RTElementSupportData</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			 <!-- RTItineraryData -->
			
			 <adminobject>
			   <adminobject-interface>javax.jms.Topic</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
			   <adminobject-instance>
			     <message-destination-name>RTItineraryData</message-destination-name>
			     <config-property-setting
name="PhysicalName">RTItineraryData</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			 <!-- SolicitudServicioData -->
			
			 <adminobject>
			   <adminobject-interface>javax.jms.Topic</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
			   <adminobject-instance>
			    
<message-destination-name>SolicitudServicioData</message-destination-name>
			     <config-property-setting
name="PhysicalName">SolicitudServicioData</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			 <!-- SampleQueue (only for tests 
			
			   <adminobject>
			   <adminobject-interface>javax.jms.Queue</adminobject-interface>
			  
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
			   <adminobject-instance>
			     <message-destination-name>SampleQueue</message-destination-name>
			     <config-property-setting
name="PhysicalName">SampleQueue</config-property-setting>
			   </adminobject-instance>
			 </adminobject>
			 
			 -->
			</connector> 
    </ext-module>      
</application>





 












Jacek Laskowski wrote:
> 
> On Dec 12, 2007 2:01 PM, ivanrc <ir...@indra.es> wrote:
>>
>> I saw this...
>>
>> <external-path
>> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
>>             <dep:groupId>org.apache.geronimo.modules</dep:groupId>
>>             <dep:artifactId>geronimo-activemq-ra</dep:artifactId>
>>             <dep:version>2.1-SNAPSHOT</dep:version>
>>             <dep:type>rar</dep:type>
>>         </external-path>
>>
>>
>> but how can i add this to my connector deploy plan?
> 
> Add the connector plan to your application's deployment plans, exactly
> as outlined in the aforementioned article (in Polish). The trick is to
> create connectors per applications not global connectors for
> everybody.
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 

-- 
View this message in context: http://www.nabble.com/Remote-deploy-JMS-Resources-tp14293818s134p14296410.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Remote deploy JMS Resources

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Dec 12, 2007 2:01 PM, ivanrc <ir...@indra.es> wrote:
>
> I saw this...
>
> <external-path xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
>             <dep:groupId>org.apache.geronimo.modules</dep:groupId>
>             <dep:artifactId>geronimo-activemq-ra</dep:artifactId>
>             <dep:version>2.1-SNAPSHOT</dep:version>
>             <dep:type>rar</dep:type>
>         </external-path>
>
>
> but how can i add this to my connector deploy plan?

Add the connector plan to your application's deployment plans, exactly
as outlined in the aforementioned article (in Polish). The trick is to
create connectors per applications not global connectors for
everybody.

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Remote deploy JMS Resources

Posted by ivanrc <ir...@indra.es>.
I saw this...

<external-path xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
            <dep:groupId>org.apache.geronimo.modules</dep:groupId>
            <dep:artifactId>geronimo-activemq-ra</dep:artifactId>
            <dep:version>2.1-SNAPSHOT</dep:version>
            <dep:type>rar</dep:type>
        </external-path>


but how can i add this to my connector deploy plan?

<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
  <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
    <dep:moduleId>
    	<dep:groupId>console.jms</dep:groupId>
    	<dep:artifactId>jmsResources</dep:artifactId>
    	<dep:version>1.0</dep:version>
    <dep:type>rar</dep:type>
  	</dep:moduleId>
    <dep:dependencies>
      <dep:dependency>
        <dep:groupId>org.apache.geronimo.configs</dep:groupId>
        <dep:artifactId>activemq-broker</dep:artifactId>
        <dep:type>car</dep:type>
      </dep:dependency>
    </dep:dependencies>
  </dep:environment>
  <resourceadapter>
    <resourceadapter-instance>
      <resourceadapter-name>jmsResources</resourceadapter-name>
      <workmanager xmlns="http://geronimo.apache.org/xml/ns/naming-1.2">
        <gbean-link>DefaultWorkManager</gbean-link>
      </workmanager>
    </resourceadapter-instance>
    <outbound-resourceadapter>
      <connection-definition>
       
<connectionfactory-interface>javax.jms.ConnectionFactory</connectionfactory-interface>
        <connectiondefinition-instance>
          <name>IHCIConnectionFactory</name>
         
<implemented-interface>javax.jms.QueueConnectionFactory</implemented-interface>
         
<implemented-interface>javax.jms.TopicConnectionFactory</implemented-interface>
          <connectionmanager>
            <xa-transaction>
              <transaction-caching />
            </xa-transaction>
            <single-pool>
              <max-size>10</max-size>
              <min-size>0</min-size>
             
<blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
              <idle-timeout-minutes>0</idle-timeout-minutes>
              <match-one />
            </single-pool>
          </connectionmanager>
        </connectiondefinition-instance>
      </connection-definition>
    </outbound-resourceadapter>
  </resourceadapter>
  <!-- ElementSupportData -->
  <adminobject>
    <adminobject-interface>javax.jms.Topic</adminobject-interface>
   
<adminobject-class>org.apache.activemq.command.ActiveMQTopic</adminobject-class>
    <adminobject-instance>
     
<message-destination-name>ElementSupportData</message-destination-name>
      <config-property-setting
name="PhysicalName">ElementSupportData</config-property-setting>
    </adminobject-instance>
  </adminobject>
</connector> 



Jacek Laskowski wrote:
> 
> On Dec 12, 2007 1:00 PM, ivanrc <ir...@indra.es> wrote:
> 
>> I trying to deploy my JMS Resources remotedly. This command run well in
>> local
>> but I obtain this exeception deploying remotedly. whats happen?
> 
> Hi,
> 
> Is your Geronimo instance up and running?
> 
>> java -jar %GERONIMO_HOME%/bin/deployer.jar --user system --password
>> manager
>> --host pepew2k deploy JmsResources.xml
>> %GERONIMO_HOME%/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.2/geronimo-activemq-ra-2.0.2.rar
> 
> Why do you deploy jms resources with the rar file as it's already in
> the repo and you could link it as outlined at Aplikacja Java EE 5 z
> MDB z JPA w trybie JTA i PostgreSQL w Apache Geronimo 2 (it's in
> Polish, but the xmls should be readable - look at Konfiguracja
> aplikacji przemysłowej - geronimo-application.xml [2])
> 
> [1]
> http://www.jaceklaskowski.pl/wiki/Aplikacja_Java_EE_5_z_MDB_z_JPA_w_trybie_JTA_i_PostgreSQL_w_Apache_Geronimo_2
> [2]
> http://www.jaceklaskowski.pl/wiki/Aplikacja_Java_EE_5_z_MDB_z_JPA_w_trybie_JTA_i_PostgreSQL_w_Apache_Geronimo_2#Konfiguracja_aplikacji_przemys.C5.82owej_-_geronimo-application.xml
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> 

-- 
View this message in context: http://www.nabble.com/Remote-deploy-JMS-Resources-tp14293818s134p14294716.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Remote deploy JMS Resources

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Dec 12, 2007 1:00 PM, ivanrc <ir...@indra.es> wrote:

> I trying to deploy my JMS Resources remotedly. This command run well in local
> but I obtain this exeception deploying remotedly. whats happen?

Hi,

Is your Geronimo instance up and running?

> java -jar %GERONIMO_HOME%/bin/deployer.jar --user system --password manager
> --host pepew2k deploy JmsResources.xml
> %GERONIMO_HOME%/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.2/geronimo-activemq-ra-2.0.2.rar

Why do you deploy jms resources with the rar file as it's already in
the repo and you could link it as outlined at Aplikacja Java EE 5 z
MDB z JPA w trybie JTA i PostgreSQL w Apache Geronimo 2 (it's in
Polish, but the xmls should be readable - look at Konfiguracja
aplikacji przemysłowej - geronimo-application.xml [2])

[1] http://www.jaceklaskowski.pl/wiki/Aplikacja_Java_EE_5_z_MDB_z_JPA_w_trybie_JTA_i_PostgreSQL_w_Apache_Geronimo_2
[2] http://www.jaceklaskowski.pl/wiki/Aplikacja_Java_EE_5_z_MDB_z_JPA_w_trybie_JTA_i_PostgreSQL_w_Apache_Geronimo_2#Konfiguracja_aplikacji_przemys.C5.82owej_-_geronimo-application.xml

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: Remote deploy JMS Resources

Posted by ivanrc <ir...@indra.es>.
remote deploy now works well changing that property :), thanks



Jarek Gawor-2 wrote:
> 
> Edit var/config/config-substitutions.properties on your remote server
> and change RemoteDeployHostname to the hostname of your machine. Then
> try the remote deployment again.
> 
> The RemoteDeployHostname property was probably set to 'localhost' and
> so the deployer was actaully trying to upload a file to your local
> server which was not running at that time. Which explains the
> connection refused error. But then when you started the server on your
> local machine and the error changed to "file not found" since the file
> got uploaded successfully to your local machine but the deployment
> operation was being performed on the remote server. That's at least
> what happened in my case.
> 
> Hope this helps,
> Jarek
> 
> On Dec 12, 2007 7:00 AM, ivanrc <ir...@indra.es> wrote:
>>
>> I trying to deploy my JMS Resources remotedly. This command run well in
>> local
>> but I obtain this exeception deploying remotedly. whats happen?
>>
>> java -jar %GERONIMO_HOME%/bin/deployer.jar --user system --password
>> manager
>> --host pepew2k deploy JmsResources.xml
>> %GERONIMO_HOME%/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.2/geronimo-activemq-ra-2.0.2.rar
>>
>> Uploading 2 file(s) to server
>> Error: Unable to distribute geronimo-activemq-ra-2.0.2.rar:
>> Connection refused: connect
>> Connection refused: connect
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Remote-deploy-JMS-Resources-tp14293818s134p14293818.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Remote-deploy-JMS-Resources-tp14293818s134p14333550.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Remote deploy JMS Resources

Posted by Jarek Gawor <jg...@gmail.com>.
Edit var/config/config-substitutions.properties on your remote server
and change RemoteDeployHostname to the hostname of your machine. Then
try the remote deployment again.

The RemoteDeployHostname property was probably set to 'localhost' and
so the deployer was actaully trying to upload a file to your local
server which was not running at that time. Which explains the
connection refused error. But then when you started the server on your
local machine and the error changed to "file not found" since the file
got uploaded successfully to your local machine but the deployment
operation was being performed on the remote server. That's at least
what happened in my case.

Hope this helps,
Jarek

On Dec 12, 2007 7:00 AM, ivanrc <ir...@indra.es> wrote:
>
> I trying to deploy my JMS Resources remotedly. This command run well in local
> but I obtain this exeception deploying remotedly. whats happen?
>
> java -jar %GERONIMO_HOME%/bin/deployer.jar --user system --password manager
> --host pepew2k deploy JmsResources.xml
> %GERONIMO_HOME%/repository/org/apache/geronimo/modules/geronimo-activemq-ra/2.0.2/geronimo-activemq-ra-2.0.2.rar
>
> Uploading 2 file(s) to server
> Error: Unable to distribute geronimo-activemq-ra-2.0.2.rar:
> Connection refused: connect
> Connection refused: connect
>
> --
> View this message in context: http://www.nabble.com/Remote-deploy-JMS-Resources-tp14293818s134p14293818.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>