You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by HWinMT <ho...@gmail.com> on 2016/06/23 15:08:42 UTC

TommEE 7 running as Windows service

When I deploy a war file on Tomcat 8.5.3/TomEE 7 (WebProfile Drop In War)
running as a Windows service I get all kinds of errors. If I start the
Tomcat from the command line the app works correctly. Is running Tomcat
8.5.3/TomEE 7 as a Windows service supported? I know I was unable to deploy
WebProfile Drop In War in Tomcat running as a service.

Thanks.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TommEE 7 running as Windows service

Posted by HWinMT <ho...@gmail.com>.
Hello, from here http://tomee.apache.org/downloads.html the WebProfile (NOT
JavaEE7 certified) download runs as a service and works. I borrowed the
extra java parameters from this service install and now my WebProfile Drop
In War works too.

Thanks.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679041.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TommEE 7 running as Windows service

Posted by HWinMT <ho...@gmail.com>.
I only get those errors when I run Tomcat as a Windows service. Starting
Tomcat from a command prompt all works and the logs are clean. I spent over
a day trying to fix the errors on the server (including enhancing), because
I get no errors running the app in debug in Netbeans. The only difference is
the service. I could be confused by now, but I do not think tomee 7 would
work if I deployed it to a Tomcat download that installed as a Windows
service. I think that was the first thing I tried on the server. For the
time being I can start the Tomcat/TomEE startup.bat from a scheduled task.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679038.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TommEE 7 running as Windows service

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Oh,

maybe try enhancing your entities at build time, dont recall if we set the
javaagent for windows but we were not originally.


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-23 18:22 GMT+02:00 HWinMT <ho...@gmail.com>:

> tomeeServiceErr.txt
> <
> http://tomee-openejb.979440.n4.nabble.com/file/n4679036/tomeeServiceErr.txt
> >
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679036.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: TommEE 7 running as Windows service

Posted by HWinMT <ho...@gmail.com>.
tomeeServiceErr.txt
<http://tomee-openejb.979440.n4.nabble.com/file/n4679036/tomeeServiceErr.txt>  



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679036.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TommEE 7 running as Windows service

Posted by HWinMT <ho...@gmail.com>.
That ran my service.bat and I get the same results.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679035.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: TommEE 7 running as Windows service

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

it is supported using the provided service.install.as.admin.bat
<https://github.com/apache/tomee/blob/master/tomee/apache-tomee/src/main/resources/service.install.as.admin.bat>


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-23 17:08 GMT+02:00 HWinMT <ho...@gmail.com>:

> When I deploy a war file on Tomcat 8.5.3/TomEE 7 (WebProfile Drop In War)
> running as a Windows service I get all kinds of errors. If I start the
> Tomcat from the command line the app works correctly. Is running Tomcat
> 8.5.3/TomEE 7 as a Windows service supported? I know I was unable to deploy
> WebProfile Drop In War in Tomcat running as a service.
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: TommEE 7 running as Windows service

Posted by Romain Manni-Bucau <rm...@gmail.com>.
can you share them?


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-23 17:19 GMT+02:00 HWinMT <ho...@gmail.com>:

> I said that wrong. It deploys fine. But at the login screen, at first
> database access it throws all kinds of errors.
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679031.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: TommEE 7 running as Windows service

Posted by HWinMT <ho...@gmail.com>.
I said that wrong. It deploys fine. But at the login screen, at first
database access it throws all kinds of errors.

Thanks.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TommEE-7-running-as-Windows-service-tp4679030p4679031.html
Sent from the TomEE Users mailing list archive at Nabble.com.