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/06/30 16:47:05 UTC

Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:)

Hi Folks,

I developed the app and now it's time to automate the deployment, so I'm
trying to use the  tomee-maven-plugin:1.7.1. Here is the config:

<plugin>
            <groupId>org.apache.openejb.maven</groupId>
            <artifactId>tomee-maven-plugin</artifactId>
            <configuration>
                <tomeeVersion>7.0.0</tomeeVersion>
                <tomeeClassifier>webprofile</tomeeClassifier>
                <tomeeHost>localhost</tomeeHost>
                <tomeeHttpPort>8080</tomeeHttpPort>
                <path>/test</path>
            </configuration>
        </plugin>

Getting this error: 

Jun 30, 2016 9:54:02 AM org.apache.openejb.client.EventLogger log
INFO:
RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb}
Jun 30, 2016 9:54:02 AM org.apache.openejb.client.EventLogger log
WARNING: RequestFailed{server=http://localhost:8080/tomee/ejb}
JNDI_LOOKUP:/openejb/DeployerBusinessRemote {error=Cannot open input stream
to server: }

TomEE is running on localhost:8080, what can be wrong?

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-tp4679142.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.

RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:)

Posted by dimas <dm...@kaltire.com>.
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 Romain Manni-Bucau <rm...@gmail.com>.
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 <dm...@kaltire.com>:

> 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:
> ml-node+s979440n4679165h36@n4.nabble.com]
> Sent: June-30-16 2:43 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:)
>
> 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<
> 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
> >
>
>
> 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.
>

RE: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:)

Posted by dimas <dm...@kaltire.com>.
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:ml-node+s979440n4679165h36@n4.nabble.com]
Sent: June-30-16 2:43 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:)

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<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>


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.

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>.
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 <dm...@kaltire.com>:

> 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.
>

Re: Deployment to TomEE 7.0.0 using tomee-maven-plugin (error=Cannot open input stream to server:)

Posted by dimas <dm...@kaltire.com>.
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.

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>.
GroupId replaced openejb by tomee for 7.x ie org.apache.tomee.maven
Le 30 juin 2016 22:00, "dimas" <dm...@kaltire.com> a écrit :

> I can't find 7.0.0 plugin in the maven central, so upgraded to 1.7.4 (just
> in
> case)
>
> With 1.7.4/1 I'm able to deploy to the running localhost TomEE
> successfully.
> However, deployment to the remote server is stopped with error:
>
> SEVERE - Can't find of appInfo for /bla/bla/bla/tmp/test-1.0.war,
> availables: [/bla/bla/bla/webapps/test-1.0,
> /usr/apache-tomee/webapps/manager, /usr/apache-tomee/webapps/host-manager,
> /usr/apache-tomee/webapps/ROOT]
>
>
>
>
>
> --
> 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-tp4679142p4679155.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>.
I can't find 7.0.0 plugin in the maven central, so upgraded to 1.7.4 (just in
case)

With 1.7.4/1 I'm able to deploy to the running localhost TomEE successfully.
However, deployment to the remote server is stopped with error:

SEVERE - Can't find of appInfo for /bla/bla/bla/tmp/test-1.0.war,
availables: [/bla/bla/bla/webapps/test-1.0,
/usr/apache-tomee/webapps/manager, /usr/apache-tomee/webapps/host-manager,
/usr/apache-tomee/webapps/ROOT]





--
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-tp4679142p4679155.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>.
Escuse me but i have noted that you use 
the tomee-maven plugin 1.7.1. 

But you use tomee7.

So i think that you have to modify the version of tomee-maven plugin at
versoon 7.0 like the tomee that you use into your project.

The dipendencies not work for different version .









--
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-tp4679142p4679151.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>.
the client side gets a minimal set of dependencies for the default case,
you can need to add more if you use some features (typically there to
deserialize exception). Just add <dependencies> to the *plugin*. That said
your server you have logged the actual error.


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 20:12 GMT+02:00 dimas <dm...@kaltire.com>:

> It was no enabled by default, fixed. Now getting this error:
>
> [ERROR] Failed to execute goal
> org.apache.openejb.maven:tomee-maven-plugin:1.7.1:deploy (default-cli) on
> project fsa-tss2click-adapter: Execution default-cli of goal
> org.apache.openejb.maven:tomee-maven-plugin:1.7.1:deploy failed: Unknown
> Container Exception: java.rmi.RemoteException: Cannot read the response
> from
> the server.  The class for an object being returned is not located in this
> system:; nested exception is:
> [ERROR] java.lang.ClassNotFoundException:
> javax/enterprise/inject/spi/DeploymentException
>
>
>
>
> --
> 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-tp4679142p4679147.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 was no enabled by default, fixed. Now getting this error: 

[ERROR] Failed to execute goal
org.apache.openejb.maven:tomee-maven-plugin:1.7.1:deploy (default-cli) on
project fsa-tss2click-adapter: Execution default-cli of goal
org.apache.openejb.maven:tomee-maven-plugin:1.7.1:deploy failed: Unknown
Container Exception: java.rmi.RemoteException: Cannot read the response from
the server.  The class for an object being returned is not located in this
system:; nested exception is:
[ERROR] java.lang.ClassNotFoundException:
javax/enterprise/inject/spi/DeploymentException




--
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-tp4679142p4679147.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.system.apps=true is not set too
Le 30 juin 2016 20:41, "dimas" <dm...@kaltire.com> a écrit :

> Thanks Romain,
>
> I fixed that and now I'm getting:
>
> deploy failed: /openejb/DeployerBusinessRemote does not exist in the
> system.
>
> Found this thread
>
>
> http://tomee-openejb.979440.n4.nabble.com/7-0-0-M3-synchronization-td4677806.html
>
> but not sure what to do next.
>
>
>
>
>
> --
> 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-tp4679142p4679144.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>.
Thanks Romain,

I fixed that and now I'm getting: 

deploy failed: /openejb/DeployerBusinessRemote does not exist in the system. 

Found this thread 

http://tomee-openejb.979440.n4.nabble.com/7-0-0-M3-synchronization-td4677806.html

but not sure what to do next.





--
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-tp4679142p4679144.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>.
Hi

you need to ensure tomee openejb application is activated
(tomee.remote.support=true
in conf/system.properties) and ejbd blacklist is setup to support it (
http://tomee.apache.org/ejbd-transport.html)


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 18:47 GMT+02:00 dimas <dm...@kaltire.com>:

> Hi Folks,
>
> I developed the app and now it's time to automate the deployment, so I'm
> trying to use the  tomee-maven-plugin:1.7.1. Here is the config:
>
> <plugin>
>             <groupId>org.apache.openejb.maven</groupId>
>             <artifactId>tomee-maven-plugin</artifactId>
>             <configuration>
>                 <tomeeVersion>7.0.0</tomeeVersion>
>                 <tomeeClassifier>webprofile</tomeeClassifier>
>                 <tomeeHost>localhost</tomeeHost>
>                 <tomeeHttpPort>8080</tomeeHttpPort>
>                 <path>/test</path>
>             </configuration>
>         </plugin>
>
> Getting this error:
>
> Jun 30, 2016 9:54:02 AM org.apache.openejb.client.EventLogger log
> INFO:
> RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb}
> Jun 30, 2016 9:54:02 AM org.apache.openejb.client.EventLogger log
> WARNING: RequestFailed{server=http://localhost:8080/tomee/ejb}
> JNDI_LOOKUP:/openejb/DeployerBusinessRemote {error=Cannot open input stream
> to server: }
>
> TomEE is running on localhost:8080, what can be wrong?
>
> 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-tp4679142.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>