Re: help me

2002-06-12 Thread Tom Anderl

Also, you probably should not have c:\jdk1.3\bin in your classpath.  
Depending on which Virtual Machine or compiler you're using, you may need 
c:\jdk1.3\jre\lib\rt.jar to be in your classpath, but you should never 
need the bin directory in your classpath.

Tom

On Wed, 12 Jun 2002, kf platypus wrote:

 Your JAVA_HOME environment variable should be set to c:\jdk1.3 and not 
 c:\jdk1.3\bin and that should solve it.
 
 Regards!
 
 
 From: puneet sachar [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: help me Date: Wed, 12 Jun 2002 05:14:57 -0700 (PDT)
 
 siva,,,
 
 i 'm facing same probelm for 5 days and no one helped
 me...
 
 shankar is there u asked him
 he is there in developer form..he will definately help
 u''
 
 Puneet
 --- siva murugan [EMAIL PROTECTED] wrote:
   Sir/Madam,
  
Fine and expect the same from U and all.
  
Iam SivaMurugan from INDIA. Just minutes back i
   downloaded jakarta-tomcat-4.0-20020530.zip from
   http://jakarta.apache.org site.
  
I tried my first servlet file in the name of
   admin.java . I created the file and stored in the
   directory of
   c:\jakarta-tomcat-4.0\webapps\Root\WEB-INF . I
   compiled using javadoc and i got the admin.class
   file
   without any error, on my first attempt. To be frank
   i
   was really feeeling great , since its my first time
   downloading and running a program on an webserver.
   Before that i set the classpath. I am using windows
   2000 server. So i set the classpath in
  
 MyComputer/Properties/SystemProperties/Advanced/Environmet
   Variables/SystemVariables. Actually i set the
   classpath as
  
 c:\jakarta-tomcat-4.0\common\lib\servlet.jar;c:\jdk1.3\bin;
  
Now tried to run the Tomcatwebserver from the
   directory c:\jakarta-tomcat-4.0\bin\startup and
   unfortunately i couldn't do that. Its showing the
   following error.
  
The JAVA_HOME environment variable is not defined
This environment Variable is needed to run this
   program
Using CATALINA_BASE:  ..
Using CATALINA_HOME:  ..
Using CATALINA_TEMPDIR:  ..\temp
Using JAVA_HOME:
The System cannot find the file
   -Djava.endorsed.dirs=.
  
   So i tried to set the JAVA_HOME enviroment variable
   as
   c:\jdk1.3\bin; Then i tried again, now also iam
   getting the same error. What wrong? Please help me..
  
  
Iam using
 JAVA VERSION 1.3.01
 JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
   (BUILD1.3.01)
 JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
   MODE)
  
Waiting for a +ive and immediate mail from U
   Sir/Madam.
  
   Love,
   Siva
  
  
  
   __
   Do You Yahoo!?
   Yahoo! - Official partner of 2002 FIFA World Cup
   http://fifaworldcup.yahoo.com
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Accessing Manager app through URLConnection

2002-01-26 Thread Tom Anderl

Are you giving it a command?  e.g.

http://your.server/manager/list

From the log, it looks like you're not including the command (list in 
this case) So the manager sees an empty command string and doesn't 
recognize what it's supposed to do with it.

Catch you later,

Tom

On Sat, 26 Jan 2002, Donald Lee wrote:

 I setup mine and it authenticates then gives me,
 
 FAIL - Unknown command 
 
 I don't even know where to begin troubleshooting because I don't know what I 
 am supposed to be looking for.
 Localhost_log file has the following,
 
 2002-01-26 15:13:35 StandardWrapper[/manager:Manager]: Loading container 
 servlet Manager
 2002-01-26 15:13:35 Manager: init
 2002-01-26 15:13:35 Manager: init: Associated with Deployer 'localhost'
 
 localhost_access_log has
 192.168.0.1 - - [26/Jan/2002:15:13:33 -0500] GET /manager HTTP/1.1 401 618
 192.168.0.1 - dwlee1 [26/Jan/2002:15:13:35 -0500] GET /manager HTTP/1.1 
 200 40
 
 
 
 Original Message Follows
 From: Craig R. McClanahan [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Accessing Manager app through URLConnection
 Date: Sat, 26 Jan 2002 08:46:45 -0800 (PST)
 
 
 
 On Fri, 25 Jan 2002, Christian Cryder wrote:
 
   Date: Fri, 25 Jan 2002 23:31:28 -0700
   From: Christian Cryder [EMAIL PROTECTED]
   Reply-To: Tomcat Users List [EMAIL PROTECTED]
   To: Tomcat-User [EMAIL PROTECTED]
   Subject: Accessing Manager app through URLConnection
  
   Ok, how can I go about accessing the Manager app through a URL 
 connection?
   Its currently generating a 401 error code, and I know the reason is 
 because
   of the role stuff...how can I programatically assign a role? Or is there 
 a
   way I can pass the user/pwd info along with the url poarameters somehow? 
 I'd
   greatly appreciate some ideas on this...
  
 
 Hi Christian,
 
 You are indeed getting a 401 error because the manager webapp is protected
 by a security constraint using BASIC authentication.  If you run it from a
 browser, you get the usual pop-up dialog.
 
 To use automated connections, your client code is going to have to create
 an Authorization header that encodes the username and password, in the
 format required by RFC 2617, and include it with the request to bypass the
 401 dialog.  One source of code you could use to figure out what's
 necessary is in the HEAD branch of the Tomcat 4 repository -- in class
 org.apache.catalina.ant.AbstractCatalinaTask.  (As the name implies, this
 is the base class for a set of custom Ant tasks that interact with the
 Manager webpp, documented on the manager-howto.html page in the nightly
 builds of Tomcat 4.
 
   THanks,
   Christian
  
 
 Craig McClanahan
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 I am Microsoft of Borg. You will be assimilated.
 Resistance is futi . . .
 
 GENERAL PROTECTION FAULT IN MSBORG32.DLL
 --
 Donald Lee ([EMAIL PROTECTED])
 Associate Enterprise Engineer
 MCSE, Compaq ASE, ACT, A+, TCT, HP
 
 _
 Join the world’s largest e-mail service with MSN Hotmail. 
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]