newbie question

2004-10-28 Thread Luke FERNANDEZ
Is there an easy way to specify that one of the apps in the webapps
folder be served off one port (e.g. 80) whereas another app should be
served off another port (8080)?

Thanks for your help,

Luke Fernandez
Weber State University

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



RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
Can you run multiple instances of Tomcat? I tried this but I ran into
problems. 

I'm running Sakai (the open source Learning Management System) which
installs its own Tomcat engine.  When I try to start up my own non-Sakai
Tomcat instance from the command line (which resides in a completely
separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it
seems like it goes through the entire deployment in the conventional
manner.  But instead of staying open, that second DOS window eventually
closes.  And then when I try to request pages against the second Tomcat
instance I don't get anything back in the browser.  The Sakai instance
still serves pages correctly. 

However, if the Sakai Tomcat server is turned off I can turn on my
other instance and serve pages from it.  Is there a way to make both
Tomcat engines run simultaneously without conflict?

Cheers,

Luke Fernandez

 

 [EMAIL PROTECTED] 10/28/2004 11:11:05 AM 
Or you could run multiple instances of Tomcat



On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote:
 Hi,
 Yes: define separate Engines or Services for the two apps in your
 server.xml, and put each connector only in the Service where you
want
 it.
 
 Yoav Shapira http://www.yoavshapira.com 
  
 
 -Original Message-
 From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 28, 2004 12:16 PM
 To: [EMAIL PROTECTED] 
 Subject: newbie question
 
 Is there an easy way to specify that one of the apps in the webapps
 folder be served off one port (e.g. 80) whereas another app should
be
 served off another port (8080)?
 
 Thanks for your help,
 
 Luke Fernandez
 Weber State University
 

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

 
 
 
 
 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]

 
 


-
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: newbie question

2004-10-28 Thread Luke FERNANDEZ
Ok I'll research that.  Any chance you could give me an example of how
to write this in the server.xml?  I've got the following webapp folder
structure.  

balancer
jsp-examples
ROOT_OLD
sakai-chef-tool
sakai-dav
sakai-embedded
sakai-framework-component
sakai-james
sakai-legacy-component
sakai-provider
sakai-shared
sakai-z-last
servlets-examples
TomProj

The Sakai app should continue to be served (as it is currently) using
the 8080 port.  I'd like the TomProj app to be served from port 80.  If
you feel like I should figure this out myself maybe point me to a clear
tutorial?

Cheers,

Luke



 [EMAIL PROTECTED] 10/28/2004 10:23:13 AM 

Hi,
Yes: define separate Engines or Services for the two apps in your
server.xml, and put each connector only in the Service where you want
it.

Yoav Shapira http://www.yoavshapira.com 


-Original Message-
From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 28, 2004 12:16 PM
To: [EMAIL PROTECTED] 
Subject: newbie question

Is there an easy way to specify that one of the apps in the webapps
folder be served off one port (e.g. 80) whereas another app should be
served off another port (8080)?

Thanks for your help,

Luke Fernandez
Weber State University

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




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] 


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



RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
There would be port conflict even though the Sakai Tomcat app serves
from port 8080 while my Tomcat instance serves from port 80?

Luke

 [EMAIL PROTECTED] 10/28/2004 12:28:46 PM 
you have conflict in ports, both tomcats can not run on the same port
at the
same time.
instead of calling start.bat, call catalina.bat run to have the
windows
stay the same and not shutdown on you

FIlip

-Original Message-
From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 28, 2004 1:27 PM
To: [EMAIL PROTECTED] 
Subject: RE: newbie question


Can you run multiple instances of Tomcat? I tried this but I ran into
problems.

I'm running Sakai (the open source Learning Management System) which
installs its own Tomcat engine.  When I try to start up my own
non-Sakai
Tomcat instance from the command line (which resides in a completely
separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it
seems like it goes through the entire deployment in the conventional
manner.  But instead of staying open, that second DOS window
eventually
closes.  And then when I try to request pages against the second
Tomcat
instance I don't get anything back in the browser.  The Sakai instance
still serves pages correctly.

However, if the Sakai Tomcat server is turned off I can turn on my
other instance and serve pages from it.  Is there a way to make both
Tomcat engines run simultaneously without conflict?

Cheers,

Luke Fernandez



 [EMAIL PROTECTED] 10/28/2004 11:11:05 AM 
Or you could run multiple instances of Tomcat



On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote:
 Hi,
 Yes: define separate Engines or Services for the two apps in your
 server.xml, and put each connector only in the Service where you
want
 it.

 Yoav Shapira http://www.yoavshapira.com 


 -Original Message-
 From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 28, 2004 12:16 PM
 To: [EMAIL PROTECTED] 
 Subject: newbie question
 
 Is there an easy way to specify that one of the apps in the webapps
 folder be served off one port (e.g. 80) whereas another app should
be
 served off another port (8080)?
 
 Thanks for your help,
 
 Luke Fernandez
 Weber State University
 

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






 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]






-
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] 
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004


-
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: newbie question

2004-10-28 Thread Luke FERNANDEZ
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)
at java.net.ServerSocket.bind(ServerSocket.java:318)
at java.net.ServerSocket.init(ServerSocket.java:185)
at
org.apache.catalina.core.StandardServer.await(StandardServer.java:496
)
at
org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Oct 28, 2004 12:59:07 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80

C:\tomcat\jakarta-tomcat-5.0.28\bin

Any ideas?

Luke


 [EMAIL PROTECTED] 10/28/2004 12:28:46 PM 
you have conflict in ports, both tomcats can not run on the same port
at the
same time.
instead of calling start.bat, call catalina.bat run to have the
windows
stay the same and not shutdown on you

FIlip

-Original Message-
From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 28, 2004 1:27 PM
To: [EMAIL PROTECTED] 
Subject: RE: newbie question


Can you run multiple instances of Tomcat? I tried this but I ran into
problems.

I'm running Sakai (the open source Learning Management System) which
installs its own Tomcat engine.  When I try to start up my own
non-Sakai
Tomcat instance from the command line (which resides in a completely
separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it
seems like it goes through the entire deployment in the conventional
manner.  But instead of staying open, that second DOS window
eventually
closes.  And then when I try to request pages against the second
Tomcat
instance I don't get anything back in the browser.  The Sakai instance
still serves pages correctly.

However, if the Sakai Tomcat server is turned off I can turn on my
other instance and serve pages from it.  Is there a way to make both
Tomcat engines run simultaneously without conflict?

Cheers,

Luke Fernandez



 [EMAIL PROTECTED] 10/28/2004 11:11:05 AM 
Or you could run multiple instances of Tomcat



On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote:
 Hi,
 Yes: define separate Engines or Services for the two apps in your
 server.xml, and put each connector only in the Service where you
want
 it.

 Yoav Shapira http://www.yoavshapira.com 


 -Original Message-
 From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 28, 2004 12:16 PM
 To: [EMAIL PROTECTED] 
 Subject: newbie question
 
 Is there an easy way to specify that one of the apps in the webapps
 folder be served off one port (e.g. 80) whereas another app should
be
 served off another port (8080)?
 
 Thanks for your help,
 
 Luke Fernandez
 Weber State University
 

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






 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]






-
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] 
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004


-
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: newbie question

2004-10-28 Thread Luke FERNANDEZ
So its more complicated than configuring server.xml for first instance
(e.g. Sakai) as:

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /

And the second server.xml for the second tomcat instance to be (notice
8080 is now 80):

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=80
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true /

I need to go read the doc?

Luke

 [EMAIL PROTECTED] 10/28/2004 1:08:28 PM 
you can have them run at the same time but you need to configure them
to run
on separate ports.  for your standard TC 5.0.28 the file to edit is
CATALINA_HOME/conf/server.xml - see the docs at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for
an
explanation of how server.xml works (click links in the left margin to
access further pages)

 -Original Message-
 From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 28 October 2004 19:29
 To: Tomcat Users List
 Subject: RE: newbie question
 
 
 you have conflict in ports, both tomcats can not run on the 
 same port at the
 same time.
 instead of calling start.bat, call catalina.bat run to have 
 the windows
 stay the same and not shutdown on you
 
 FIlip
 
 -Original Message-
 From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 28, 2004 1:27 PM
 To: [EMAIL PROTECTED] 
 Subject: RE: newbie question
 
 
 Can you run multiple instances of Tomcat? I tried this but I ran
into
 problems.
 
 I'm running Sakai (the open source Learning Management System) which
 installs its own Tomcat engine.  When I try to start up my 
 own non-Sakai
 Tomcat instance from the command line (which resides in a completely
 separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and
it
 seems like it goes through the entire deployment in the conventional
 manner.  But instead of staying open, that second DOS window 
 eventually
 closes.  And then when I try to request pages against the 
 second Tomcat
 instance I don't get anything back in the browser.  The Sakai
instance
 still serves pages correctly.
 
 However, if the Sakai Tomcat server is turned off I can turn on my
 other instance and serve pages from it.  Is there a way to make both
 Tomcat engines run simultaneously without conflict?
 
 Cheers,
 
 Luke Fernandez
 
 
 
  [EMAIL PROTECTED] 10/28/2004 11:11:05 AM 
 Or you could run multiple instances of Tomcat
 
 
 
 On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote:
  Hi,
  Yes: define separate Engines or Services for the two apps in your
  server.xml, and put each connector only in the Service where you
 want
  it.
 
  Yoav Shapira http://www.yoavshapira.com 
 
 
  -Original Message-
  From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, October 28, 2004 12:16 PM
  To: [EMAIL PROTECTED] 
  Subject: newbie question
  
  Is there an easy way to specify that one of the apps in the
webapps
  folder be served off one port (e.g. 80) whereas another app
should
 be
  served off another port (8080)?
  
  Thanks for your help,
  
  Luke Fernandez
  Weber State University
  
 

-
  To unsubscribe, e-mail: [EMAIL PROTECTED]

  For additional commands, e-mail: 
 [EMAIL PROTECTED] 
 
 
 
 
 
  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] 
 
 
 
 
 

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

 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.778

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
Am I spamming if I say thanks to all of you for your help?  I changed
the following line in server.xml and now both instances run:

!-- Server port=8005 shutdown=SHUTDOWN debug=0 --
Server port=8007 shutdown=SHUTDOWN debug=0

I hope I wasn't imposing by asking all these naive questions.for me
this is a great way to learn.

Like you said, I actually have to read the message (although I didn't
know that create[8005] was referring to a port).  

I wonder if there's a way to filter out some of all the stuff that is
outputted on startup so one can zero in more easily on the error? 

And why not output  attempting to create port 8005 instead of
create[8005]? 

But those are standard quibbles about cryptic error messages.thanks
again for your help.

Luke





 [EMAIL PROTECTED] 10/28/2004 1:09:55 PM 
yes, and if you actually read the message

StandardServer.await: create[8005]: java.net.BindException: Address
already in u
se: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind


look for 8005 in your server.xml and you will find out that this is
the
shutdown port.

Filip

-Original Message-
From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 28, 2004 2:10 PM
To: [EMAIL PROTECTED] 
Subject: RE: newbie question


Ok. When I use catalina.bat run instead of startup the window
stays
open but the second instance (on port 80) still isnt serving pages.
I've included the screen output that happens after running
catalina.bat
run.  Looks like its saying something about address already in use:

C:\tomcat\jakarta-tomcat-5.0.28\bincatalina.bat run
Using CATALINA_BASE:   C:\tomcat\jakarta-tomcat-5.0.28
Using CATALINA_HOME:   C:\tomcat\jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-5.0.28\temp
Using JAVA_HOME:   C:\j2sdk1.4.2_05
Oct 28, 2004 12:58:57 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Oct 28, 2004 12:58:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1953 ms
Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardService
start
INFO: Starting service Catalina
Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\tomcat\jakarta-tomcat-5.
0.28\conf\Catalina\localhost\admin.xml
Oct 28, 2004 12:58:59 PM
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Oct 28, 2004 12:58:59 PM
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Oct 28, 2004 12:58:59 PM
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\tomcat\jakarta-tomcat-5.
0.28\conf\Catalina\localhost\balancer.xml
Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:C:\tomcat\jakarta-tomcat-5.
0.28\conf\Catalina\localhost\manager.xml
Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from
URL
file:C:\
tomcat\jakarta-tomcat-5.0.28\webapps\jsp-examples
Oct 28, 2004 12:59:03 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /Login from URL
file:C:\tomcat\
jakarta-tomcat-5.0.28\webapps\Login
Oct 28, 2004 12:59:04 PM
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Oct 28, 2004 12:59:04 PM
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Oct 28, 2004 12:59:04 PM
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='ApplicationResources', returnNull=true
Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:C:\tomcat\jakart
a-tomcat-5.0.28\webapps\ROOT
Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples
from URL fil
e:C:\tomcat\jakarta-tomcat-5.0.28\webapps\servlets-examples
Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application

RE: jakarta-tomcat-4.1.31 fails to render the example JSPs

2004-10-21 Thread Luke FERNANDEZ
I've run into the problem of the JSP 2.0- Examples not rendering in the last two 
installs I've done of Tomcat.  

On the last install I resolved the problem by:

--removing all of the JDKs and JREs through Windows Settings  Remove Programs, 
--removing any j2sdk folders 
-- reinstalling the jdk which created a  j2sdk1.4.2_05 folder.  
--pointing the environmental variable JAVA_HOME  to  the j2sdk1.4.2_05 folder 

After doing all that the JSP 2.0 examples worked.  

I'm not sure why the extra JRE and JDK installations were running interferenceI'd 
think that if JAVA_HOME was pointing to the  j2sdk1.4.2_05 any other jars that are 
lying around wouldn't matter. maybe my environment CLASSPATH variable was pointing 
to a different JRE and that overode the JAVA_HOME setting?  I dunnobut starting 
from a clean install definitely seemed to help.

Although I like Java and find it challenging to program in, I find the installation of 
a Java development environment sometimes unfuriatingly difficult with all the 
classpath gotchas.  There really should be a way of designing a less fragile 
installation that isnt as contingent on everything else being just so.  Introductory 
texts on Java programming like to talk up all the benefits of encapsulation and I 
guess they've been incorporated into the language.  But when it comes to a Tomcat 
install it seems that encapsulation wasn't given much attention * at least if 
encapusalation means insulation from outside environments.  Is this a sensible 
impression or maybe I'm misunderstanding something?

Cheers,

Luke



 [EMAIL PROTECTED] 10/21/2004 4:41:14 PM 


--On Thursday, October 21, 2004 10:03:17 AM -0400 Shapira, Yoav
[EMAIL PROTECTED] wrote:

 
 This usually indicates multiple versions of either the JSP APIs or the
 Jasper classes on the server's runtime classpath.  I hope when you
 upgraded your server you did an installation to a clean directory, not
 an overwrite of the old directory.  If you did the latter, search it for
 jsp.jar and jsp-api.jar and make sure only one is present: the latest.
 Same thing for the Jasper jars (jasper-compiler, jasper-runtime, etc.).
 
 Yoav
 

Yes, the install was into a clean directory.  There is only one each of the
two jasper jars, and no jsp.jar or jsp-api.jar in the installation directory
(or in the download zip file jakarta-tomcat-4.1.31.zip)  Are those two jars
supposed to be included??  The only place I even find the jsp jars is in the
Eclipse and MyEclipse toolkits.  Eclipse is an IDE, and I'm bringing up
tomcat (at least initially) outside of the IDE.

Are these two jsp jars something I should have and so I should go get them
seperately from the tomcat distro?  And where should they go?

Thanks,
Rob


-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR


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



Problem rendering JSP 2.0 examples on Tomcat install

2004-09-15 Thread Luke FERNANDEZ
Has anybody else had difficulty running  the JSP 2.0 examples after
Tomcat 5.0 install?  The JSP 1.2 Examples work correctly but 2.0 do
not.what am I doing wrong?

Here's a typical exception when running the HelloWorld Tab example:

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)


root cause 

java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
java.lang.Class.getConstructor0(Class.java:1930)
java.lang.Class.newInstance0(Class.java:278)
java.lang.Class.newInstance(Class.java:261)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)



 [EMAIL PROTECTED] 9/15/2004 2:44:20 PM 
Yep, I have.  its port 8015 now.

Patricia

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 2:32 PM
To: Tomcat Users List
Subject: RE: problem configuring 2 tomcat instances apache 2.0.48
tomcat
5.0.19



Hi,
Have you modified the shutdown port for the 2nd instance so it doesn't
clash with the 1st instance (default port 8005)?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Patricia Swarbrick [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 14, 2004 4:05 PM
To: Tomcat Users List
Subject: problem configuring 2 tomcat instances apache 2.0.48 tomcat
5.0.19

I'm attempting to configure two tomcat instances, one set up on the
normal
ports and the other is connected to server port 8015, connector port
8088
and 8019

the problem is I can't load any .jsp pages for the second port.  I
get
an
http 400 error.  I've checked the directory permissions, checked and
rechecked the workers2.properties file and the vhosts.conf in apache.

I'm not sure whats going on here.  any help would be apreciated.

workers2.properties file (there's prolly a lot of useless stuff in
here):

[shm]
file=/usr/local/apache/current/logs/mod_jk2.shm
size=1048576
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
tomcatid=localhost:8009
channel=channel.socket:localhost:8009
[ajp13:localhost:8009]
[channel.socket:thesite:8009]
port=8009
host=127.0.0.1
channel=channel.socket:thesite:8009
[ajp13:thesite:8009]
[channel.socket:localhost:8019]
port=8019
host=127.0.0.1
tomcatid=localhost:8019
channel=channel.socket:localhost:8019
[channel.socket:theothersite:8019]
port=8019
host=127.0.0.1
channel=channel.socket:theothersite:8019
[ajp13:theothersite:8019]

# status'' worker - shows status of jk2 module
[status:status]
[uri:10.99.1.75:80/status/*]
worker=status:status


section of the vhosts.conf:

VirtualHost blah:80
  ServerAdmin [EMAIL PROTECTED] 
  DocumentRoot /home/httpd/html/thesite_com
  ServerName thesite
  ServerAlias thesite.com
  ErrorLog logs/thesite_com-error_log
  CustomLog logs/thesite_com-access_log combined
  Location /*.jsp
JkUriSet worker ajp13:localhost:8009
  /Location
  Location /*.do
JkUriSet worker ajp13:localhost:8009
  /Location
/VirtualHost
VirtualHost blah:80
  ServerAdmin [EMAIL PROTECTED] 
  DocumentRoot /home/httpd/html/theothersite_com
  ServerName theothersite
  ServerAlias theothersite.com
  ErrorLog logs/theothersite_com-error_log
  CustomLog logs/theothersite_com-access_log combined
  Location /*.jsp
JkUriSet worker ajp13:localhost:8019
  /Location
  Location /*.do
JkUriSet worker ajp13:localhost:8019
  /Location
/VirtualHost




This e-mail, including any attachments, is a confidential