RE: How to set up JAVA_OPTS while running tomcat as a service

2004-04-03 Thread Antoni Unkovich
Excellent! (the system tray Icon that is)
Just what I was looking for.
Thanks
Antoni 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Sunday, 4 April 2004 9:36 a.m.
To: [EMAIL PROTECTED]
Subject: Re: How to set up JAVA_OPTS while running tomcat as a service

Well, Tomcat 5 has the nice GUI to do most of this (right-click the Tomcat
sys-tray icon), as well as the 'service.bat' file that you can customize for
your settings.  There should never be a reason to edit the registry settings
directly.  However, for those people that don't want to heed the warning :),
the settings are located at:
 HKLM\Software\Apache Software Foundation\Tomcat Service
Manager\Tomcat5\Parameters.

Antoni Unkovich [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi
 I'm keen to try this with tomcat 5.0.19.
 Please can you supply a little more detail regarding the registry
settings?
 Thanks in advance
 Antoni



 -Original Message-
 From: Mandy Joss [mailto:[EMAIL PROTECTED]
 Sent: Saturday, 3 April 2004 9:57 a.m.
 To: [EMAIL PROTECTED]
 Subject: RE: How to set up JAVA_OPTS while running tomcat as a service


 Tom Reis,

  Thanks a lot. It worked. You were awesome. I wish I could
give
 you some Duke dollars :) Thanks again,

 Mandy

 From: Reis, Tom [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: How to set up JAVA_OPTS while running tomcat as a 
 service
 Date: Fri, 2 Apr 2004 15:10:31 -0600
 
 You can set the options for services in the registry.
 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 
 4.1\Parameters set the JVM Option Count to the number of parameters 
 you are setting (it is probably already set to 2) and then add JVM 
 Option Number # strings for each new option.
 the setting for maximum heap is -Xmx###M,  minimum is -Xms###M
 
 Let me know if this works. I have done it to 1 server so far and it 
 seems to works, but I can't tell how much memory is being used.
 
 -Original Message-
 From: Mandy Joss [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 2:58 PM
 To: [EMAIL PROTECTED]
 Subject: Re: How to set up JAVA_OPTS while running tomcat as a 
 service
 
 
 But the problem is when it runs as a windows service the tomcat.exe 
 is called directly. if I put any echo message in catalina.bat file I 
 don't see my message anywhere. I don't think it goes into 
 catalina.bat at all when runniing as an service.
 
 
  From: Paul Mansfield [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: How to set up JAVA_OPTS while running tomcat as a 
  service
  Date: Fri, 02 Apr 2004 18:23:40 +0100
  
 I put the settings into the catalina.sh file, e.g.
  
   
# $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ #
  ---
  --
  --
 --
   
JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so
 
  On Fri, 2004-04-02 at 17:54, Mandy Joss wrote:
I am running Tomcat 4.1.24 as service but under stress I get 
OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server
  -Xms256m
-Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me 
where
  should I
specify JAVA_OPTS so that Tomcat running as service will look at
them.
  
  
  
  
  
  
  ---
  -- To unsubscribe, e-mail: 
  [EMAIL PROTECTED]
  For additional commands, e-mail: 
  [EMAIL PROTECTED]
  
 
 _
 Check out MSN PC Safety  Security to help ensure your PC is 
 protected and safe. http://specials.msn.com/msn/security.asp
 
 
 -
 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]
 

 _
 MSN Toolbar provides one-click access to Hotmail from any Web page - 
 FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


 -
 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]




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



RE: How to set up JAVA_OPTS while running tomcat as a service

2004-04-02 Thread Antoni Unkovich
Hi
I'm keen to try this with tomcat 5.0.19.
Please can you supply a little more detail regarding the registry settings?
Thanks in advance
Antoni



-Original Message-
From: Mandy Joss [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 3 April 2004 9:57 a.m.
To: [EMAIL PROTECTED]
Subject: RE: How to set up JAVA_OPTS while running tomcat as a service


Tom Reis,

 Thanks a lot. It worked. You were awesome. I wish I could give
you some Duke dollars :) Thanks again,

Mandy

From: Reis, Tom [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: How to set up JAVA_OPTS while running tomcat as a service
Date: Fri, 2 Apr 2004 15:10:31 -0600

You can set the options for services in the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 
4.1\Parameters set the JVM Option Count to the number of parameters you 
are setting (it is probably already set to 2) and then add JVM Option 
Number # strings for each new option.
the setting for maximum heap is -Xmx###M,  minimum is -Xms###M

Let me know if this works. I have done it to 1 server so far and it 
seems to works, but I can't tell how much memory is being used.

-Original Message-
From: Mandy Joss [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 2:58 PM
To: [EMAIL PROTECTED]
Subject: Re: How to set up JAVA_OPTS while running tomcat as a service


But the problem is when it runs as a windows service the tomcat.exe is 
called directly. if I put any echo message in catalina.bat file I don't 
see my message anywhere. I don't think it goes into catalina.bat at all 
when runniing as an service.


 From: Paul Mansfield [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: How to set up JAVA_OPTS while running tomcat as a 
 service
 Date: Fri, 02 Apr 2004 18:23:40 +0100
 
I put the settings into the catalina.sh file, e.g.
 
  
   # $Id: catalina.sh,v 1.11 2003/10/22 00:28:44 jfarcand Exp $ #
 -
 --
--
  
   JAVA_OPTS=-Djava.library.path=/usr/local/jakarta-tomcat/so

 On Fri, 2004-04-02 at 17:54, Mandy Joss wrote:
   I am running Tomcat 4.1.24 as service but under stress I get 
   OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server
 -Xms256m
   -Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where
 should I
   specify JAVA_OPTS so that Tomcat running as service will look at them.
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Check out MSN PC Safety  Security to help ensure your PC is protected 
and safe. http://specials.msn.com/msn/security.asp


-
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]


_
MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


-
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: Tomcat5 service on Windows

2004-03-18 Thread Antoni Unkovich
What version of windows ?
I've just installed 5.0.19 on windows 2k server (from the installer
jakarta-tomcat-5.0.19.exe) no problems. 
If you install Java SDK first the tomcat installer finds it.
From win2k you can see if the service has been installed from: 
Start Menu-Settings-Control Panel-Administrative Tools-Services,
and Apache Tomcat should be right there near the top of the services list.

After installing (from the installer jakarta-tomcat-5.0.19.exe) did you go
to the:
 Start Menu-Programs-Apache Tomcat 5.0-Configure Tomcat?  On the first
screen there is a checkbox Auto Start.

Hope this helps
Antoni Unkovich



-Original Message-
From: Daryl Stultz [mailto:[EMAIL PROTECTED] 
Sent: Friday, 19 March 2004 6:03 a.m.
To: Tomcat Users List
Subject: Tomcat5 service on Windows

Tomcat Users List [EMAIL PROTECTED] writes:
when I would execute the startup.bat file a command console window 
would briefly flash but TC would never start.
...
It runs as a service and my only issues now are trying to get a web app 
working. ugh...

I think my problem is opposite yours. I can run it from startup.bat just
fine but not as a service.

FWIW, when you get the brief console flash thing you described, open a
console, cd to the bin folder and issue

catalina run

Any errors, like a stack trace will print to the console.

Daryl Stultz
_
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[EMAIL PROTECTED]


-
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: Tomcat 5 - Balancer errors with virtual hosts

2004-03-16 Thread Antoni Unkovich
Thank you for your help Yoav.

1. This is the Tomcat start-up error after I add my virtual host to the
server.xml

INFO: Processing Context configuration file URL
file:E:\Tomcat\conf\Catalina\www.artistsonline.co.nz\manager.xml
17/03/2004 06:16:08 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /artistsonline from URL
file:E:\Tomcat\webapps\artistsonline
17/03/2004 06:16:09 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /balancer from URL
file:E:\Tomcat\webapps\balancer
17/03/2004 06:16:09 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
17/03/2004 06:16:09 org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
17/03/2004 06:16:09 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL
file:E:\Tomcat\webapps\jsp-examples


2. regarding my host enty:
  Host name=www.artistsonline.co.nz debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

I'm new to Tomcat so I've been searching the web for examples on how to host
virtual sites and found this:
http://www.galatea.com/flashguides/virtual-hosting-tomcat.xml which is what
I based my host entry on.

If I try something other than appBase=webapps (such as:
appBase=artistsonline)I get Tomcat startup errors:

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base
E:\Tomcat\artistsonline\artistsonline does not exist or is not a readable
directory

Do I still need the locahost entry if I'm defining my own virtual host?  Any
pointers to documentation would be much appreciated, or does someone have a
sample server.xml file with virtual hosts please.

Thanks  regards
Antoni





-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 17 March 2004 2:56 a.m.
To: Tomcat Users List
Subject: RE: Tomcat 5 - Balancer errors with virtual hosts


Hi,

Every thing is sweet until I add a virtual host into the server.xml
file -
then I get balancer errors on starting up Tomcat.

What are the errors?

I've seen a couple of posts about balancer on this list but nothing 
conclusive. What is balancer and why do I need it?

If you needed it, you'd know, so you don't need it ;)  For more information
on what it is, see
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/balancer-howto.html.

Is there something obviously wrong with my virtual host entry?


  Host name=www.artistsonline.co.nz debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

One thing that comes to mind is that two hosts normally shouldn't share the
same appBase: is your localhost host using this appBase as well?

Yoav Shapira




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



Tomcat 5 - Balancer errors with virtual hosts

2004-03-15 Thread Antoni Unkovich
Hi all.

I've just installed Tomcat (my setup below taken from the
Manager/serverinfo):

OK - Server info
Tomcat Version: Apache Tomcat/5.0.19
OS Name: Windows 2000
OS Version: 5.0
OS Architecture: x86
JVM Version: 1.4.1_01-b01
JVM Vendor: Sun Microsystems Inc.


Every thing is sweet until I add a virtual host into the server.xml file -
then I get balancer errors on starting up Tomcat.
My servlet works fine and doesn't generate any errors but I'd prefer no
warnings or errors at start-up.  
I've seen a couple of posts about balancer on this list but nothing
conclusive. What is balancer and why do I need it?

Is there something obviously wrong with my virtual host entry?


  Host name=www.artistsonline.co.nz debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
 
  Context path= docBase=artistsonline debug=0 reloadable=true/
 
Logger className=org.apache.catalina.logger.FileLogger 
directory=logs  prefix=artistsonline. suffix=.txt
timestamp=true/
 /Host


Thanks to the regular contributors to this list - your efforts are much
appreciated.

Regards
Antoni (New Zealand)


PS.  I found this reference in the manager docs (manager-howto.hmtl)
If you have Tomcat configured to support multiple virtual hosts (websites)
you would need to configure a Manager for each.

Can someone point me to more documentation on how to do this or elaborate
please.






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



RE: SOLVED: Re: Tomcat 4.1.18 - IIS 5.0 plugin - jk2.properties + workers2.properties

2003-03-12 Thread Antoni Unkovich
Thanks very much, 
I was beginning to loose faith in this list as on two occasions this
week I ask for the whereabouts of the properties files to no avail.

Thanks for posting.
Antoni


 -Original Message-
 From: Aparna Narla [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, 13 March 2003 10:41 a.m.
 To: 'Tomcat Users List'
 Subject: RE: SOLVED: Re: Tomcat 4.1.18 - IIS 5.0 plugin - 
 jk2.properties + workers2.properties
 
 
 
 
 -Original Message-
 From: Johannes Fiala [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 2:43 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: SOLVED: Re: Tomcat 4.1.18 - IIS 5.0 plugin - 
 jk2.properties + workers2.properties
 
 
 Hi to all!
 
 I finally have found the solution:
 2.0.1 and 2.0.2 is now working - it seems my try to use a 
 different name 
 for the redirector dll other than isapi_redirector2.dll has 
 caused the 
 trouble. I thought I could use isapi_redirector2_201.dll 
 and enter it in 
 the extensionUri and use it as filter in the IIS properties, but this 
 didn't work.
 
 For everybody else to save hours of desperate research, I 
 post my complete 
 configuration here:
 ===
 registry settings (edited using regedt32.exe) 
 === SOFTWARE - Apache Software 
 Foundation - Jakarta Isapi Redirector - 2.0 
 authComplete: 0
 extensionUri: /jakarta/isapi_redirector2.dll
 logLevel: DEBUG
 serverRoot: f:\tomcat-4.1.18
 threadPool: 20
 workersFile: f:\tomcat-4.1.18\conf\ntiis\workers2.properties
 
 The correct workers2.properties + jk2.properties files can be 
 found in the 
 source release (2.0.2) of the JK2 connector.
 They are missing in the binary release and are not included in the 
 normal Tomcat 4.1.18-distribution.
 == So you have to grab them out of the source distribution. 
 
 ===
 workers2.properties (location: anywhere you like, you have to 
 point with 
 the registry entry workersFile to the right filename). 
 === [logger] level=DEBUG
 
 [config:]
 file=${serverRoot}/conf/workers2.properties
 debug=10
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=10
 
 # Alternate file logger
 #[logger.file:0]
 #level=DEBUG
 #file=${serverRoot}/logs/jk2.log
 
 [shm:]
 info=Scoreboard. Required for reconfiguration and status with 
 multiprocess 
 servers
 file=${serverRoot}/logs/jk2.shm
 size=100
 debug=10
 disabled=0
 
 [workerEnv:]
 info=Global server options
 timing=1
 debug=10
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 info=Default load balancer.
 debug=10
 
 [lb:lb_1]
 info=A second load balancer.
 debug=10
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=10
 tomcatId=localhost:8009
 
 [channel.socket:localhost:8019]
 info=A second tomcat instance.
 debug=10
 tomcatId=localhost:8019
 lb_factor=1
 group=lb
 group=lb_1
 disabled=0
 
 [channel.un:/opt/33/work/jk2.socket]
 info=A second channel connecting to localhost:8019 via unix 
 socket tomcatId=localhost:8019 lb_factor=1 debug=10
 
 [channel.jni:jni]
 info=The jni channel, used if tomcat is started inprocess
 
 [status:]
 info=Status worker, displays runtime informations
 
 [vm:]
 info=Parameters used to load a JVM in the server process 
 #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
 classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
 classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
 OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME}
 OPT=-Xmx128M
 #OPT=-Djava.compiler=NONE
 disabled=1
 
 [worker.jni:onStartup]
 info=Command to be executed by the VM on startup. This one will start 
 tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=start
 # For Tomcat 5 use the 'stard' for startup argument
 # ARG=stard
 disabled=1
 stdout=${serverRoot}/logs/stdout.log
 stderr=${serverRoot}/logs/stderr.log
 
 [worker.jni:onShutdown]
 info=Command to be executed by the VM on shutdown. This one will stop 
 tomcat.
 class=org/apache/jk/apr/TomcatStarter
 ARG=stop
 disabled=1
 
 [uri:/jkstatus/*]
 info=Display status information and checks the config file 
 for changes.
 group=status:
 
 [uri:127.0.0.1:8003]
 info=Example virtual host. Make sure myVirtualHost is in 
 /etc/hosts to 
 test it
 alias=myVirtualHost:8003
 
 [uri:127.0.0.1:8003/ex]
 info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. 
 localhost:8019 )
 context=/ex
 group=lb_1
 
 [uri:/examples]
 info=Example webapp in the default context.
 context=/examples
 debug=10
 
 [uri:/examples1/*]
 info=A second webapp, this time going to the second tomcat 
 only. group=lb_1 debug=10
 
 [uri:/examples/servlet/*]
 info=Prefix mapping
 debug=10
 
 [uri:/examples/*.jsp]
 info=Extension mapping
 debug=10
 
 [uri:/examples/*]
 info=Map the whole webapp
 debug=10
 
 [uri:/examples/servlet/HelloW]
 info=Example with debug enabled.
 debug=10
 

Where is uriworkermap.properties??

2003-03-10 Thread Antoni Unkovich
Hi all,

I've been using tomcat 3.3.1 (on Windows with IIS) for some time now and
decided 
to upgrade to the latest (4.1.18).

Were can I get these files that were missing from the conf directory: 
uriworkermap.properties 
workers.properties

Thanks in advance
Antoni Unkovich


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



Missing files in latest tomcat download?

2003-03-10 Thread Antoni Unkovich
Is there anyone out there using tomcat 4.1.18 with IIS?
If so, where did you get your connector properties files from?

I've just downloaded tomcat 4.1.18 (.zip for windows) and discovered
there are no files in the conf directory to do with setting up tomcat
with IIS (uriworkermap.properties, workers.properties etc)

Can someone please tell me where to download these from?

The JK How To documentation for isapi refers to them 
but the files are not in the binary download - any ideas anyone?

Regards
Antoni


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



RE: Missing files in latest tomcat download?

2003-03-10 Thread Antoni Unkovich
Are you sure Robert?  
I can't see any links in webapps\tomcat-docs\jk2\jk\iishowto.html
What is the download the url please

The iishowto.html downloaded in the 4.1.18 docs says:
uriworkermap.properties - A file that maps URL-Path patterns to
workers. A sample uriworkermap.properties can be found under the conf
directory as well - not so!

Please point me in the right direction.


Thanks
Antoni


 
 There is a seperate sub project that contains all the 
 connectors (binaries and source) along with config files etc.
 
 Theres a link to to that in the connector howto
 
 -Original Message-
 From: Antoni Unkovich [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 11 March 2003 11:54 AM
 To: 'Tomcat Users List'
 Subject: Missing files in latest tomcat download?
 
 
 Is there anyone out there using tomcat 4.1.18 with IIS?
 If so, where did you get your connector properties files from?
 
 I've just downloaded tomcat 4.1.18 (.zip for windows) and 
 discovered there are no files in the conf directory to do 
 with setting up tomcat with IIS (uriworkermap.properties, 
 workers.properties etc)
 
 Can someone please tell me where to download these from?
 
 The JK How To documentation for isapi refers to them 
 but the files are not in the binary download - any ideas anyone?
 
 Regards
 Antoni
 
 


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



url relative to directory path?

2001-11-26 Thread Antoni Unkovich

Hello from downunder (New Zealand),

I'm new to tomcat and java but have successfully installed Tomcat 3.3 on
Windows 2000 server in conjunction with IIS and the redirector plug-in -
which I have working fine.

My servlet is in this directory: 
E:\tomcat\webapps\qbus\WEB-INF\Classes\qbus\servletname.class

to access it I use this url:

www.qbus.co.nz/qbus/servlet/servletname

What do I need to change to access it from:

www.qbus.co.nz/servletname

Thanks in advance
Antoni Unkovich



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




Windows 2000 server Tomcat

2000-11-09 Thread Antoni Unkovich

Dear Dave,

Greetings from down under (New Zealand).

I've just discovered Tomcat, and am also a newby to webservers in general,
so I'm finding the installation of Tomcat a little difficult.

Anyway, I noticed you have Tomcat running on Win2000.  I have not been able
to get passed the first installation steps like installing the JDK1.3 (or
the JRE1.3  for that matter)!  How did you do it?  It installed fine on my
workstation which is Win2000 professional, but the server which is win2000
server won't run the 16bit installer application!  Have you seen this
before?  Sun's website refers to a similar problem:

   http://support.microsoft.com/support/kb/articles/Q142/2/71.asp

but it's note quite what I'm experiencing.  (gif image of error attached).
The error occurs as soon as the progress bar "Unpacking Java 2 Runtime
Environment" finishes.  I'm logged in as the administrator.


Thanks in advance.

Antoni Unkovich



- Original Message -
From: "David Halsted" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 10, 2000 1:37 PM
Subject: Re: Problems with JSPs in Tomcat3.1


 I'm finding that Tomcat runs JSPs rather nicely (some of the examples are
 still broken, though, I think).  Instead of compiling directly, I just let
 Tomcat compile 'em when they're first requested, but I had to add
JAVA_HOME
 to my environment (Win2000, IIS, in this case) so that Tomcat actually
fired
 up with a proper path to tools.jar in its classpath.

 Dave Halsted

 - Original Message -
 From: Naga Nunna [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 09, 2000 7:28 PM
 Subject: Problems with JSPs in Tomcat3.1


 
  JSPs don't seem to work with Tomcat3.1 and JDK1.3. I get a
  ClassNotFoundException. Adding tools.jar and rt.jar
  to my classpath didn't help. Neither did copying and inflating
  the jar files into the same directory as my jsp file.
 
  I tried compiling my jsp with the jspc command in the bin
  and I got the following error:
  Exception in thread "main" java.lang.NullPointerException
  at java.io.File.init(Unknown Source)
  at org.apache.jasper.JspC.parseFiles(JspC.java:438)
  at org.apache.jasper.JspC.main(JspC.java:601)
 
  I tried compiling some of the tomcat jsp examples and I got the same
  error.
 
 
  The tomcat log had the following error:
  Starting endpoint port="8080"
  handler="org.apache.tomcat.service.http.HttpConnectionHandler"
  Starting endpoint port="8007"
  handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
  Context log: path="" Class Not Found in init
   java.lang.ClassNotFoundException: Login1.jsp
  at
 

org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
 ava:450)
  at
 

org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
 er.java:141)
  at
 org.apache.tomcat.core.ServletWrapper.initServlet(ServletWrapper.java:294)
  at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:445)
  at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
  at
 org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
  at
 

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:160)
  at
 

org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
 )
  at java.lang.Thread.run(Unknown Source)
 
  If anybody else experienced this problem and resolved it, I would like
to
 know
  how.
 
  Thanks!
  N
 


 installprob.gif