unable to start tomcat 5.5.29 on mac 10.6.3

2010-06-12 Thread Guan Yu
I'm using Mac OS X 10.6.3. I downloaded and installed the .gz of Tomcat 5.5.29 
to $HOME/tomcat-5.5.29/. when i tried to start tomcat by executing startup.sh, 
i saw the following output on screen. But the server didn't start up and there 
was error in catalina.out. Please help me.

bin guanyu$ ./startup.sh 
Using CATALINA_BASE:   /Users/guanyu/tomcat-5.5.29
Using CATALINA_HOME:   /Users/guanyu/tomcat-5.5.29
Using CATALINA_TMPDIR: /Users/guanyu/tomcat-5.5.29/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
Using CLASSPATH:   /Users/guanyu/tomcat-5.5.29/bin/bootstrap.jar
===
Error in catalina.out
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ISAPI log question regarding authentication

2010-06-12 Thread André Warnier

Rainer Jung wrote:

On 11.06.2010 23:21, Savoy, Melinda wrote:
I am working in my local Eclipse development environment on a Windows 
XP box.  (As stated in a previous post, I was able to get 
authentication working in the Windows 2003 environment after talking 
to a MS IIS engineer)


I just got off of a phone call with another IIS engineer at Microsoft 
regarding the authentication issue again that I am getting Windows XP 
and we spotted something interesting in the ISAPI log and wanted to 
run it by you guys.


I've now setup my IIS and browser in Windows XP to FORCE NTLM 
authentication and I am getting in the request, per the ISAPI log, the 
credentials that it passes from IIS to Tomcat.


What is interesting is that it would appear that from the ISAPI log 
that the AJP is returning a 401 code to the browser and therefore 
executing a Windows Login prompt. Please see bolded/red type below.


Below is a copy of the entries in my ISAPI log and wanted to get any 
input on WHY it would appear that the redirector is returning a 401 
status back to my IE or Firefox browser(?):


Because it receives a 401 response form your web application in Tomcat 
and forwards the response as is to the client. So why is your web 
application sending a 401?


By application, understand the complete webapp stack, including any 
servlet filters which may be configured there.


A 401 is not an error.  It is the normal response of the server, in the 
NTLM protocol, when trying to access a protected resource.
My guess in this case and at this point, is that it is the legacy 
filter (jCIFS-based) which sits on top of the webapp, and which does 
not check if the request is already authenticated, but returns a 401 
right away.  Is that a possibility ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: ISAPI log question regarding authentication

2010-06-12 Thread André Warnier

André Warnier wrote:

Rainer Jung wrote:

On 11.06.2010 23:21, Savoy, Melinda wrote:
I am working in my local Eclipse development environment on a Windows 
XP box.  (As stated in a previous post, I was able to get 
authentication working in the Windows 2003 environment after talking 
to a MS IIS engineer)


I just got off of a phone call with another IIS engineer at Microsoft 
regarding the authentication issue again that I am getting Windows XP 
and we spotted something interesting in the ISAPI log and wanted to 
run it by you guys.


I've now setup my IIS and browser in Windows XP to FORCE NTLM 
authentication and I am getting in the request, per the ISAPI log, 
the credentials that it passes from IIS to Tomcat.


What is interesting is that it would appear that from the ISAPI log 
that the AJP is returning a 401 code to the browser and therefore 
executing a Windows Login prompt. Please see bolded/red type below.




This kind of graphic highlighting does not usually work on mailing 
lists, which tend to be pure text.  If you want to highlight 
something, it is better to insert some blank lines and a comment.


Below is a copy of the entries in my ISAPI log and wanted to get any 
input on WHY it would appear that the redirector is returning a 401 
status back to my IE or Firefox browser(?):


Because it receives a 401 response form your web application in Tomcat 
and forwards the response as is to the client. So why is your web 
application sending a 401?


By application, understand the complete webapp stack, including any 
servlet filters which may be configured there.


A 401 is not an error.  It is the normal response of the server, in the 
NTLM protocol, when trying to access a protected resource.
My guess in this case and at this point, is that it is the legacy 
filter (jCIFS-based) which sits on top of the webapp, and which does 
not check if the request is already authenticated, but returns a 401 
right away.  Is that a possibility ?


As an addendum, here is a link to a document which explains the NTLM 
authentication handshake :

http://www.innovation.ch/personal/ronald/ntlm.html
The NTLM Handshake section at the beginning summarises what must 
happen.  As you can see, there are 2 consecutive server responses 
containing a 401 HTTP status (not an error per se, they are a normal 
part of the protocol).


However, if I follow correctly, in your case, this handshake has already 
taken place once before, between the browser and IIS.  Then IIS is 
satisfied, and forwards the request to Tomcat, via mod_jk, including a 
user-id.


If there is a further NTLM authentication layer at the Tomcat level, it 
should recognise that the request is already authenticated, and not 
start yet another handshake.  But apparently it doesn't, and does start 
another NTLM handshake sequence (with the first 401 response of the 
sequence).
That probably confuses the browser, because it has already gone through 
the sequence, and is already sending an Authorization: header with its 
request. And that is probably why the browser now pops up its Basic 
authentication login dialog.
Basically what the browser is thinking is : oh, my NTLM authentication 
doesn't work ! Let's try a Basic authentication then.


Just another note : mod_jk (or the isapi_redirector) knows *nothing* of 
NTLM, nor of any authentication protocols.  It just passes information 
back and forth between IIS (or Apache) and Tomcat.  It does not add or 
subtract any HTTP headers, and does not modify the request nor the 
response content.
The only thing it does in terms of authentication, is that if the 
webserver has a user-id for a request, it forwards this user-id from the 
webserver to Tomcat.





-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: unable to start tomcat 5.5.29 on mac 10.6.3

2010-06-12 Thread Pid
On 12/06/2010 08:11, Guan Yu wrote:
 I'm using Mac OS X 10.6.3. I downloaded and installed the .gz of Tomcat 
 5.5.29 to $HOME/tomcat-5.5.29/. when i tried to start tomcat by executing 
 startup.sh, i saw the following output on screen. But the server didn't start 
 up and there was error in catalina.out. Please help me.

 bin guanyu$ ./startup.sh 
 Using CATALINA_BASE:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_HOME:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_TMPDIR: /Users/guanyu/tomcat-5.5.29/temp
 Using JRE_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
 Using CLASSPATH:   /Users/guanyu/tomcat-5.5.29/bin/bootstrap.jar
 ===
 Error in catalina.out
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)

Have you manually set the classpath or any other environment variables?


p


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


Re: unable to start tomcat 5.5.29 on mac 10.6.3

2010-06-12 Thread Guan Yu
no, i didn't. it's a fresh OS installation. i only installed Eclipse before 
Tomcat. Eclipse installation was merely extraction from compressed file.

gy

On 12-Jun-2010, at 8:32 PM, Pid wrote:

 On 12/06/2010 08:11, Guan Yu wrote:
 I'm using Mac OS X 10.6.3. I downloaded and installed the .gz of Tomcat 
 5.5.29 to $HOME/tomcat-5.5.29/. when i tried to start tomcat by executing 
 startup.sh, i saw the following output on screen. But the server didn't 
 start up and there was error in catalina.out. Please help me.
 
 bin guanyu$ ./startup.sh 
 Using CATALINA_BASE:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_HOME:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_TMPDIR: /Users/guanyu/tomcat-5.5.29/temp
 Using JRE_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
 Using CLASSPATH:   /Users/guanyu/tomcat-5.5.29/bin/bootstrap.jar
 ===
 Error in catalina.out
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
 
 Have you manually set the classpath or any other environment variables?
 
 
 p
 
 
 -
 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: unable to start tomcat 5.5.29 on mac 10.6.3

2010-06-12 Thread Pid
On 12/06/2010 15:06, Guan Yu wrote:
 no, i didn't. it's a fresh OS installation. i only installed Eclipse before 
 Tomcat. Eclipse installation was merely extraction from compressed file.

How did you unzip it?  Manually or by double-clicking the file with a mouse?


p


 On 12-Jun-2010, at 8:32 PM, Pid wrote:
 
 On 12/06/2010 08:11, Guan Yu wrote:
 I'm using Mac OS X 10.6.3. I downloaded and installed the .gz of Tomcat 
 5.5.29 to $HOME/tomcat-5.5.29/. when i tried to start tomcat by executing 
 startup.sh, i saw the following output on screen. But the server didn't 
 start up and there was error in catalina.out. Please help me.

 bin guanyu$ ./startup.sh 
 Using CATALINA_BASE:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_HOME:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_TMPDIR: /Users/guanyu/tomcat-5.5.29/temp
 Using JRE_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
 Using CLASSPATH:   /Users/guanyu/tomcat-5.5.29/bin/bootstrap.jar
 ===
 Error in catalina.out
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)

 Have you manually set the classpath or any other environment variables?


 p


 -
 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
 




signature.asc
Description: OpenPGP digital signature


Some_General_Question_About_Tomcat_instead of_GLassFish

2010-06-12 Thread jjjjj jjjjjj




Dear TomCat Developer,Hello
At the first I must say congratulation to you because your product is very 
good,but I have some question

Would you please tell me that we can use tomcat instead of GlassFish or 
no?(Yes/No Why?)
Which of  JSF or Struts is more compatible with tomcat?
Please say to me something about maven,Is this a project management table or no 
,What is this ?

Thank you for your reply 
/* If I send it to wrong mail_ID, Please Write Back the true one

yours sincerely
(I am a young software developer from Asia and English is not my first language 
and My name is Pouya)


  

Re: How to configure a web app

2010-06-12 Thread Michael Ludwig
André Warnier schrieb am 10.06.2010 um 21:52 (+0200):

 Assuming that some rogue application or filter *requires*
 site-specific parameters in web.xml, normally like so :
 
 ...
init-param
 param-nameparameter1/param-name
 param-valuevalue1/param-value
 /init-param
init-param
 param-nameparameter2/param-name
 param-valuevalue2/param-value
 /init-param
 
  etc..
 
 Does there exist *any* way to put the actual values value1,
 value2, etc.. in some place *outside* the web.xml file, and
 *outside* the war that would be created for this application,
 and still allow the application, on startup, to read the values
 of these parameters from web.xml ?

XML entity references? You can define an external general parsed entity
(EGPE) and then reference it. Doesn't have to be well-formed; it is
enough for it to be well-balanced, just like the two init-param
nodes you've shown above.

!ENTITY cust-init-params
  SYSTEM /home/cust123/web.xml.d/params.xml 

And then reference it using cust-init-params;.

It requires the parser used by Tomcat to expand entities. Don't know if
it is appropriately configured by default.
-- 
Michael Ludwig

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: unable to start tomcat 5.5.29 on mac 10.6.3

2010-06-12 Thread Guan Yu
double click it in Finder. 

On 12-Jun-2010, at 10:23 PM, Pid wrote:

 On 12/06/2010 15:06, Guan Yu wrote:
 no, i didn't. it's a fresh OS installation. i only installed Eclipse before 
 Tomcat. Eclipse installation was merely extraction from compressed file.
 
 How did you unzip it?  Manually or by double-clicking the file with a mouse?
 
 
 p
 
 
 On 12-Jun-2010, at 8:32 PM, Pid wrote:
 
 On 12/06/2010 08:11, Guan Yu wrote:
 I'm using Mac OS X 10.6.3. I downloaded and installed the .gz of Tomcat 
 5.5.29 to $HOME/tomcat-5.5.29/. when i tried to start tomcat by executing 
 startup.sh, i saw the following output on screen. But the server didn't 
 start up and there was error in catalina.out. Please help me.
 
 bin guanyu$ ./startup.sh 
 Using CATALINA_BASE:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_HOME:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_TMPDIR: /Users/guanyu/tomcat-5.5.29/temp
 Using JRE_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
 Using CLASSPATH:   /Users/guanyu/tomcat-5.5.29/bin/bootstrap.jar
 ===
 Error in catalina.out
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
 
 Have you manually set the classpath or any other environment variables?
 
 
 p
 
 
 -
 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: unable to start tomcat 5.5.29 on mac 10.6.3

2010-06-12 Thread Guan Yu
i was stupid. i extracted the admin app then copied the folders to tomcat home 
in Finder. Mac replaces everything in the folders. files in existing folders 
were gone. thanks for your help.

On 12-Jun-2010, at 10:23 PM, Pid wrote:

 On 12/06/2010 15:06, Guan Yu wrote:
 no, i didn't. it's a fresh OS installation. i only installed Eclipse before 
 Tomcat. Eclipse installation was merely extraction from compressed file.
 
 How did you unzip it?  Manually or by double-clicking the file with a mouse?
 
 
 p
 
 
 On 12-Jun-2010, at 8:32 PM, Pid wrote:
 
 On 12/06/2010 08:11, Guan Yu wrote:
 I'm using Mac OS X 10.6.3. I downloaded and installed the .gz of Tomcat 
 5.5.29 to $HOME/tomcat-5.5.29/. when i tried to start tomcat by executing 
 startup.sh, i saw the following output on screen. But the server didn't 
 start up and there was error in catalina.out. Please help me.
 
 bin guanyu$ ./startup.sh 
 Using CATALINA_BASE:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_HOME:   /Users/guanyu/tomcat-5.5.29
 Using CATALINA_TMPDIR: /Users/guanyu/tomcat-5.5.29/temp
 Using JRE_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
 Using CLASSPATH:   /Users/guanyu/tomcat-5.5.29/bin/bootstrap.jar
 ===
 Error in catalina.out
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
 
 Have you manually set the classpath or any other environment variables?
 
 
 p
 
 
 -
 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