Java Mailing List Archive

http://www.junlu.com/

Home » users-digest.tomcat »

users Digest 21 Mar 2013 21:32:21 -0000 Issue 11308

users-digest-help

2013-03-21


Author LoginPost Reply

users Digest 21 Mar 2013 21:32:21 -0000 Issue 11308

Topics (messages 240624 through 240641)

Re: Procrun and Tomcat service/OS shutdown on Windows
 240624 by: Thomas, Steve

[OT] repos/asf/tomcat
 240625 by: Leo Donahue - RDSA IT
 240626 by: Mark Thomas
 240635 by: Leo Donahue - RDSA IT
 240636 by: Mark Thomas

virtual directory
 240627 by: Tommy Pham
 240628 by: André Warnier
 240629 by: Manuel Fernández Panzuela
 240630 by: André Warnier
 240631 by: Christopher Schultz
 240632 by: Tommy Pham
 240633 by: André Warnier
 240634 by: Caldarale, Charles R
 240638 by: Tommy Pham

My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently
 240637 by: Julien Martin
 240639 by: Daniel Mikusa
 240640 by: Caldarale, Charles R

Executable Tomcat JAR/WAR executes fine standalone, classloading errors in JNLP
 240641 by: Nick Williams

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: users@(protected)
To unsubscribe, e-mail: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-digest-help@(protected)

----------------------------------------------------------------------


Attachment: users_240624.eml (zipped)
Following up...

-----Original Message-----
From: Harris, Jeffrey E. [mailto:Jeffrey.Harris@(protected)]
Sent: Thursday, March 14, 2013 12:52 PM
To: Tomcat Users List
Subject: RE: Procrun and Tomcat service/OS shutdown on Windows

(snip)

Finally you might also want to try delaying the shutdown timer on the system to give Tomcat and/or HSQLDB more time to shutdown. It might be possible that it is taking longer than the 12 seconds Windows allows by default for a service to shutdown. That timer can be changed at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control (WaitToKillServiceTimeout value; the data is in milliseconds). However, Windows 7 and Windows Server 2008 R2 need a hotfix to change this setting (see http://support.microsoft.com/kb/2549760).

Jeffrey Harris
---------------------------------------------------------------------

Jeffrey -

Thanks again for your suggestions.

Our customer is indeed running Win7 professional, so I passed this on. The SERVICE_ACCEPT_PRESHUTDOWN is interesting for a longer-term fix, if we modified the commons-daemon code ourselves.

On another note, I corresponded with the HSQLDB maintainer and he told me that if the shutdown is interrupted, the database can be corrupted. He is plugging various holes in this area, but is not yet taking advantage of any native support for transactional disk writes that might prevent that sort of thing. Wondering if any of the other embedded db's (Derby or H2) use them... 'More to investigate.

Regards,

Steve
This message is intended only for the named recipient. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action based on the contents of this information is strictly prohibited.



Attachment: users_240625.eml (zipped)
Trying to teach myself Subversion by way of the Eclipse plugin (Subversive SVN Team Provider, SVNKit 1.7.8 Implementation) and I'm looking at the tomcat repository and trying to understand what I'm seeing.

What is the difference between the trunk directory at the root of http://svn.apache.org/repos/asf/tomcat/ and the trunk directory in the /tc7.0.x/ ?

/repos/asf/tomcat/     is the repository?
/tc7.0.x/                     is the "project" in that repository?

Of course, my eclipse subversion plugin only gives me a local repository, so perhaps Subversion running in a web server is slightly different than what I can do with this plugin? Sorry for the OT post.

Leo


Attachment: users_240626.eml (zipped)
On 21/03/2013 16:53, Leo Donahue - RDSA IT wrote:
> Trying to teach myself Subversion by way of the Eclipse plugin (Subversive SVN Team Provider, SVNKit 1.7.8 Implementation) and I'm looking at the tomcat repository and trying to understand what I'm seeing.
>
> What is the difference between the trunk directory at the root of http://svn.apache.org/repos/asf/tomcat/ and the trunk directory in the /tc7.0.x/ ?
>
> /repos/asf/tomcat/     is the repository?
> /tc7.0.x/                     is the "project" in that repository?
>
> Of course, my eclipse subversion plugin only gives me a local repository, so perhaps Subversion running in a web server is slightly different than what I can do with this plugin? Sorry for the OT post.
>
> Leo
>
>
http://tomcat.apache.org/svn.html

Mark


Attachment: users_240635.eml (zipped)
>-----Original Message-----
>From: Mark Thomas [mailto:markt@(protected)]
>Subject: Re: [OT] repos/asf/tomcat
>
>On 21/03/2013 16:53, Leo Donahue - RDSA IT wrote:
>> Trying to teach myself Subversion by way of the Eclipse plugin (Subversive
>SVN Team Provider, SVNKit 1.7.8 Implementation) and I'm looking at the
>tomcat repository and trying to understand what I'm seeing.
>>
>> What is the difference between the trunk directory at the root of
>http://svn.apache.org/repos/asf/tomcat/ and the trunk directory in the
>/tc7.0.x/ ?
>>
>> /repos/asf/tomcat/     is the repository?
>> /tc7.0.x/                     is the "project" in that repository?
>>
>> Of course, my eclipse subversion plugin only gives me a local repository, so
>perhaps Subversion running in a web server is slightly different than what I
>can do with this plugin? Sorry for the OT post.
>>
>> Leo
>>
>>
>http://tomcat.apache.org/svn.html
>
>Mark
>

Thanks.

Repository structure !(necessarily)= project structure ?


Attachment: users_240636.eml (zipped)
On 21/03/2013 20:30, Leo Donahue - RDSA IT wrote:
>> -----Original Message-----
>> From: Mark Thomas [mailto:markt@(protected)]
>> Subject: Re: [OT] repos/asf/tomcat
>>
>> On 21/03/2013 16:53, Leo Donahue - RDSA IT wrote:
>>> Trying to teach myself Subversion by way of the Eclipse plugin (Subversive
>> SVN Team Provider, SVNKit 1.7.8 Implementation) and I'm looking at the
>> tomcat repository and trying to understand what I'm seeing.
>>>
>>> What is the difference between the trunk directory at the root of
>> http://svn.apache.org/repos/asf/tomcat/ and the trunk directory in the
>> /tc7.0.x/ ?
>>>
>>> /repos/asf/tomcat/     is the repository?
>>> /tc7.0.x/                     is the "project" in that repository?
>>>
>>> Of course, my eclipse subversion plugin only gives me a local repository, so
>> perhaps Subversion running in a web server is slightly different than what I
>> can do with this plugin? Sorry for the OT post.
>>>
>>> Leo
>>>
>>>
>> http://tomcat.apache.org/svn.html
>>
>> Mark
>>
>
> Thanks.
>
> Repository structure !(necessarily)= project structure ?

Generally with Eclipse you can checkout any of the following as projects:

/tomcat/trunk
/tomcat/tc7.0.x/trunk
/tomcat/tc6.0.x/trunk

There are others but that will get you started.

Mark


Attachment: users_240627.eml (zipped)
Hi,

I'm trying to setup my virtual directory wwwroot as
http://localhost/wwwroot/ mapped to d:\wwwroot but I'm getting

HTTP Status 404 - /wwwroot/

type Status report

message /wwwroot/

description The requested resource (/wwwroot/) is not available.
Apache Tomcat/7.0.26



My wwwroot.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Context path="/wwwroot" docBase="D:/wwwroot" debug="0" privileged="true">
</Context>

and the localhost log:

Mar 21, 2013 10:14:38 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Mar 21, 2013 10:14:38 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor
D:\apache-tomcat-7.0.26\conf\Catalina\localhost\wwwroot.xml
Mar 21, 2013 10:14:38 AM
org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug'
to '0' did not find a matching property.
Mar 21, 2013 10:14:39 AM org.apache.catalina.util.SessionIdGenerator
createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation
using [SHA1PRNG] took [145] milliseconds.
Mar 21, 2013 10:14:39 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.26\webapps\docs

Did I misread the doc [1]?

Thanks,
Tommy

[1] http://tomcat.apache.org/tomcat-7.0-doc/config/context.html


Attachment: users_240628.eml (zipped)
Tommy Pham wrote:
> Hi,
>
> I'm trying to setup my virtual directory wwwroot as
> http://localhost/wwwroot/ mapped to d:\wwwroot but I'm getting
>
> HTTP Status 404 - /wwwroot/
>
> type Status report
>
> message /wwwroot/
>
> description The requested resource (/wwwroot/) is not available.
> Apache Tomcat/7.0.26
>
>
>
> My wwwroot.xml:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Context path="/wwwroot" docBase="D:/wwwroot" debug="0" privileged="true">
> </Context>
>
> and the localhost log:
>
> Mar 21, 2013 10:14:38 AM org.apache.catalina.core.StandardEngine startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
> Mar 21, 2013 10:14:38 AM org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deploying configuration descriptor
> D:\apache-tomcat-7.0.26\conf\Catalina\localhost\wwwroot.xml
> Mar 21, 2013 10:14:38 AM
> org.apache.catalina.startup.SetContextPropertiesRule begin
> WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug'
> to '0' did not find a matching property.
> Mar 21, 2013 10:14:39 AM org.apache.catalina.util.SessionIdGenerator
> createSecureRandom
> INFO: Creation of SecureRandom instance for session ID generation
> using [SHA1PRNG] took [145] milliseconds.
> Mar 21, 2013 10:14:39 AM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory D:\apache-tomcat-7.0.26\webapps\docs
>
> Did I misread the doc [1]?
>
> Thanks,
> Tommy
>
> [1] http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
>

Well, you seem to have.

path : This attribute must only be used when statically defining a Context in server.xml.
In all other circumstances, the path will be inferred from the filenames used for either
the .xml context file or the docBase.

debug : doesn't exist, as your log messages indicate

privileged : are you sure ?




Attachment: users_240629.eml (zipped)
To publish your wwwdoc directory you must edit sever.xml and look for <Host>
tag. Inside this block write a line like::

<Context docBase="D:/wwwroot" path="/wwwroot" reloadable="true" />

Don't use "debug" as André says

:)


Un abrazo


2013/3/21 André Warnier <aw@(protected)>

> Tommy Pham wrote:
>
>> Hi,
>>
>> I'm trying to setup my virtual directory wwwroot as
>> http://localhost/wwwroot/ mapped to d:\wwwroot but I'm getting
>>
>> HTTP Status 404 - /wwwroot/
>>
>> type Status report
>>
>> message /wwwroot/
>>
>> description The requested resource (/wwwroot/) is not available.
>> Apache Tomcat/7.0.26
>>
>>
>>
>> My wwwroot.xml:
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <Context path="/wwwroot" docBase="D:/wwwroot" debug="0" privileged="true">
>> </Context>
>>
>> and the localhost log:
>>
>> Mar 21, 2013 10:14:38 AM org.apache.catalina.core.**StandardEngine
>> startInternal
>> INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
>> Mar 21, 2013 10:14:38 AM org.apache.catalina.startup.**HostConfig
>> deployDescriptor
>> INFO: Deploying configuration descriptor
>> D:\apache-tomcat-7.0.26\conf\**Catalina\localhost\wwwroot.xml
>> Mar 21, 2013 10:14:38 AM
>> org.apache.catalina.startup.**SetContextPropertiesRule begin
>> WARNING: [SetContextPropertiesRule]{**Context} Setting property 'debug'
>> to '0' did not find a matching property.
>> Mar 21, 2013 10:14:39 AM org.apache.catalina.util.**SessionIdGenerator
>> createSecureRandom
>> INFO: Creation of SecureRandom instance for session ID generation
>> using [SHA1PRNG] took [145] milliseconds.
>> Mar 21, 2013 10:14:39 AM org.apache.catalina.startup.**HostConfig
>> deployDirectory
>> INFO: Deploying web application directory D:\apache-tomcat-7.0.26\**
>> webapps\docs
>>
>> Did I misread the doc [1]?
>>
>> Thanks,
>> Tommy
>>
>> [1] http://tomcat.apache.org/**tomcat-7.0-doc/config/context.**html<http://tomcat.apache.org/tomcat-7.0-doc/config/context.html>
>>
>>
> Well, you seem to have.
>
> path : This attribute must only be used when statically defining a Context
> in server.xml. In all other circumstances, the path will be inferred from
> the filenames used for either the .xml context file or the docBase.
>
> debug : doesn't exist, as your log messages indicate
>
> privileged : are you sure ?
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<users-unsubscribe@(protected)>
> For additional commands, e-mail: users-help@(protected)
>
>

Attachment: users_240630.eml (zipped)
Manuel Fernández Panzuela wrote:
> To publish your wwwdoc directory you must edit sever.xml and look for <Host>
> tag. Inside this block write a line like::
>
> <Context docBase="D:/wwwroot" path="/wwwroot" reloadable="true" />
>
Hi.
Don't top-post.
And the page which the original poster apparently mis-read, also says (in bold) :

It is NOT recommended to place <Context> elements directly in the server.xml file.

https://tomcat.apache.org/tomcat-7.0-doc/config/context.html


Attachment: users_240631.eml (zipped)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tommy,

On 3/21/13 1:23 PM, Tommy Pham wrote:
> I'm trying to setup my virtual directory wwwroot as
> http://localhost/wwwroot/ mapped to d:\wwwroot but I'm getting
>
> HTTP Status 404 - /wwwroot/
>
> type Status report
>
> message /wwwroot/
>
> description The requested resource (/wwwroot/) is not available.
> Apache Tomcat/7.0.26
>
>
> My wwwroot.xml:
>
> <?xml version="1.0" encoding="ISO-8859-1"?> <Context
> path="/wwwroot" docBase="D:/wwwroot" debug="0" privileged="true">
> </Context>

I would have expected this to work, though you should take André's
suggestions and clean-up that file. What is in D:\wwwroot?

Where did you put wwwroot.xml?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJRS1kaAAoJEBzwKT+lPKRYLL0P/0ThqoCuRoep+QJFHsYHdGWS
5QUpzPBXrvG9o1oEdnUJrz1/Y854waF/XzvTNYFKDyeFvkD2M3TV610vwcEB7A2v
/8CPZAuB56084TYU6MbJkwivOkUPBPEphLjrkMavuNYlfVH8Mifp7d4ZwKJ7mwJz
xGly9NeqfzyVjXXxjwn8FGxvlnqLxcZyTwxvleiDnllk7HxXrfx1a9+ELpU8l+A0
Tzmn87hNmNrdpwqfJ8g3EKH/r6bitRYhqDld2Q/agzNDmPLiYwby7HWg3Tmh3gfK
MQkQekYhp3kY48VhrNI1g79+m4Pt0LJQaCElwe+GaYkX3lZLB2TR61EVUG9V31b2
cRcCqgbnBbfYHOREvC+FTb5URUmrXgG9/5NZ/t/EaHSsHlArOWCSSS/g8cDL9NjE
pSDF4elWrclUGHzcPKE9p925/lMRHWDC9NpBf97o+z2SIPzBufeFSZ8AxKHlO6Yj
Ytb0geE3I3hiuSfdYq668gvMV+UA6+fhZ7CZHdSCM9Ul3YSf8xAJQE1B1csghF+0
zHwZTFR3K2dXUwm7InqscmSUh/I+94fBs7m2z6aQ3BuKCF7dZeycROoddu8YJucw
1byxSWRtnIU1FQbzT62Fufbb6y5ycbrw8j/jptJ9XU14I/2l7GDO5Y0aelkrh84n
VUB5SVTZs3Hgevz2k4Of
=YHLS
-----END PGP SIGNATURE-----


Attachment: users_240632.eml (zipped)
On Thu, Mar 21, 2013 at 11:10 AM, André Warnier <aw@(protected):
> Manuel Fernández Panzuela wrote:
>>
>> To publish your wwwdoc directory you must edit sever.xml and look for
>> <Host>
>> tag. Inside this block write a line like::
>>
>> <Context docBase="D:/wwwroot" path="/wwwroot" reloadable="true" />
>>
> Hi.
> Don't top-post.
> And the page which the original poster apparently mis-read, also says (in
> bold) :
>
> It is NOT recommended to place <Context> elements directly in the server.xml
> file.
>
> https://tomcat.apache.org/tomcat-7.0-doc/config/context.html
>


Hi André,

Thanks for the feedback. I'm still getting the 404 error with this wwwroot.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Context docBase="D:/wwwroot">
</Context>

And the catalina log shows:Mar 21, 2013 11:46:27 AM

org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Mar 21, 2013 11:46:27 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor
D:\apache-tomcat-7.0.26\conf\Catalina\localhost\wwwroot.xml
Mar 21, 2013 11:46:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.26\webapps\docs
Mar 21, 2013 11:46:28 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory
D:\apache-tomcat-7.0.26\webapps\examples

Thanks,
Tommy


Attachment: users_240633.eml (zipped)
Tommy Pham wrote:
> On Thu, Mar 21, 2013 at 11:10 AM, André Warnier <aw@(protected):
>> Manuel Fernández Panzuela wrote:
>>> To publish your wwwdoc directory you must edit sever.xml and look for
>>> <Host>
>>> tag. Inside this block write a line like::
>>>
>>> <Context docBase="D:/wwwroot" path="/wwwroot" reloadable="true" />
>>>
>> Hi.
>> Don't top-post.
>> And the page which the original poster apparently mis-read, also says (in
>> bold) :
>>
>> It is NOT recommended to place <Context> elements directly in the server.xml
>> file.
>>
>> https://tomcat.apache.org/tomcat-7.0-doc/config/context.html
>>
>
>
> Hi André,
>
> Thanks for the feedback. I'm still getting the 404 error with this wwwroot.xml:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Context docBase="D:/wwwroot">
> </Context>
>
> And the catalina log shows:Mar 21, 2013 11:46:27 AM
>
> org.apache.catalina.core.StandardEngine startInternal
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
> Mar 21, 2013 11:46:27 AM org.apache.catalina.startup.HostConfig deployDescriptor
> INFO: Deploying configuration descriptor
> D:\apache-tomcat-7.0.26\conf\Catalina\localhost\wwwroot.xml
> Mar 21, 2013 11:46:28 AM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory D:\apache-tomcat-7.0.26\webapps\docs
> Mar 21, 2013 11:46:28 AM org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory
> D:\apache-tomcat-7.0.26\webapps\examples
>


Like Christopher, I would have expected this to work.
So, a few stupid questions (but one never knows) :
- is there actually something in D:\wwwroot ? if yes, what ?
- is your browser (window) opened on the same host as where you have tomcat installed ?
- is it this tomcat that is listening on port 80 ?
- do you have more than 1 (uncommented) <Host> in your server.xml ?
- can you call up http://localhost/docs ?
- what happens if you copy what is now in D:\wwwroot, to
D:\apache-tomcat-7.0.26\webapps\wwwroot ?


Attachment: users_240634.eml (zipped)
> From: Tommy Pham [mailto:tommyhp2@(protected)]
> Subject: Re: virtual directory

> I'm still getting the 404 error with this wwwroot.xml:

> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Context docBase="D:/wwwroot">
> </Context>

In addition to the questions André asked, one very critical one: where is that wwwroot.xml file located?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.



Attachment: users_240638.eml (zipped)
Hi Chuck and Andre,

Silly me... I figured out what was the issue. I didn't have the index
page defined in Tomcat's web.xml within the D:\wwwroot. The eventual
content of this folder will be images anyway. Would I need to code an
interceptor to detect 404 error and path to redirect the visitor to
another URL instead of Tomcat's default 404 error?

Thanks for your time,
Tommy


Attachment: users_240637.eml (zipped)
Hello,

I have the following Spring MVC 3.2 code (it uses the DeferredResult
class<http://static.springsource.org/spring/docs/3.2.2.RELEASE/javadoc-api/org/springframework/web/context/request/async/DeferredResult.html>
):

@RequestMapping(value = "getMessages", method = RequestMethod.GET,
produces = "application/json")
  @ResponseBody
  public DeferredResult<List<Message>> getMessages(@(protected)
final Long senderId) {
    final Long recipientId = memberService.retrieveCurrentMember().getId();
    final String messageRequestKey = new
StringBuilder().append(senderId).append(":").append(recipientId).toString();
    final DeferredResult<List<Message>> deferredResult = new
DeferredResult<List<Message>>(null, Collections.emptyList());
    messageRequests.put(messageRequestKey, deferredResult);

    deferredResult.onCompletion(new Runnable() {
       @Override
       public void run() {
          messageRequests.remove(messageRequestKey);
       }
    });

    List<Message> unReadMessages =
messageService.findUnreadMessages(senderId, recipientId);
    if (!unReadMessages.isEmpty()) {
       deferredResult.setResult(unReadMessages);
    }
    return deferredResult;
  }

This method is polled continuously by an ajax call and it
systematically *causes
Tomcat to crash upon the 9th method invocation*. Note that Tomcat crashes
without any error message.

*I would be very grateful if someone could help me determine the reason why
this code exhibits this behavior, perhaps by giving me tips on how to debug
the app/tomcat.*

Regards,

Julien.

Attachment: users_240639.eml (zipped)
On Mar 21, 2013, at 4:46 PM, Julien Martin wrote:

> Hello,
>
> I have the following Spring MVC 3.2 code (it uses the DeferredResult
> class<http://static.springsource.org/spring/docs/3.2.2.RELEASE/javadoc-api/org/springframework/web/context/request/async/DeferredResult.html>
> ):
>
> @RequestMapping(value = "getMessages", method = RequestMethod.GET,
> produces = "application/json")
>   @ResponseBody
>   public DeferredResult<List<Message>> getMessages(@(protected)
> final Long senderId) {
>     final Long recipientId = memberService.retrieveCurrentMember().getId();
>     final String messageRequestKey = new
> StringBuilder().append(senderId).append(":").append(recipientId).toString();
>     final DeferredResult<List<Message>> deferredResult = new
> DeferredResult<List<Message>>(null, Collections.emptyList());
>     messageRequests.put(messageRequestKey, deferredResult);
>
>     deferredResult.onCompletion(new Runnable() {
>        @Override
>        public void run() {
>           messageRequests.remove(messageRequestKey);
>        }
>     });
>
>     List<Message> unReadMessages =
> messageService.findUnreadMessages(senderId, recipientId);
>     if (!unReadMessages.isEmpty()) {
>        deferredResult.setResult(unReadMessages);
>     }
>     return deferredResult;
>   }
>
> This method is polled continuously by an ajax call and it
> systematically *causes
> Tomcat to crash upon the 9th method invocation*. Note that Tomcat crashes
> without any error message.

Can you define "crash" a little better? Is the Tomcat process still running? If so, is it answering any requests? If so, what happens if you send a request to this resource? Do you get a 4xx / 5xx error? Does it hang?

Also, what does your <Connector/> look like?

Dan

>
> *I would be very grateful if someone could help me determine the reason why
> this code exhibits this behavior, perhaps by giving me tips on how to debug
> the app/tomcat.*
>
> Regards,
>
> Julien.



Attachment: users_240640.eml (zipped)
> From: Daniel Mikusa [mailto:dmikusa@(protected)]
> Subject: Re: My use of Spring MVC's DeferredResult class causes Tomcat 7.0.35 to crash silently

> Can you define "crash" a little better? Is the Tomcat process still
> running? If so, is it answering any requests? If so, what happens
> if you send a request to this resource? Do you get a 4xx / 5xx error?
> Does it hang?

> Also, what does your <Connector/> look like?

And provide the bare minimum of environmental information:

  exact JVM version
  platform type and version
  using APR or not

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.



Attachment: users_240641.eml (zipped)
I have built an executable Tomcat JAR file. It has all of the Tomcat classes and dependencies zipped into one big JAR. Inside that JAR is also a WAR file, the native DLL, and logging.properties. My com.ul.io.Bootstrap class creates an .extract directory in the CWD, extracts the native DLL, WAR file and logging.properties, configures Tomcat logging, configures a Tomcat class instance, adds the WAR file is a web app, starts the Tomcat class instance, and waits for it.

If I run this JAR like this:

>java -jar PeripheralProxy-1.0.0.SNAPSHOT.jar

Everything works fine. It starts up, I can go to the application, no errors in the logs ... everything is perfect. The output from stdout is below if you're interested. Now, I take the same JAR file and sign it with the jar signer. To make sure nothing got messed up, I run the signed JAR file:

>java -jar PeripheralProxy-1.0.0.SNAPSHOT-signed.jar

This worked to. Exact same stdout output, application works fine. Perfect! Next I created a JNLP file with, among other things, <security> set to <all-permissions />. I open the JNLP file in my browser. It accepts the certificate and starts the JAR file. First problem is logging doesn't work. Not sure why. I had to enable the Java console in Java Control Panel to see what was going on.

1) It created the .extract directory, so the first step worked.
2) It extracted the WAR file, native DLL and logging.properties without a problem, so that worked, too.
3) It could not deploy the application. At this point it began getting class loading errors.

The output from the Java console is also below. Anyone have a clue what went wrong? Obviously the classes ARE in the JAR file, otherwise it wouldn't work from the command line.

STDOUT CONTENTS: Successful run from command line
--------------------------------------------------
C:\Users\Nicholas\Desktop\PeripheralProxy\TomcatRunner\target>java -jar PeripheralProxy-1.0.0.SNAPSHOT.jar
jar:file:/C:/Users/Nicholas/Desktop/PeripheralProxy/TomcatRunner/target/PeripheralProxy-1.0.0.SNAPSHOT.jar!/PeripheralProxy.war
Mar 21, 2013 4:22:36 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
Mar 21, 2013 4:22:36 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Mar 21, 2013 4:22:36 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
Mar 21, 2013 4:22:37 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8973"]
Mar 21, 2013 4:22:37 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Mar 21, 2013 4:22:37 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.0-dev
Mar 21, 2013 4:22:37 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Mar 21, 2013 4:22:38 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8973"]

CONSOLE CONTENTS: Failed run from JNLP
--------------------------------------------------
Java Web Start 11.0.2.79
Using JRE version 1.8.0-ea-b79 Java HotSpot(TM) 64-Bit Server VM
User home directory = C:\Users\Nicholas
----------------------------------------------------
c:  clear console window
f:  finalize objects on finalization queue
g:  garbage collect
h:  display this help message
m:  print memory usage
o:  trigger logging
p:  reload proxy configuration
q:  hide console
r:  reload policy configuration
s:  dump system and deployment properties
t:  dump thread list
v:  dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
 Match: beginTraversal
Match: digest selected JREDesc: JREDesc[version 1.8+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0:
  platform is: 1.8
  product is: 1.8.0-ea
  location is: http://java.sun.com/products/autodl/j2se
  path is: C:\Program Files\Java\jre8\bin\javaw.exe
  args is:
  native platform is: Windows, amd64 [ x86_64, 64bit ]
  JavaFX runtime is: JavaFX 8.0.0 found at C:\Program Files\Java\jre8\
  enabled is: true
  registered is: true
  system is: true

 Match: ignoring maxHeap: -1
 Match: ignoring InitHeap: -1
 Match: digesting vmargs: null
 Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
 Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
 Match: digest LaunchDesc: http://ohmqa.purehq.com/peripheral-proxy.jnlp
 Match: digest properties: []
 Match: JVM args: [JVMParameters: isSecure: true, args: ]
 Match: endTraversal ..
 Match: JVM args final:
 Match: Running JREInfo Version   match: 1.8.0.ea == 1.8.0.ea
  Match: Running JVM args match: have:<> satisfy want:<>
--- calling askUSer with ainfo: Appinfo:
type = 1
title = Launch Peripheral Proxy with Web Start
vendor = UL, LLC
from = http://ohmqa.purehq.com/peripheral-proxy.jnlp
security = 2
lapURL = http://ohmqa.purehq.com/peripheral-proxy.jnlp

jar:http://ohmqa.purehq.com/PeripheralProxy-1.0.0.SNAPSHOT-signed.jar!/PeripheralProxy.war
Handler error
java.lang.ClassNotFoundException: org.apache.juli.FileHandler
 at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass (URLClassLoader.java:353)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:356)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:521)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:464)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:288)
 at java.util.logging.LogManager$2.run(LogManager.java:282)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.readPrimordialConfiguration (LogManager.java:280)
 at java.util.logging.LogManager.getLogManager (LogManager.java:263)
 at java.util.logging.Logger.<init>(Logger.java:280)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1193)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1190)
 at java.util.logging.LogManager$1.run(LogManager.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.<clinit>(LogManager.java:172)
 at java.util.logging.Logger.getLogger (Logger.java:358)
 at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:68)
 at org.apache.juli.logging.DirectJDKLog.getInstance (DirectJDKLog.java:188)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:99)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:114)
 at org.apache.juli.logging.LogFactory.getLog (LogFactory.java:165)
 at org.apache.catalina.util.LifecycleBase.<clinit>(LifecycleBase.java:37)
 at org.apache.catalina.startup.Tomcat.getHost (Tomcat.java:426)
 at org.apache.catalina.startup.Tomcat.addWebapp (Tomcat.java:192)
 at com.ul.io.Bootstrap.run(Bootstrap.java:68)
 at com.ul.io.Bootstrap.main(Bootstrap.java:200)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:487)
 at com.sun.javaws.Launcher.executeApplication(Unknown Source)
 at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
 at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
 at com.sun.javaws.Launcher.run(Unknown Source)
 at java.lang.Thread.run (Thread.java:722)
Handler error
java.lang.ClassNotFoundException: org.apache.juli.FileHandler
 at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass (URLClassLoader.java:353)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:356)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:521)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:464)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:288)
 at java.util.logging.LogManager$2.run(LogManager.java:282)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.readPrimordialConfiguration (LogManager.java:280)
 at java.util.logging.LogManager.getLogManager (LogManager.java:263)
 at java.util.logging.Logger.<init>(Logger.java:280)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1193)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1190)
 at java.util.logging.LogManager$1.run(LogManager.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.<clinit>(LogManager.java:172)
 at java.util.logging.Logger.getLogger (Logger.java:358)
 at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:68)
 at org.apache.juli.logging.DirectJDKLog.getInstance (DirectJDKLog.java:188)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:99)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:114)
 at org.apache.juli.logging.LogFactory.getLog (LogFactory.java:165)
 at org.apache.catalina.util.LifecycleBase.<clinit>(LifecycleBase.java:37)
 at org.apache.catalina.startup.Tomcat.getHost (Tomcat.java:426)
 at org.apache.catalina.startup.Tomcat.addWebapp (Tomcat.java:192)
 at com.ul.io.Bootstrap.run(Bootstrap.java:68)
 at com.ul.io.Bootstrap.main(Bootstrap.java:200)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:487)
 at com.sun.javaws.Launcher.executeApplication(Unknown Source)
 at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
 at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
 at com.sun.javaws.Launcher.run(Unknown Source)
 at java.lang.Thread.run (Thread.java:722)
Handler error
java.lang.ClassNotFoundException: org.apache.juli.FileHandler
 at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass (URLClassLoader.java:353)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:356)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:521)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:464)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:288)
 at java.util.logging.LogManager$2.run(LogManager.java:282)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.readPrimordialConfiguration (LogManager.java:280)
 at java.util.logging.LogManager.getLogManager (LogManager.java:263)
 at java.util.logging.Logger.<init>(Logger.java:280)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1193)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1190)
 at java.util.logging.LogManager$1.run(LogManager.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.<clinit>(LogManager.java:172)
 at java.util.logging.Logger.getLogger (Logger.java:358)
 at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:68)
 at org.apache.juli.logging.DirectJDKLog.getInstance (DirectJDKLog.java:188)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:99)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:114)
 at org.apache.juli.logging.LogFactory.getLog (LogFactory.java:165)
 at org.apache.catalina.util.LifecycleBase.<clinit>(LifecycleBase.java:37)
 at org.apache.catalina.startup.Tomcat.getHost (Tomcat.java:426)
 at org.apache.catalina.startup.Tomcat.addWebapp (Tomcat.java:192)
 at com.ul.io.Bootstrap.run(Bootstrap.java:68)
 at com.ul.io.Bootstrap.main(Bootstrap.java:200)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:487)
 at com.sun.javaws.Launcher.executeApplication(Unknown Source)
 at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
 at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
 at com.sun.javaws.Launcher.run(Unknown Source)
 at java.lang.Thread.run (Thread.java:722)
Handler error
java.lang.ClassNotFoundException: org.apache.juli.FileHandler
 at java.net.URLClassLoader$1.run(URLClassLoader.java:365)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass (URLClassLoader.java:353)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:423)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass (ClassLoader.java:356)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:521)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:464)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:377)
 at org.apache.juli.ClassLoaderLogManager$2.run(ClassLoaderLogManager.java:373)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.juli.ClassLoaderLogManager.getClassLoaderInfo (ClassLoaderLogManager.java:373)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:452)
 at org.apache.juli.ClassLoaderLogManager.readConfiguration (ClassLoaderLogManager.java:288)
 at java.util.logging.LogManager$2.run(LogManager.java:282)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.readPrimordialConfiguration (LogManager.java:280)
 at java.util.logging.LogManager.getLogManager (LogManager.java:263)
 at java.util.logging.Logger.<init>(Logger.java:280)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1193)
 at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1190)
 at java.util.logging.LogManager$1.run(LogManager.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.<clinit>(LogManager.java:172)
 at java.util.logging.Logger.getLogger (Logger.java:358)
 at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:68)
 at org.apache.juli.logging.DirectJDKLog.getInstance (DirectJDKLog.java:188)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:99)
 at org.apache.juli.logging.LogFactory.getInstance (LogFactory.java:114)
 at org.apache.juli.logging.LogFactory.getLog (LogFactory.java:165)
 at org.apache.catalina.util.LifecycleBase.<clinit>(LifecycleBase.java:37)
 at org.apache.catalina.startup.Tomcat.getHost (Tomcat.java:426)
 at org.apache.catalina.startup.Tomcat.addWebapp (Tomcat.java:192)
 at com.ul.io.Bootstrap.run(Bootstrap.java:68)
 at com.ul.io.Bootstrap.main(Bootstrap.java:200)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke (Method.java:487)
 at com.sun.javaws.Launcher.executeApplication(Unknown Source)
 at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
 at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
 at com.sun.javaws.Launcher.run(Unknown Source)
 at java.lang.Thread.run (Thread.java:722)
JNLPClassLoader: Finding library tcnative-1.dll
Mar 21, 2013 4:07:43 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
Mar 21, 2013 4:07:43 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Mar 21, 2013 4:07:44 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
Mar 21, 2013 4:07:44 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8973"]
Mar 21, 2013 4:07:45 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Mar 21, 2013 4:07:45 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.0-dev
Mar 21, 2013 4:07:45 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Mar 21, 2013 4:07:45 PM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.deploy.SessionConfig
 at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1465)
 at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1310)
 at org.apache.tomcat.util.digester.ObjectCreateRule.begin (ObjectCreateRule.java:116)
 at org.apache.tomcat.util.digester.Digester.startElement (Digester.java:1171)
 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:506)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:1328)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2722)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:607)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:492)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:835)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:123)
 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1210)
 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
 at org.apache.tomcat.util.digester.Digester.parse (Digester.java:1432)
 at org.apache.catalina.startup.ContextConfig.parseWebXml (ContextConfig.java:1756)
 at org.apache.catalina.startup.ContextConfig.webConfig (ContextConfig.java:1156)
 at org.apache.catalina.startup.ContextConfig.configureStart (ContextConfig.java:814)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfig.java:321)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
 at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5100)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1390)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1380)
 at java.util.concurrent.FutureTask.run (FutureTask.java:262)
 at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run (Thread.java:722)

Mar 21, 2013 4:07:45 PM org.apache.catalina.startup.ContextConfig parseWebXml
SEVERE: Parse error in application web.xml file at jar:file:/C:/Users/Nicholas/Desktop/.extract/PeripheralProxy.war!/WEB-INF/web.xml
org.xml.sax.SAXParseException; systemId: jar:file:/C:/Users/Nicholas/Desktop/.extract/PeripheralProxy.war!/WEB-INF/web.xml; lineNumber: 19; columnNumber: 21; Error at (19, 21) : org.apache.catalina.deploy.SessionConfig
 at org.apache.tomcat.util.digester.Digester.createSAXException (Digester.java:1922)
 at org.apache.tomcat.util.digester.Digester.createSAXException (Digester.java:1954)
 at org.apache.tomcat.util.digester.Digester.startElement (Digester.java:1174)
 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement (AbstractSAXParser.java:506)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement (XMLDocumentFragmentScannerImpl.java:1328)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2722)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next (XMLDocumentScannerImpl.java:607)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument (XMLDocumentFragmentScannerImpl.java:492)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:835)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse (XML11Configuration.java:764)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (XMLParser.java:123)
 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1210)
 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
 at org.apache.tomcat.util.digester.Digester.parse (Digester.java:1432)
 at org.apache.catalina.startup.ContextConfig.parseWebXml (ContextConfig.java:1756)
 at org.apache.catalina.startup.ContextConfig.webConfig (ContextConfig.java:1156)
 at org.apache.catalina.startup.ContextConfig.configureStart (ContextConfig.java:814)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfig.java:321)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
 at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5100)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1390)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1380)
 at java.util.concurrent.FutureTask.run (FutureTask.java:262)
 at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run (Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.deploy.SessionConfig
 at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1465)
 at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1310)
 at org.apache.tomcat.util.digester.ObjectCreateRule.begin (ObjectCreateRule.java:116)
 at org.apache.tomcat.util.digester.Digester.startElement (Digester.java:1171)
 ... 25 more

Mar 21, 2013 4:07:45 PM org.apache.catalina.startup.ContextConfig parseWebXml
SEVERE: Occurred at line 19 column 21
Mar 21, 2013 4:07:45 PM org.apache.catalina.startup.ContextConfig configureStart
SEVERE: Marking this application unavailable due to previous error(s)
Mar 21, 2013 4:07:45 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Mar 21, 2013 4:07:45 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Mar 21, 2013 4:07:45 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
WARNING: JDBC driver de-registration failed for web application []
java.lang.NullPointerException
 at org.apache.catalina.loader.WebappClassLoader.clearReferencesJdbc (WebappClassLoader.java:1788)
 at org.apache.catalina.loader.WebappClassLoader.clearReferences (WebappClassLoader.java:1724)
 at org.apache.catalina.loader.WebappClassLoader.stop (WebappClassLoader.java:1640)
 at org.apache.catalina.loader.WebappLoader.stopInternal (WebappLoader.java:491)
 at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
 at org.apache.catalina.core.StandardContext.stopInternal (StandardContext.java:5456)
 at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1390)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1380)
 at java.util.concurrent.FutureTask.run (FutureTask.java:262)
 at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run (Thread.java:722)

Mar 21, 2013 4:07:45 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8973"]


©2008 junlu.com - Jax Systems, LLC, U.S.A.