You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by dimas <dm...@kaltire.com> on 2016/07/01 00:52:53 UTC
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Looks like my remote server config is messed up a bit, changing system.properties has no effect... will investigate and update.
Thanks!
From: Romain Manni-Bucau [via TomEE & OpenEJB] [mailto:ml-node+s979440n4679167h98@n4.nabble.com]
Sent: June-30-16 4:05 PM
To: Shultz, Dmitry <Dm...@kaltire.com>
Subject: Re: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:)
If it is a remote deployment you need to activate binaries upload,
something like openejb.deployer.binaries.use=true
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2016-06-30 23:50 GMT+02:00 dimas <[hidden email]</user/SendEmail.jtp?type=node&node=4679167&i=0>>:
> I don't see any error, these two log files are updated during deploy:
>
> localhost_access_log..2016-06-30.txt
>
> 10.100.122.107 - - [30/Jun/2016:14:50:11 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 196
> 10.100.122.107 - - [30/Jun/2016:14:53:25 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 196
> 10.100.122.107 - - [30/Jun/2016:14:53:25 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 86505
> 10.100.122.107 - - [30/Jun/2016:14:53:36 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 196
> 10.100.122.107 - - [30/Jun/2016:14:53:38 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 4872
> 10.100.122.107 - - [30/Jun/2016:15:19:11 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 196
> 10.100.122.107 - - [30/Jun/2016:15:19:13 -0700] "POST /tomee/ejb HTTP/1.1"
> 200 4872
>
> catalina.out
>
> INFO - Extracting jar: /u01/app/sprawl/tc/temp/test-1.1.war
> INFO - Extracted path: /u01/app/sprawl/tc/temp/ test-1.1
> SEVERE - Can't find of appInfo for /u01/app/sprawl/tc/temp/test-1.1.war,
> availables: [/u01/app/sprawl/tc/webapps/ test-1.1,
> /usr/apache-tomee/webapps/manager, /usr/apache-tomee/webapps/host-manager,
> /usr/apache-tomee/webapps/ROOT]
>
> Dmitry Shultz
> Senior Software Developer
>
> [cid:image001.png@01D051C6.BA585530]
>
> 1540 Kalamalka Lake Rd.
> Vernon, BC V1T 6V2
> t: 250.558.3200 (x 547)
> KalTire.com
>
> From: Romain Manni-Bucau [via TomEE & OpenEJB] [mailto:
> [hidden email]</user/SendEmail.jtp?type=node&node=4679167&i=1>]
> Sent: June-30-16 2:43 PM
> To: Shultz, Dmitry <[hidden email]</user/SendEmail.jtp?type=node&node=4679167&i=2>>
> Subject: Re: Deployment to TomEE 7.0.0 using tomee-maven-plugin
> (error=Cannot open input stream to server:)
>
> there is a deployment error before on server side
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> | Blog
> <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com> | JavaEE Factory
> <https://javaeefactory-rmannibucau.rhcloud.com>
>
> 2016-06-30 23:39 GMT+02:00 dimas <[hidden
> email]</user/SendEmail.jtp?type=node&node=4679165&i=0>>:
>
> > After changed the groupId and plugin version (to 7.0.0) still getting the
> > error (in the server log):
> >
> > SEVERE - Can't find of appInfo for ...
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679164.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679165.html
> To unsubscribe from Deployment to TomEE 7.0.0 using tomee-maven-plugin
> (error=Cannot open input stream to server:), click here<
> >.
> NAML<
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
>
>
> image001.png (7K) <
> http://tomee-openejb.979440.n4.nabble.com/attachment/4679166/0/image001.png
> >
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679166.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
________________________________
If you reply to this email, your message will be added to the discussion below:
http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679167.html
To unsubscribe from Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:), click here<http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4679142&code=ZG1pdHJ5X3NodWx0ekBrYWx0aXJlLmNvbXw0Njc5MTQyfC0yMzcwMzM3NzE=>.
NAML<http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679171.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
Sure it didn't matched. Works now, Thanks!
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679285.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot
open input stream to server:)
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Did undeploy path matches the one in deployments.xml? It should to work
Le 11 juil. 2016 20:13, "dimas" <dm...@kaltire.com> a écrit :
> When i set the openejb.deployer.save-deployments=true, deploy the war and
> restart the TomEE - deployment is persisted, that's great! But, I can't
> undeploy it using the maven plugin anymore - seems to have no effect at all
> (and returns success).
>
> I can see the record created in conf/deploymens.xml:
>
> <additional-deployments xmlns="http://www.openejb.org/System/Configuration
> ">
> <deployments file="/tomee_dir/temp/myapp.war" autoDeploy="false"/>
> </additional-deployments>
>
> And it's not removed when i run the undeploy goal (remote undeployment
> works
> with openejb.deployer.save-deployments=false without any change in the pom
> file)
>
> Is it expected? Is there any way to make tomee:undeploy work in this case?
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679283.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
When i set the openejb.deployer.save-deployments=true, deploy the war and
restart the TomEE - deployment is persisted, that's great! But, I can't
undeploy it using the maven plugin anymore - seems to have no effect at all
(and returns success).
I can see the record created in conf/deploymens.xml:
<additional-deployments xmlns="http://www.openejb.org/System/Configuration">
<deployments file="/tomee_dir/temp/myapp.war" autoDeploy="false"/>
</additional-deployments>
And it's not removed when i run the undeploy goal (remote undeployment works
with openejb.deployer.save-deployments=false without any change in the pom
file)
Is it expected? Is there any way to make tomee:undeploy work in this case?
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679283.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
tomee.remote.support = true
tomee.serialization.class.blacklist = -
openejb.system.apps = true
openejb.deployer.binaries.use=true
openejb.deployer.save-deployments=true
tomee-maven-plugin can be configured and run in two ways (depends what
version of maven is used):
1. Multiple executions (requires maven 3.1+):
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>7.0.0</version>
<configuration>
<tomeeVersion>7.0.0</tomeeVersion>
<tomeeClassifier>webprofile</tomeeClassifier>
</configuration>
<executions>
<execution>
<id>undeploy-it</id>
<phase>none</phase>
<goals>
<goal>undeploy</goal>
</goals>
<configuration>
<tomeeHost>host</tomeeHost>
<tomeeHttpPort>port</tomeeHttpPort>
<path>${project.build.finalName}</path>
</configuration>
</execution>
<execution>
<id>deploy-it</id>
<phase>none</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<tomeeHost>host</tomeeHost>
<tomeeHttpPort>port</tomeeHttpPort>
<path>${basedir}/target/${project.build.finalName}.${project.packaging}</path>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
</dependencies>
</plugin>
run it as tomee:deploy@deploy-it or tomee:undeploy@undeploy-it
2. Comment out executions and use parameters (if you can't upgrade maven):
tomee:deploy -Dtomee-plugin.host=host -Dtomee-plugin.http=port
tomee:undeploy -Dtomee-plugin.archive=<contextPath> -Dtomee-plugin.host=host
-Dtomee-plugin.http=port
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679282.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by mauro2java2011 <ma...@gmail.com>.
Hi . What properties you have setted finally to your project into
tomee-maven-plugin and what properties you gave setted on the
system.properties on tomee server where yiu would deploy your webapp?
For understand how you have resolved.
Mauro
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679267.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
Awesome! Thanks!
From: Romain Manni-Bucau [via TomEE & OpenEJB] [mailto:ml-node+s979440n4679265h36@n4.nabble.com]
Sent: July-08-16 1:20 PM
To: Shultz, Dmitry <Dm...@kaltire.com>
Subject: RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:)
openejb.deployer.save-deployments=true on the server should do it
Le 8 juil. 2016 21:20, "dimas" <[hidden email]</user/SendEmail.jtp?type=node&node=4679265&i=0>> a écrit :
> There is one thing left for me figure out - how to make TomEE 'remember'
> deployments after restart?
>
> I.e. is there any preference to set in order to preserve the deployments
> after restart when they are deployed using tomee maven plugin?
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679264.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
________________________________
If you reply to this email, your message will be added to the discussion below:
http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679265.html
To unsubscribe from Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:), click here<http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4679142&code=ZG1pdHJ5X3NodWx0ekBrYWx0aXJlLmNvbXw0Njc5MTQyfC0yMzcwMzM3NzE=>.
NAML<http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679266.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot
open input stream to server:)
Posted by Romain Manni-Bucau <rm...@gmail.com>.
openejb.deployer.save-deployments=true on the server should do it
Le 8 juil. 2016 21:20, "dimas" <dm...@kaltire.com> a écrit :
> There is one thing left for me figure out - how to make TomEE 'remember'
> deployments after restart?
>
> I.e. is there any preference to set in order to preserve the deployments
> after restart when they are deployed using tomee maven plugin?
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679264.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
There is one thing left for me figure out - how to make TomEE 'remember'
deployments after restart?
I.e. is there any preference to set in order to preserve the deployments
after restart when they are deployed using tomee maven plugin?
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679264.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
Sorry, found this thread
http://tomee-openejb.979440.n4.nabble.com/tomee-deploy-undeploy-td4675115.html
just after i posted my message.
It works now! I had to to create two executions for plugin and upgrade my
maven to support it.
Cheers,
Dmitry
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679261.html
Sent from the TomEE Users mailing list archive at Nabble.com.
RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin
(error=Cannot open input stream to server:)
Posted by dimas <dm...@kaltire.com>.
It took a while but now I'm clear what is the problem - the deployment from
plugin works when the app was not deployed on the server previously.
If the war file was previosly dropped in the webapps directory, tomee:deploy
will fail (error is not clear at all).
If it was deployed using tomee:deploy the maven step will not fail, but
nothing will be redeployed.
tomee:undeploy reports success, but not doing any actual undeploy.
Is it expected to be like this?
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Deployment-to-TomEE-7-0-0-using-tomee-maven-plugin-error-Cannot-open-input-stream-to-server-tp4679142p4679260.html
Sent from the TomEE Users mailing list archive at Nabble.com.