RE: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Yansheng Lin
What's the console output?  how far did you get before you encounter that
specific error?  Sounds to me like a mis-configuration of the context path
problem.  You sure you have the right deploy descriptor in your war file?


-Original Message-
From: Timothy Stone [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 03, 2004 2:11 PM
To: Tomcat Users List
Subject: Re: FAIL - Application at context path /[context] could not be started
???


Timothy Stone wrote:

 List,
 
 I did an archive search. Nothing meaningful returned, so I'm posting 
 what must be a regular question.
 
 I can get a development tree to install via the Manager interface, but I 
 can't get it started. This seems to be a UNIX problem at the moment.
 
 For example on Windoze:
 
 Install directory or WAR file located on server
 Context Path (optional):  /foobar
 XML Configuration file URL:
 WAR or Directory URL: file:c:/path/to/foobar/dev
 
 will load and start.
 
 The very same application on Linux/Mac OS X:
 
 Install directory or WAR file located on server
 Context Path (optional): /foobar
 XML Configuration file URL:
 WAR or Directory URL: file:/home/user/path/to/foobar/dev
 
 will load, but consistently fails to start.
 
 The error, not explained in the Manager documentation anywhere BTW :
 
 FAIL - Application at context path /foobar could not be started
 
 What I can't figure out is this very application will work with the 
 catalina.ant tasks! Windoze or Unix. So the problem seems to be with the 
 HTML interface.
 
 So, what's the trick? Anyone? Oh, I did 777 the dev tree. Didn't help. :(
 
 Many thanks,
 Tim

No one can field this? Maybe I'm too close. Nothing is working now. Not 
the ant task not the manager interface. Nothing.

The answer is not obvious to me. Nothing seems to be logging anywhere 
for me to debug it.

Many thanks again,
Tim



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Shapira, Yoav

Hi,

 The error, not explained in the Manager documentation anywhere BTW :

 FAIL - Application at context path /foobar could not be started

Errors aren't typically explained in the documentation, as we rely on
stack traces and other information to diagnose and correct problems.
Feel free to inspect the relevant code, document the possible error
messages, and submit a documentation enhancement patch.

The answer is not obvious to me. Nothing seems to be logging anywhere
for me to debug it.

A few general tips for cases like this:

- Add debug=99 to the Engine and Host elements of your server.xml
file.  This will output more information.

- Try to deploy the WAR by simply copying it to the webapps directory
(assuming autoDeploy is on for your Host).  Do any errors occur?  If so,
fix these before you try ant/manager deployment.

- Comment out/remove all unneeded webapps and elements from server.xml,
making your deployment as simple as possible.

- If you're still having trouble, start stripping things that execute on
startup from your web.xml: filters that do stuff on init(), servlets
that have load-on-startup enabled, listeners, etc.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Timothy Stone
Yansheng Lin wrote:

What's the console output?  how far did you get before you encounter that
specific error?  Sounds to me like a mis-configuration of the context path
problem.  You sure you have the right deploy descriptor in your war file?
well, it some sort of directory problem. damn if I can figure it out.

...
2004-03-03 16:26:21 HTMLManager: list: Listing contexts for virtual host 
'localhost'
2004-03-03 16:30:01 HTMLManager: install: Installing web application at 
'/foo' from 'file:///home/tstone/jwerk/blojsom/war'
2004-03-03 16:30:01 StandardHost[localhost]: Installing web application 
at context path /foo from URL file:/home/tstone/jwerk/blojsom/war
2004-03-03 16:30:01 StandardContext[/foo]: Resources start failed:
java.lang.IllegalArgumentException: Document base 
/home/tstone/jwerk/blojsom/war
 does not exist or is not a readable directory
at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:193)
...

*The very same app runs from /tmp*

Any ideas... as I said, I 777 the dev tree, no luck.

Many thanks,
Tim

-Original Message-
From: Timothy Stone [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 03, 2004 2:11 PM
To: Tomcat Users List
Subject: Re: FAIL - Application at context path /[context] could not be started
???

Timothy Stone wrote:


List,

I did an archive search. Nothing meaningful returned, so I'm posting 
what must be a regular question.

I can get a development tree to install via the Manager interface, but I 
can't get it started. This seems to be a UNIX problem at the moment.

For example on Windoze:

Install directory or WAR file located on server
Context Path (optional):  /foobar
XML Configuration file URL:
WAR or Directory URL: file:c:/path/to/foobar/dev

will load and start.

The very same application on Linux/Mac OS X:

Install directory or WAR file located on server
Context Path (optional): /foobar
XML Configuration file URL:
WAR or Directory URL: file:/home/user/path/to/foobar/dev

will load, but consistently fails to start.

The error, not explained in the Manager documentation anywhere BTW :

FAIL - Application at context path /foobar could not be started

What I can't figure out is this very application will work with the 
catalina.ant tasks! Windoze or Unix. So the problem seems to be with the 
HTML interface.

So, what's the trick? Anyone? Oh, I did 777 the dev tree. Didn't help. :(

Many thanks,
Tim


No one can field this? Maybe I'm too close. Nothing is working now. Not 
the ant task not the manager interface. Nothing.

The answer is not obvious to me. Nothing seems to be logging anywhere 
for me to debug it.

Many thanks again,
Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[CLOSED] Re: FAIL - Application at context path /[context] could not be started ???

2004-03-03 Thread Timothy Stone
Timothy Stone wrote:

Yansheng Lin wrote:

What's the console output?  how far did you get before you encounter that
specific error?  Sounds to me like a mis-configuration of the context 
path
problem.  You sure you have the right deploy descriptor in your war file?

well, it some sort of directory problem. damn if I can figure it out.

...
2004-03-03 16:26:21 HTMLManager: list: Listing contexts for virtual host 
'localhost'
2004-03-03 16:30:01 HTMLManager: install: Installing web application at 
'/foo' from 'file:///home/tstone/jwerk/blojsom/war'
2004-03-03 16:30:01 StandardHost[localhost]: Installing web application 
at context path /foo from URL file:/home/tstone/jwerk/blojsom/war
2004-03-03 16:30:01 StandardContext[/foo]: Resources start failed:
java.lang.IllegalArgumentException: Document base 
/home/tstone/jwerk/blojsom/war
 does not exist or is not a readable directory
at 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.
java:193)
...

*The very same app runs from /tmp*

Any ideas... as I said, I 777 the dev tree, no luck.
My home directory is correctly set by default to 700. Meaning /home is 
neither world readable or executable. Opps!

Setting /home/tstone to 755 fixed the problem. Doh!

But that is not a recommended solution. :D Moving the dev tree somewhere 
safer for 755.

Many thanks again! Thanks for the patience as well.

Tim


Many thanks,
Tim

-Original Message-
From: Timothy Stone [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
March 03, 2004 2:11 PM
To: Tomcat Users List
Subject: Re: FAIL - Application at context path /[context] could not 
be started
???

Timothy Stone wrote:


List,

I did an archive search. Nothing meaningful returned, so I'm posting 
what must be a regular question.

I can get a development tree to install via the Manager interface, 
but I can't get it started. This seems to be a UNIX problem at the 
moment.

For example on Windoze:

Install directory or WAR file located on server
Context Path (optional):  /foobar
XML Configuration file URL:WAR or Directory URL: 
file:c:/path/to/foobar/dev

will load and start.

The very same application on Linux/Mac OS X:

Install directory or WAR file located on server
Context Path (optional): /foobarXML Configuration file URL:
WAR or Directory URL: file:/home/user/path/to/foobar/dev

will load, but consistently fails to start.

The error, not explained in the Manager documentation anywhere BTW :

FAIL - Application at context path /foobar could not be started

What I can't figure out is this very application will work with the 
catalina.ant tasks! Windoze or Unix. So the problem seems to be with 
the HTML interface.

So, what's the trick? Anyone? Oh, I did 777 the dev tree. Didn't 
help. :(

Many thanks,
Tim


No one can field this? Maybe I'm too close. Nothing is working now. 
Not the ant task not the manager interface. Nothing.

The answer is not obvious to me. Nothing seems to be logging anywhere 
for me to debug it.

Many thanks again,
Tim




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]