Re: Deployment of WEB App from ANT build fails with IOException.

2016-01-26 Thread Karl Hauschildt
Thank you, thank you, thank you. Yes I should have seen that in the doc you
reference but equally surprised that no post, anywhere, bothered to mention
the URL change as it's pretty important. So, now it deploy's find but will
not start which I had been chasing elsewhere. The error is Tomcat throws an
exception of unable to create JAXB Instance very early during
initialization.

On Mon, Jan 25, 2016 at 7:45 PM, Konstantin Kolinko <knst.koli...@gmail.com>
wrote:

> 2016-01-25 0:49 GMT+03:00 Karl Hauschildt <karl.hauschi...@gmail.com>:
> >
> >
> > Background:
> >
> > JAVA Web application, Eclipse workspace with an ANT build.xml.
> >
> > Using Windows, this project builds using java 1.7, deploys to multiple
> > Solaris environments running Tomcat 5, 6 or 7 and runs cleanly.
> >
> >
> >
> > I have to deploy the preceding to a Linux environment with Tomcat 8.
> Which
> > is running JAVA 1.8
> >
> >
> >
> > Problem:
> >
> > The deploy task fails with: BUILD FAILED java.io.IOException: Error
> > writing request body to server
> >
> > Looking in the Tomcat, localhost.log, I see: "PUT
> > /manager/deploy?path=%2FFXInSite=true HTTP/1.1" 403 3196
>
> Note that the above URL can be used only with Tomcat 6 and earlier.
>
> Once you fix your users, you have to change the url in your Ant task,
> or you would end up with error 404.
>
> Migration guide:
> http://tomcat.apache.org/migration-7.html#Manager_application
>
>
> > The other logs contain no errors or warnings.
>
> [...]
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Deployment of application via Tomcat Manager fails.

2016-01-19 Thread Karl Hauschildt
Background:
JAVA Web application, Eclipse workspace with an ANT build.xml.
Using Windows, this project builds using java 1.7, deploys to multiple
Solaris environments running Tomcat 5, 6 or 7 and runs cleanly.

I have to deploy the preceding to a Linux environment with Tomcat 8. Which
is running JAVA 1.8

Problem:
The deploy task fails with: BUILD FAILED java.io.IOException: Error
writing request body to server
Looking in the Tomcat, localhost_access.log, I see: "PUT
/manager/deploy?path=%2FFXInSite=true HTTP/1.1" 403 3196
The other logs contain no errors or warnings.

Investigations:
I have set the Tomcat (catalina) logging levels to DEBUG and FINEST.
I can get into the tomcat and the manager on the same port as what the
deployment uses.
The user that Tomcat is running under ( not root ) has full permissions to
all folders.
I have compared the server.xml and web.xml configuration files between
Linux and Solaris and they are essentially identical.
Google searches for anything to do with ANT and the deploy task, Tomcat 403
errors, permissions have been unsuccessful.

Thank you for your time and consideration.

Suggestions gratefully taken.


Re: Deployment of WEB App from ANT build fails with IOException.

2016-01-25 Thread Karl Hauschildt
Hmmm... It appears that the requests are coming in as the tomcatadmin user
which makes sense as that's what the deploy task is configured to use. In
this cased, the target box is Linux and there is no tomcatadmin setup. When
the sysadmin's get in ...

On Mon, Jan 25, 2016 at 7:17 AM, Mark Thomas <ma...@apache.org> wrote:

> On 25/01/2016 12:02, Karl Hauschildt wrote:
> > Specifically what would I do to enable the logging? I raised the level(s)
> > to FINEST and DEBUG wherever I saw them at something higher.
> > Thanks again.
>
> http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Access_Log_Valve
>
> Mark
>
>
> >
> > On Mon, Jan 25, 2016 at 6:57 AM, Mark Thomas <ma...@apache.org> wrote:
> >
> >> On 25/01/2016 11:42, Karl Hauschildt wrote:
> >>> Hi Mark:
> >>>
> >>> This is what I have in the tomcat-users.xml. And I've tried pairing it
> >> down
> >>> to all the various combo's per suggestions in searches. Behavior never
> >>> changes.
> >>>
> >>> 
> >>> 
> >>> 
> >>> 
> >>>  >>> roles="manager-gui,manager-script,manager-jmx,manager-status"/>
> >>>
> >>> Thanks for taking the time to think about this.
> >>
> >> OK. Make sure you have actually removed all the XML comment markers from
> >> around those entries.
> >>
> >> Next, be aware that allocating the manager-gui and manager-script roles
> >> to the same user exposes you to CSRF attacks. Not necessarily an issue
> >> as long as you are a) aware and b) careful (i.e. if you connect to the
> >> manager gui don't do anything else in the same browser and close the
> >> browser completely when you are done.
> >>
> >> After that, I'd modify your access log configuration to log the name of
> >> the authenticated user and then see what it says when you try and
> deploy.
> >>
> >> Mark
> >>
> >>
> >>>
> >>> On Mon, Jan 25, 2016 at 2:41 AM, Mark Thomas <m...@homeinbox.net>
> wrote:
> >>>
> >>>> On 24 January 2016 21:49:40 GMT+00:00, Karl Hauschildt <
> >>>> karl.hauschi...@gmail.com> wrote:
> >>>>>
> >>>>>
> >>>>> Background:
> >>>>>
> >>>>> JAVA Web application, Eclipse workspace with an ANT build.xml.
> >>>>>
> >>>>> Using Windows, this project builds using java 1.7, deploys to
> multiple
> >>>>> Solaris environments running Tomcat 5, 6 or 7 and runs cleanly.
> >>>>>
> >>>>>
> >>>>>
> >>>>> I have to deploy the preceding to a Linux environment with Tomcat 8.
> >>>>> Which
> >>>>> is running JAVA 1.8
> >>>>>
> >>>>>
> >>>>>
> >>>>> Problem:
> >>>>>
> >>>>> The deploy task fails with: BUILD FAILED java.io.IOException:
> Error
> >>>>> writing request body to server
> >>>>>
> >>>>> Looking in the Tomcat, localhost.log, I see: "PUT
> >>>>> /manager/deploy?path=%2FFXInSite=true HTTP/1.1" 403 3196
> >>>>>
> >>>>> The other logs contain no errors or warnings.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Investigations:
> >>>>>
> >>>>> I have set the Tomcat (catalina) logging levels to DEBUG and FINEST.
> >>>>>
> >>>>> I can get into the tomcat and the manager on the same port as what
> the
> >>>>> delpoyment uses.
> >>>>>
> >>>>> The user that Tomcat is running under ( not root ) has full
> permissions
> >>>>> to
> >>>>> all folders.
> >>>>>
> >>>>> I have compared the server.xml and web.xml configuration files
> between
> >>>>> Linux
> >>>>> and Solaris and they are essentially identical.
> >>>>>
> >>>>> Google searches for anything to do with ANT and the delpoy task,
> Tomcat
> >>>>> 403
> >>>>> errors, permissions have been unsucessful.
> >>>>>
> >>>>>
> >>>>>
> >>>>> Thank you for your time and consideration.
> >>>>
> >>>> What user have you configured for the deploy task?
> >>>>
> >>>> What roles have you configured for that user?
> >>>>
> >>>> Mark
> >>>>
> >>>>
> >>>>
> >>>> -
> >>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >>>> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>>>
> >>>>
> >>>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: switching between Java8 and Java 7 under tomcat7 leads to error

2016-01-25 Thread Karl Hauschildt
Be careful. The only real way to know what tomcat is using is to get into
the manager who will display the java version it is using. Their startup
script makes some determination on the fly.

On Mon, Jan 25, 2016 at 1:34 PM, George Sexton 
wrote:

>
>
> On 1/25/2016 3:52 AM, Christoph P.U. Kukulies wrote:
>
>> Thanks. Will give that a try.
>>
>> How can I tell, which java engine Tomcat is actually using?
>>
>> At a CMD prompt I'm getting:
>>
>>
>> C:\> java -version
>> java version "1.8.0_71"
>> Java(TM) SE Runtime Environment (build 1.8.0_71-b15)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)
>>
>
> If you have a utility that shows what open files the Tomcat process has,
> that would work. Alternatively, get the Manager application running and see
> what information it provides under the Server Status screen.
>
>
>
>
>> --
>> Christoph
>>
>>
>> At Am 22.01.2016 um 18:28 schrieb George Sexton:
>>
>>>
>>>
>>> On 1/22/2016 6:06 AM, Christoph P.U. Kukulies wrote:
>>>
 Windows 7:

 Today I installed Java 8 on my windows 7 machine and did an upgrade of
 the CMS at the same time (from OpenCMS 9.5.2 to 9.5.3).
 After the Java update and the CMS update suddenly my tomcat 6.0.39
 didn't start any longer. The service gave an error at start time:

 Der Dienst "Apache Tomcat 6.0 Tomcat6" wurde mit folgendem
 dienstspezifischem Fehler beendet: Unzulässige Funktion..


>>> I've seen this on Windows when upgrading the JRE. The solution that
>>> worked for me (multiple times) was to uninstall Java, and then re-install
>>> it. Make sure you grab the correct version (x86, x64) to go with your
>>> Tomcat install.
>>>
>>>
>>>
>>> My thoughts came to tomcat6 possibly not being compatible with Java8 and
 so I decided to install tomcat 7.0 which started fine.

 When starting my CMS system again I now found that it did some
 unpleasant things for which I wanted to rule out tomcat7 being the culprit
 and switch the jvm.dll in the tomcat7 configurator to the jre1.7
 jvm.dll.

 Then suddenly I got the same error as under tomcat6.0 when I tried to
 start tomcat7 again.

 Could it be that the Java8 installer screws the existing Java 7 ? Or
 does it change some global parameters that tomcat reads at start time.


 Thanks.

 --
 Christoph



>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> --
> George Sexton
> *MH Software, Inc.*
> Voice: 303 438 9585
> http://www.mhsoftware.com
>


Re: Deployment of WEB App from ANT build fails with IOException.

2016-01-25 Thread Karl Hauschildt
Hi Mark:

This is what I have in the tomcat-users.xml. And I've tried pairing it down
to all the various combo's per suggestions in searches. Behavior never
changes.







Thanks for taking the time to think about this.

On Mon, Jan 25, 2016 at 2:41 AM, Mark Thomas <m...@homeinbox.net> wrote:

> On 24 January 2016 21:49:40 GMT+00:00, Karl Hauschildt <
> karl.hauschi...@gmail.com> wrote:
> >
> >
> >Background:
> >
> >JAVA Web application, Eclipse workspace with an ANT build.xml.
> >
> >Using Windows, this project builds using java 1.7, deploys to multiple
> >Solaris environments running Tomcat 5, 6 or 7 and runs cleanly.
> >
> >
> >
> >I have to deploy the preceding to a Linux environment with Tomcat 8.
> >Which
> >is running JAVA 1.8
> >
> >
> >
> >Problem:
> >
> >The deploy task fails with: BUILD FAILED java.io.IOException: Error
> >writing request body to server
> >
> >Looking in the Tomcat, localhost.log, I see: "PUT
> >/manager/deploy?path=%2FFXInSite=true HTTP/1.1" 403 3196
> >
> >The other logs contain no errors or warnings.
> >
> >
> >
> >Investigations:
> >
> >I have set the Tomcat (catalina) logging levels to DEBUG and FINEST.
> >
> >I can get into the tomcat and the manager on the same port as what the
> >delpoyment uses.
> >
> >The user that Tomcat is running under ( not root ) has full permissions
> >to
> >all folders.
> >
> >I have compared the server.xml and web.xml configuration files between
> >Linux
> >and Solaris and they are essentially identical.
> >
> >Google searches for anything to do with ANT and the delpoy task, Tomcat
> >403
> >errors, permissions have been unsucessful.
> >
> >
> >
> >Thank you for your time and consideration.
>
> What user have you configured for the deploy task?
>
> What roles have you configured for that user?
>
> Mark
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Deployment of WEB App from ANT build fails with IOException.

2016-01-25 Thread Karl Hauschildt
Specifically what would I do to enable the logging? I raised the level(s)
to FINEST and DEBUG wherever I saw them at something higher.
Thanks again.

On Mon, Jan 25, 2016 at 6:57 AM, Mark Thomas <ma...@apache.org> wrote:

> On 25/01/2016 11:42, Karl Hauschildt wrote:
> > Hi Mark:
> >
> > This is what I have in the tomcat-users.xml. And I've tried pairing it
> down
> > to all the various combo's per suggestions in searches. Behavior never
> > changes.
> >
> > 
> > 
> > 
> > 
> >  > roles="manager-gui,manager-script,manager-jmx,manager-status"/>
> >
> > Thanks for taking the time to think about this.
>
> OK. Make sure you have actually removed all the XML comment markers from
> around those entries.
>
> Next, be aware that allocating the manager-gui and manager-script roles
> to the same user exposes you to CSRF attacks. Not necessarily an issue
> as long as you are a) aware and b) careful (i.e. if you connect to the
> manager gui don't do anything else in the same browser and close the
> browser completely when you are done.
>
> After that, I'd modify your access log configuration to log the name of
> the authenticated user and then see what it says when you try and deploy.
>
> Mark
>
>
> >
> > On Mon, Jan 25, 2016 at 2:41 AM, Mark Thomas <m...@homeinbox.net> wrote:
> >
> >> On 24 January 2016 21:49:40 GMT+00:00, Karl Hauschildt <
> >> karl.hauschi...@gmail.com> wrote:
> >>>
> >>>
> >>> Background:
> >>>
> >>> JAVA Web application, Eclipse workspace with an ANT build.xml.
> >>>
> >>> Using Windows, this project builds using java 1.7, deploys to multiple
> >>> Solaris environments running Tomcat 5, 6 or 7 and runs cleanly.
> >>>
> >>>
> >>>
> >>> I have to deploy the preceding to a Linux environment with Tomcat 8.
> >>> Which
> >>> is running JAVA 1.8
> >>>
> >>>
> >>>
> >>> Problem:
> >>>
> >>> The deploy task fails with: BUILD FAILED java.io.IOException: Error
> >>> writing request body to server
> >>>
> >>> Looking in the Tomcat, localhost.log, I see: "PUT
> >>> /manager/deploy?path=%2FFXInSite=true HTTP/1.1" 403 3196
> >>>
> >>> The other logs contain no errors or warnings.
> >>>
> >>>
> >>>
> >>> Investigations:
> >>>
> >>> I have set the Tomcat (catalina) logging levels to DEBUG and FINEST.
> >>>
> >>> I can get into the tomcat and the manager on the same port as what the
> >>> delpoyment uses.
> >>>
> >>> The user that Tomcat is running under ( not root ) has full permissions
> >>> to
> >>> all folders.
> >>>
> >>> I have compared the server.xml and web.xml configuration files between
> >>> Linux
> >>> and Solaris and they are essentially identical.
> >>>
> >>> Google searches for anything to do with ANT and the delpoy task, Tomcat
> >>> 403
> >>> errors, permissions have been unsucessful.
> >>>
> >>>
> >>>
> >>> Thank you for your time and consideration.
> >>
> >> What user have you configured for the deploy task?
> >>
> >> What roles have you configured for that user?
> >>
> >> Mark
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Deployment of WEB App from ANT build fails with IOException.

2016-01-24 Thread Karl Hauschildt
 

Background:

JAVA Web application, Eclipse workspace with an ANT build.xml. 

Using Windows, this project builds using java 1.7, deploys to multiple
Solaris environments running Tomcat 5, 6 or 7 and runs cleanly.

 

I have to deploy the preceding to a Linux environment with Tomcat 8. Which
is running JAVA 1.8

 

Problem:

The deploy task fails with: BUILD FAILED java.io.IOException: Error
writing request body to server

Looking in the Tomcat, localhost.log, I see: "PUT
/manager/deploy?path=%2FFXInSite=true HTTP/1.1" 403 3196 

The other logs contain no errors or warnings.

 

Investigations:

I have set the Tomcat (catalina) logging levels to DEBUG and FINEST. 

I can get into the tomcat and the manager on the same port as what the
delpoyment uses.

The user that Tomcat is running under ( not root ) has full permissions to
all folders.

I have compared the server.xml and web.xml configuration files between Linux
and Solaris and they are essentially identical.

Google searches for anything to do with ANT and the delpoy task, Tomcat 403
errors, permissions have been unsucessful. 

 

Thank you for your time and consideration.