Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Pigott, Paul
Greetings,

I'm having problems executing functions in an external javascript file.
It's like the .js file can't be found.  I was able to do this under Tomcat
4.0 but for some reason it's not working under Tomcat 5.0.

The folder under webapps is /EdiHost and I've got another folder, /js,
under /EdiHost.

In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag.

Any ideas anyone?

TIA,

Paul
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.

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



Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Darek Czarkowski
You have to specify the full path, this should not work under any of the
webservers.
DarekC


On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote:
 Greetings,
 
 I'm having problems executing functions in an external javascript file.
 It's like the .js file can't be found.  I was able to do this under Tomcat
 4.0 but for some reason it's not working under Tomcat 5.0.
 
 The folder under webapps is /EdiHost and I've got another folder, /js,
 under /EdiHost.
 
 In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag.
 
 Any ideas anyone?
 
 TIA,
 
 Paul
 CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
 for the sole use of the intended recipient(s) and may contain confidential
 and privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the intended recipient, please
 contact the sender by reply e-mail and destroy all copies of the original
 message.
 
 -
 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 - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
You may be able to use this instead:

src=js/EdiHost.js

IDEA will get pissed about it, but it should work (I know it does for images).

It is nice, because you can rename your context, and not break your webapp. :)

Larry


On 10/5/05, Pigott, Paul [EMAIL PROTECTED] wrote:
 Greetings,

 I'm having problems executing functions in an external javascript file.
 It's like the .js file can't be found.  I was able to do this under Tomcat
 4.0 but for some reason it's not working under Tomcat 5.0.

 The folder under webapps is /EdiHost and I've got another folder, /js,
 under /EdiHost.

 In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag.

 Any ideas anyone?

 TIA,

 Paul
 CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
 for the sole use of the intended recipient(s) and may contain confidential
 and privileged information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the intended recipient, please
 contact the sender by reply e-mail and destroy all copies of the original
 message.

 -
 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 - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Hassan Schroeder
Larry Meadors wrote:
 You may be able to use this instead:
 
 src=js/EdiHost.js

 It is nice, because you can rename your context, and not break your webapp. :)

Or, if you're using JSTL, use:

  src=c:url value=/js/EditHost.js/

which has the added advantage of *not* being a relative path that'll
only work if referenced from the base directory of the webapp, but
*will* work regardless of changes to the webapp name...

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: Newbie question - Tomcat 5.0 and external Javascript files

2005-10-05 Thread Larry Meadors
Yeah, i just hate the tag inatag / / stuff.

Messy. ;-)

Larry


On 10/5/05, Hassan Schroeder [EMAIL PROTECTED] wrote:
 Larry Meadors wrote:
  You may be able to use this instead:
 
  src=js/EdiHost.js

  It is nice, because you can rename your context, and not break your webapp. 
  :)

 Or, if you're using JSTL, use:

   src=c:url value=/js/EditHost.js/

 which has the added advantage of *not* being a relative path that'll
 only work if referenced from the base directory of the webapp, but
 *will* work regardless of changes to the webapp name...

 --
 Hassan Schroeder - [EMAIL PROTECTED]
 Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



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



Newbie question. /manager only gives the directory listing

2005-09-18 Thread tomcat
Hi all,

I have been using Tomcat for some time now, but I still feel like a newbie in
most regards. At least when it comes to configuring it.
Tomcat has been working great, together with Apache 2, for several months now.
But now, I find myself wanting to use the manager webapp for the first time.
But it doesn't work. When I try to go to /manager all I get from Tomcat is the
directory listing of the manager-folder. I know this request is handled
by Tomcat, because I have the required JKMount's in the Apache httpd.conf file,
and at the bottom of the directory listing it says Apache Tomcat/5.5.9.

I have checked the archive for this maining list, and I have checked the
documentation and searched on google, but I can't find any information on how
to set up the default manager. All they say is that it is installed by default.
And I'm sure that it worked at the beginning, but then I must have made
something that messed it up, but since I haven't used it at all I have no idea
when, how
and why it got messed up.

Is there a simply checklist that I can go through step by step, to check that
my configuration is as it should be? Or maybe some kind soul could take a look
at my configuration files and figure out what I'm doing wrong?


Some info on my system:
---
Windows XP
Apache 2.0.54 (as service)
Apache Tomcat 5.5.9 (as service)
docBase changed so that my only webapp (located at c:\community) is reached when
i type localhost:8080/ (se context.xml in configuration files below)
the manager webapp is untouched, in Tomcat5.5\server\webapps\manager


The configuration files can be found at:
http://www.hullegard.com/tomcat/

The community folder is located under c:\
The httpd.conf is from the apache conf folder.
All other files are from the Tomcat5.5\conf folder

Anyone who can help me with this?

Regards
/Jimi

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



Re: Newbie question. /manager only gives the directory listing

2005-09-18 Thread Peter Johnson

Jimi,

try /manager/html

PJ

[EMAIL PROTECTED] wrote:


Hi all,

I have been using Tomcat for some time now, but I still feel like a newbie in
most regards. At least when it comes to configuring it.
Tomcat has been working great, together with Apache 2, for several months now.
But now, I find myself wanting to use the manager webapp for the first time.
But it doesn't work. When I try to go to /manager all I get from Tomcat is the
directory listing of the manager-folder. I know this request is handled
by Tomcat, because I have the required JKMount's in the Apache httpd.conf file,
and at the bottom of the directory listing it says Apache Tomcat/5.5.9.

I have checked the archive for this maining list, and I have checked the
documentation and searched on google, but I can't find any information on how
to set up the default manager. All they say is that it is installed by default.
And I'm sure that it worked at the beginning, but then I must have made
something that messed it up, but since I haven't used it at all I have no idea
when, how
and why it got messed up.

Is there a simply checklist that I can go through step by step, to check that
my configuration is as it should be? Or maybe some kind soul could take a look
at my configuration files and figure out what I'm doing wrong?


Some info on my system:
---
Windows XP
Apache 2.0.54 (as service)
Apache Tomcat 5.5.9 (as service)
docBase changed so that my only webapp (located at c:\community) is reached when
i type localhost:8080/ (se context.xml in configuration files below)
the manager webapp is untouched, in Tomcat5.5\server\webapps\manager


The configuration files can be found at:
http://www.hullegard.com/tomcat/

The community folder is located under c:\
The httpd.conf is from the apache conf folder.
All other files are from the Tomcat5.5\conf folder

Anyone who can help me with this?

Regards
/Jimi

-
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. /manager only gives the directory listing

2005-09-18 Thread tomcat

Ah, it worked like a charm! Thanks a bunch, Peter! :)

/Jimi

Quoting Peter Johnson [EMAIL PROTECTED]:


Jimi,

try /manager/html

[EMAIL PROTECTED] wrote:


Hi all,

I have been using Tomcat for some time now, but I still feel like a 
newbie in

most regards. At least when it comes to configuring it.
Tomcat has been working great, together with Apache 2, for several 
months now.

But now, I find myself wanting to use the manager webapp for the first time.
But it doesn't work. When I try to go to /manager all I get from 
Tomcat is the

directory listing of the manager-folder. I know this request is handled
by Tomcat, because I have the required JKMount's in the Apache 
httpd.conf file,

and at the bottom of the directory listing it says Apache Tomcat/5.5.9.
[SNIP]





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



newbie question: Tomcat/Apache settings

2005-07-01 Thread Hong wu
Hi,

I have apache 1.3.x and tomcat 4.x installed on XP machine.

apache is running at port 80 and tomcat running on port 8080.  it
seems that tomcat has its own web server, even i stopped the apache
server process, tomcat was able to run on its own.

my question is: how to integrate apache and tomcat?  i think a
simpler form to ask is: how to setup apache/tomcat so that apache
serves the HTML/SHTML requests, and tomcat serving JSP/Servlets, while
both running on port 80?

please forgive me if this question has been posted and replied in the
past, i am new to the list... thanks!

hong

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



Re: newbie question: Tomcat/Apache settings

2005-07-01 Thread Mark Thomas
Have a look at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html 
for an overview of the different type of connectors. You need the web 
server type rather than the HTTP type.


You should use the mod_jk with Apache.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html

You should use CoyoteConnector with JkCoyoteHandler for Tomcat.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyotejk.html

If you will only be accessing Tomcat through Apache, you can remove the 
HTTP connector on port 8080 but I would leave this until everything else 
is working.


HTH,

Mark


Hong wu wrote:

Hi,

I have apache 1.3.x and tomcat 4.x installed on XP machine.

apache is running at port 80 and tomcat running on port 8080.  it
seems that tomcat has its own web server, even i stopped the apache
server process, tomcat was able to run on its own.

my question is: how to integrate apache and tomcat?  i think a
simpler form to ask is: how to setup apache/tomcat so that apache
serves the HTML/SHTML requests, and tomcat serving JSP/Servlets, while
both running on port 80?

please forgive me if this question has been posted and replied in the
past, i am new to the list... thanks!

hong

-
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: Simple JavaBeans applications not working (newbie question)

2005-05-09 Thread Michael Strorm

--- Wendy Smoak [EMAIL PROTECTED] wrote:
 Before you continue, you might shut down Tomcat and
 delete the 'work' 
 directory associated with this webapp to make sure
 you're starting fresh. 
 (I assume such a thing exists in version 5, I'm
 still using 4.1.)

The work directory still exists in v5.5; it wasn't
necessary to delete it in this case (having figured
out from the first reply that the misnamed package was
the problem). Caching *did* occur to me as a potential
problem, however.

It's notable that for some pages, the error doesn't
always appear, or often different errors appear on
successive refreshes. I suspect that *that* is a
caching issue (and also that it is common enough to
have been explained several times elsewhere, so this
isn't a question, just an observation).

- MS 





___ 
Yahoo! Messenger - want a free and easy way to contact your friends online? 
http://uk.messenger.yahoo.com

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



Re: Simple JavaBeans applications not working (newbie question); FIXED!

2005-05-08 Thread Michael Strorm
--- Anoop kumar V [EMAIL PROTECTED] wrote:
  Everything works perfectly fine in your jsp and
 bean except that the 
  package mentioned in your bean (Beany.java) file
 seems incorrect

Aaawwrrgh! (Bangs head against wall several
dozen times)
Thank you. That was such a stupid mistake; I should
have spotted it. If there is any excuse it is that I'd
had what *looked* like the same problem with two
earlier attempts; the package name was not the problem
there. Because I thought this was the same problem, I
probably didn't consider the obvious answer again.

Really, though; this is a great example of trying too
hard, and missing what was staring me in the face.

  Also you do not need to place a web.xml in the
 WEB-INF folder - I mean its 
  optional since tomcat5.X 

That's okay; it seems to work *without* the web.xml
file, but not with it(!) I'll have a look at that
sometime.

 Another thing I noticed that you have placed your
 bean as a jar in the 
 WEB-INF/lib directory

Yes; I was trying lots of things out to get it to
work;  I originally did as you described.

Thanks for the help,

- MS



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



Re: Simple JavaBeans applications not working (newbie question)

2005-05-08 Thread QM
On Sat, May 07, 2005 at 01:39:50PM -0400, Anoop kumar V wrote:
: Another thing I noticed that you have placed your bean as a jar in the
: WEB-INF/lib directory - while this works perfectly the practice is to put
: custom class files in the WEB-INF/classes directory as just .class files
: under their respective folders (as per package declaration)..

What practice would this be?

Some would argue that placing your classes in JAR files permits better
organization/grouping than a flat space under WEB-INF classes.

Per the spec, the only difference between WEB-INF/classes and
WEB-INF/lib is that the former is searched first.

-QM

-- 

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.org/

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



Re: Simple JavaBeans applications not working (newbie question)

2005-05-08 Thread Wendy Smoak
From: Michael Strorm [EMAIL PROTECTED]
   skeleton/WEB-INF/lib/subapp/Beany.class
Jar files go in WEB-INF/lib.  Classes go under WEB-INF/classes in a 
directory structure matching the package name.  What package statement does 
Beany.java contain?

   org.apache.jasper.JasperException:
   /subapp/skeleton.jsp(2,0) The
   value for the useBean class attribute
   subclass.Beany is invalid.
Shouldn't that be 'subapp.Beany' and not 'subclass.Beany'?  That's why I 
asked, above, about the package statement.

Before you continue, you might shut down Tomcat and delete the 'work' 
directory associated with this webapp to make sure you're starting fresh. 
(I assume such a thing exists in version 5, I'm still using 4.1.)

You're close, just change one thing at a time until you figure it out.
--
Wendy Smoak 


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


Simple JavaBeans applications not working (newbie question)

2005-05-07 Thread Michael Strorm
Hi,

First off, let me apologise for the level of detail in
this message; if possible, I'd have made it shorter.

Anyway, I'm trying to learn J2EE; Tomcat seemed like a
good choice to learn the underlying technology, rather
than a particular JSP/Servlet container's deployment
tool. I can get 'plain' JSP pages working fine.

Unfortunately, I'm having major problems developing my
own Javabeans applications for Tomcat; they all fail
as shown below. The demos that come with Tomcat work
fine (although I can't get the demo at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample
to work; However- that's another story)

I understand that I should simply be able to drop the
directory structure containing my program into
$CATALINA_HOME/webapps, restart Tomcat (I'm using
5.5.7) and have it work.
Its contents (root:root ownership, Tomcat running as
root) is:-
skeleton
skeleton/subapp
skeleton/subapp/skeleton.jsp
skeleton/WEB-INF
skeleton/WEB-INF/classes
skeleton/WEB-INF/lib
skeleton/WEB-INF/lib/subapp
skeleton/WEB-INF/lib/subapp/Beany.class
skeleton/WEB-INF/lib/subapp/Beany.java
skeleton/WEB-INF/lib/subapp.jar
skeleton/WEB-INF/web.xml
Contents of files listed at end of message.

Here's what happens when I try to run it:-
(1) When I try to access
   
http://localhost:8080/skeleton/subapp/skeleton.jsp
with the setup as above, I get
HTTP Status 404 - Servlet
org.apache.jsp.subapp.skeleton_jsp
is not available
message Servlet
org.apache.jsp.subapp.skeleton_jsp
is not available

(2) If I move skeleton/WEB-INF/lib/subapp to
skeleton/WEB-INF/classes/subapp,
I get
HTTP STATUS 500 - EXCEPTION REPORT
The server encountered an internal error ()
that prevented it from fulfilling this
request.
EXCEPTION
javax.servlet.ServletException: Wrapper
cannot find servlet class
org.apache.jsp.subapp.skeleton_jsp
or a class it depends on
   

org.apache.catalina.valves.ErrorReportValve.invoke
   
(ErrorReportValve.java:105)
[... SNIP ...]
java.lang.Thread.run(Thread.java:595)

ROOT CAUSE
java.lang.ClassNotFoundException:
org.apache.jsp.subapp.skeleton_jsp
   
org.apache.catalina.loader.WebappClassLoader.loadClass
   
(WebappClassLoader.java:1332)
[... SNIP ...]
java.lang.Thread.run(Thread.java:595)

(3) If I remove the deployment descriptor altogether,
I get:-
HTTP STATUS 500 - EXCEPTION REPORT
The server encountered an internal error ()
that prevented it from fulfilling this
request.
EXCEPTION
org.apache.jasper.JasperException:
/subapp/skeleton.jsp(2,0) The
value for the useBean class attribute
subclass.Beany is invalid.
   
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
[... SNIP
...]
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

In short, it fails; in three noticeably different
ways, granted; but it still
fails. What on EARTH am I doing wrong or missing out?!
I'd really appreciate
some feedback on this. Thank you in advance.


Here are the files:-

** SKELETON.JSP:
html
jsp:useBean id=beanId class=subclass.Beany
scope=session /
headtitleFoo Bar/title/head
body
h1Foo Bar/h1
Duzzy wuzzy was a duck; ducky fuzzy duck a wuzz blah
blah some more yak.
/body
/html
---
** WEB.XML
?xml version=1.0 encoding=ISO-8859-1?
!-- Copyright 2004 The Apache [SNIP] --
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

  display-nameDisplay Name/display-name
  description
 Display Description
  /description

!-- JSPC servlet mappings start --

servlet
   
servlet-nameorg.apache.jsp.subapp.skeleton_jsp/servlet-name
   
servlet-classorg.apache.jsp.subapp.skeleton_jsp/servlet-class
/servlet

servlet-mapping
   
servlet-nameorg.apache.jsp.subapp.skeleton_jsp/servlet-name
   
url-pattern/subapp/skeleton.jsp/url-pattern
/servlet-mapping

!-- JSPC servlet mappings end --

---
---
** BEANY.JAVA
package subapp;

public class Beany
{
   private int first;

   /** Public no-args constructor */
   public Beany()
   {
  first = 404;
   }

   public int getFirst()
   {
  return first;
   }
   public void setFirst(int first)
   {
  this.first = first;
   }

   public String stringy = Original Value;
   

Re: Simple JavaBeans applications not working (newbie question)

2005-05-07 Thread Anoop kumar V
Michael,

Everything works perfectly fine in your jsp and bean except that the package 
mentioned in your bean (Beany.java) file seems incorrect:
It is:

** BEANY.JAVA
package subapp;


It should be:

** BEANY.JAVA
package subclass;

Or else an alternative is to change the folder in which the bean is to 
subapp from subclass to match the package name...

Also you do not need to place a web.xml in the WEB-INF folder - I mean its 
optional since tomcat5.X (maybe earlier - someone please correct if I am 
wrong).. and if web.xml is not present the defauly web.xml settings will be 
applied.

Hope that helps,
Anoop

On 5/7/05, Michael Strorm [EMAIL PROTECTED] wrote:
 
 Hi,
 
 First off, let me apologise for the level of detail in
 this message; if possible, I'd have made it shorter.
 
 Anyway, I'm trying to learn J2EE; Tomcat seemed like a
 good choice to learn the underlying technology, rather
 than a particular JSP/Servlet container's deployment
 tool. I can get 'plain' JSP pages working fine.
 
 Unfortunately, I'm having major problems developing my
 own Javabeans applications for Tomcat; they all fail
 as shown below. The demos that come with Tomcat work
 fine (although I can't get the demo at
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample
 to work; However- that's another story)
 
 I understand that I should simply be able to drop the
 directory structure containing my program into
 $CATALINA_HOME/webapps, restart Tomcat (I'm using
 5.5.7) and have it work.
 Its contents (root:root ownership, Tomcat running as
 root) is:-
 skeleton
 skeleton/subapp
 skeleton/subapp/skeleton.jsp
 skeleton/WEB-INF
 skeleton/WEB-INF/classes
 skeleton/WEB-INF/lib
 skeleton/WEB-INF/lib/subapp
 skeleton/WEB-INF/lib/subapp/Beany.class
 skeleton/WEB-INF/lib/subapp/Beany.java
 skeleton/WEB-INF/lib/subapp.jar
 skeleton/WEB-INF/web.xml
 Contents of files listed at end of message.
 
 Here's what happens when I try to run it:-
 (1) When I try to access
 
 http://localhost:8080/skeleton/subapp/skeleton.jsp
 with the setup as above, I get
 HTTP Status 404 - Servlet
 org.apache.jsp.subapp.skeleton_jsp
 is not available
 message Servlet
 org.apache.jsp.subapp.skeleton_jsp
 is not available
 
 (2) If I move skeleton/WEB-INF/lib/subapp to
 skeleton/WEB-INF/classes/subapp,
 I get
 HTTP STATUS 500 - EXCEPTION REPORT
 The server encountered an internal error ()
 that prevented it from fulfilling this
 request.
 EXCEPTION
 javax.servlet.ServletException: Wrapper
 cannot find servlet class
 org.apache.jsp.subapp.skeleton_jsp
 or a class it depends on
 
 org.apache.catalina.valves.ErrorReportValve.invoke
 
 (ErrorReportValve.java:105)
 [... SNIP ...]
 java.lang.Thread.run(Thread.java:595)
 
 ROOT CAUSE
 java.lang.ClassNotFoundException:
 org.apache.jsp.subapp.skeleton_jsp
 
 org.apache.catalina.loader.WebappClassLoader.loadClass
 
 (WebappClassLoader.java:1332)
 [... SNIP ...]
 java.lang.Thread.run(Thread.java:595)
 
 (3) If I remove the deployment descriptor altogether,
 I get:-
 HTTP STATUS 500 - EXCEPTION REPORT
 The server encountered an internal error ()
 that prevented it from fulfilling this
 request.
 EXCEPTION
 org.apache.jasper.JasperException:
 /subapp/skeleton.jsp(2,0) The
 value for the useBean class attribute
 subclass.Beany is invalid.
 
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(
 DefaultErrorHandler.java:39)
 [... SNIP
 ...]
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 In short, it fails; in three noticeably different
 ways, granted; but it still
 fails. What on EARTH am I doing wrong or missing out?!
 I'd really appreciate
 some feedback on this. Thank you in advance.
 
 
 Here are the files:-
 
 ** SKELETON.JSP:
 html
 jsp:useBean id=beanId class=subclass.Beany
 scope=session /
 headtitleFoo Bar/title/head
 body
 h1Foo Bar/h1
 Duzzy wuzzy was a duck; ducky fuzzy duck a wuzz blah
 blah some more yak.
 /body
 /html
 ---
 ** WEB.XML
 ?xml version=1.0 encoding=ISO-8859-1?
 !-- Copyright 2004 The Apache [SNIP] --
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 
 display-nameDisplay Name/display-name
 description
 Display Description
 /description
 
 !-- JSPC servlet mappings start --
 
 servlet
 
 servlet-nameorg.apache.jsp.subapp.skeleton_jsp/servlet-name
 
 servlet-classorg.apache.jsp.subapp.skeleton_jsp/servlet-class
 /servlet
 
 servlet-mapping
 
 servlet-nameorg.apache.jsp.subapp.skeleton_jsp/servlet-name
 
 url-pattern/subapp/skeleton.jsp/url-pattern
 /servlet-mapping
 
 !-- JSPC servlet mappings end --
 
 ---
 ---
 ** BEANY.JAVA
 package 

Re: Simple JavaBeans applications not working (newbie question)

2005-05-07 Thread Anoop kumar V
Another thing I noticed that you have placed your bean as a jar in the 
WEB-INF/lib directory - while this works perfectly the practice is to put 
custom class files in the WEB-INF/classes directory as just .class files 
under their respective folders (as per package declaration)..

IMO the lib folders should only contain jar files that represent generic 
functionality as opposed to customised project specific class files in the 
classes folder.

regards,
Anoop 

On 5/7/05, Anoop kumar V [EMAIL PROTECTED] wrote:
 
 Michael,
 
 Everything works perfectly fine in your jsp and bean except that the 
 package mentioned in your bean (Beany.java) file seems incorrect:
 It is:
 
 ** BEANY.JAVA
 package subapp;
 
 
 It should be:
 
 ** BEANY.JAVA
 package subclass;
 
 Or else an alternative is to change the folder in which the bean is to 
 subapp from subclass to match the package name...
 
 Also you do not need to place a web.xml in the WEB-INF folder - I mean its 
 optional since tomcat5.X (maybe earlier - someone please correct if I am 
 wrong).. and if web.xml is not present the defauly web.xml settings will 
 be applied.
 
 Hope that helps,
 Anoop
 
 On 5/7/05, Michael Strorm [EMAIL PROTECTED] wrote:
  
  Hi,
  
  First off, let me apologise for the level of detail in
  this message; if possible, I'd have made it shorter.
  
  Anyway, I'm trying to learn J2EE; Tomcat seemed like a
  good choice to learn the underlying technology, rather 
  than a particular JSP/Servlet container's deployment
  tool. I can get 'plain' JSP pages working fine.
  
  Unfortunately, I'm having major problems developing my
  own Javabeans applications for Tomcat; they all fail 
  as shown below. The demos that come with Tomcat work
  fine (although I can't get the demo at
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample 
  to work; However- that's another story)
  
  I understand that I should simply be able to drop the
  directory structure containing my program into
  $CATALINA_HOME/webapps, restart Tomcat (I'm using
  5.5.7) and have it work. 
  Its contents (root:root ownership, Tomcat running as
  root) is:-
  skeleton
  skeleton/subapp
  skeleton/subapp/skeleton.jsp
  skeleton/WEB-INF
  skeleton/WEB-INF/classes 
  skeleton/WEB-INF/lib
  skeleton/WEB-INF/lib/subapp
  skeleton/WEB-INF/lib/subapp/Beany.class
  skeleton/WEB-INF/lib/subapp/Beany.java
  skeleton/WEB-INF/lib/subapp.jar
  skeleton/WEB-INF/web.xml 
  Contents of files listed at end of message.
  
  Here's what happens when I try to run it:-
  (1) When I try to access
  
  http://localhost:8080/skeleton/subapp/skeleton.jsp 
  with the setup as above, I get
  HTTP Status 404 - Servlet
  org.apache.jsp.subapp.skeleton_jsp
  is not available
  message Servlet
  org.apache.jsp.subapp.skeleton_jsp 
  is not available
  
  (2) If I move skeleton/WEB-INF/lib/subapp to
  skeleton/WEB-INF/classes/subapp,
  I get
  HTTP STATUS 500 - EXCEPTION REPORT
  The server encountered an internal error () 
  that prevented it from fulfilling this
  request.
  EXCEPTION
  javax.servlet.ServletException: Wrapper
  cannot find servlet class
  org.apache.jsp.subapp.skeleton_jsp 
  or a class it depends on
  
  org.apache.catalina.valves.ErrorReportValve.invoke
  
  (ErrorReportValve.java:105)
  [... SNIP ...]
  java.lang.Thread.run(Thread.java:595)
  
  ROOT CAUSE 
  java.lang.ClassNotFoundException:
  org.apache.jsp.subapp.skeleton_jsp
  
  org.apache.catalina.loader.WebappClassLoader.loadClass
  
  (WebappClassLoader.java:1332)
  [... SNIP ...] 
  java.lang.Thread.run(Thread.java:595)
  
  (3) If I remove the deployment descriptor altogether,
  I get:-
  HTTP STATUS 500 - EXCEPTION REPORT
  The server encountered an internal error () 
  that prevented it from fulfilling this
  request.
  EXCEPTION
  org.apache.jasper.JasperException:
  /subapp/skeleton.jsp(2,0) The
  value for the useBean class attribute 
  subclass.Beany is invalid.
  
  org.apache.jasper.compiler.DefaultErrorHandler.jspError(
  DefaultErrorHandler.java:39)
  [... SNIP
  ...]
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802) 
  
  In short, it fails; in three noticeably different
  ways, granted; but it still
  fails. What on EARTH am I doing wrong or missing out?!
  I'd really appreciate
  some feedback on this. Thank you in advance.
  
  
  Here are the files:-
  
  ** SKELETON.JSP:
  html
  jsp:useBean id=beanId class=subclass.Beany
  scope=session / 
  headtitleFoo Bar/title/head
  body
  h1Foo Bar/h1
  Duzzy wuzzy was a duck; ducky fuzzy duck a wuzz blah
  blah some more yak.
  /body
  /html 
  ---
  ** WEB.XML
  ?xml version=1.0 encoding=ISO-8859-1?
  !-- Copyright 2004 The Apache [SNIP] --
  web-app xmlns= http://java.sun.com/xml/ns/j2ee;
  
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  
  xsi:schemaLocation= 

Newbie question

2005-05-05 Thread Mário Gamito
Hi,

Sorry for this newbie question :(

I've just installed Tomcat 5.5 for Linux and so far so good, except...
that i've installed also Tomcat Administration module (not the Manager
one) and it asks me for a login and a password and i can't find how to
define it.

I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost
saying to uncoment the valve and another two files, but i don't know how
to set the login and the password.

Any help would be apreciated.

Warm Regards,
Mário Gamito

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



Re: Newbie question

2005-05-05 Thread Markus Schönhaber
Am Donnerstag, 5. Mai 2005 20:30 schrieb Mário Gamito:

 I've just installed Tomcat 5.5 for Linux and so far so good, except...
 that i've installed also Tomcat Administration module (not the Manager
 one) and it asks me for a login and a password and i can't find how to
 define it.

 I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost
 saying to uncoment the valve and another two files, but i don't know how
 to set the login and the password.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access

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



Re: Newbie question

2005-05-05 Thread Lutz Zetzsche
Hi Mário,

Am Donnerstag, 5. Mai 2005 20:30 schrieb Mário Gamito:
 Hi,

 Sorry for this newbie question :(

 I've just installed Tomcat 5.5 for Linux and so far so good,
 except... that i've installed also Tomcat Administration module (not
 the Manager one) and it asks me for a login and a password and i
 can't find how to define it.

 I see a file named admin.xml in
 $CATALINA_HOME/conf/Catalina/localhost saying to uncoment the valve
 and another two files, but i don't know how to set the login and the
 password.

you can do that in the following file: 

$CATALINA_HOME/conf/tomcat-users.xml

For using the Tomcat Manager and the Tomcat Administration, you need two 
set up two additional roles there:

manager
admin

Then you have to assign these roles to a user you would like to use for 
the login.


Best wishes

Lutz

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



Re: Newbie question

2005-05-05 Thread Mott Leroy
See -
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access
From what I remember, admin access follows that same rules as manager 
app access, so the instructions on that page are the same except the 
role should be admin not manager.

Mário Gamito wrote:
Hi,
Sorry for this newbie question :(
I've just installed Tomcat 5.5 for Linux and so far so good, except...
that i've installed also Tomcat Administration module (not the Manager
one) and it asks me for a login and a password and i can't find how to
define it.
I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost
saying to uncoment the valve and another two files, but i don't know how
to set the login and the password.
Any help would be apreciated.
Warm Regards,
Mário Gamito
-
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]


Newbie Question: conext.xml

2005-04-26 Thread Bob Bronson
Hello everyone,
I'm very new to Tomcat so pardon me if this is an easy question.
I *have* read the relevant documentation (several times) and that 
really just made matters worse. Sometimes the documentation seems a bit 
incomplete. I've tried several things the documentation says should 
work without success. Probably it's my lack of understanding.

As an aside, speaking of incomplete documentation, if you go to:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html; you 
will see there is a section entitled, Automatic Application 
Deployment. The third bullet point has a link to Default Context. 
This link does not work in the downloaded version of TC's documentation 
although it works fine in the online version. I guess somebody forgot 
something.

--
Let me explain what I want to do. I'm hoping someone could tell me 
where I'm going wrong, in a polite way. :)

I'm trying to use TC 5.5.9 on Win 2k.
I want the document base directory (the Context's docBase) for my 
default web application to be something other than ROOT. Please don't 
ask, why?, this is a simplification of a different but equivalent 
problem.

When I start TC, CATALINA_BASE is set to C:\MyConfigs. Here is what 
the initial underlying directory structure looks like:

C:\MyConfig\
 +-conf\
 |   +-context.xml
 |   +-server.xml
 |   +-web.xml
 +-Sites\
 |   +-Test 1\
 |   |   +-site\
 |   |   |   +-public_html\
 |   |   |   |   +-ROOTXXX\
 |   |   |   |   |   +-index.html

I want my docBase to be ROOTXXX instead of ROOT (again, this is 
an over-simplification but illustrates the problem).

Here is my server.xml from the conf directory above:
Server port=10035 shutdown=SHUTDOWN debug=0
 Service name=Catalina
   Connector port=80 /
   Engine name=ENGINE_1 defaultHost=localhost
 Host name=localhost appBase=Sites\Test 1\site\public_html /
   /Engine
 /Service
/Server
Here is my context.xml from the conf directory above:
Context path= docBase=ROOTXXX /
In the TC docs for Context 
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html), 
it lists four bullet points that describe different places you can put 
the context.xml file. I tried to follow each of these bullet points. 
For each bullet point I first used a context file named context.xml 
and then I tried ROOT.xml. Here's what I saw:

Bullet 1: $CATALINA_HOME/conf/context.xml
-
I placed context.xml in the conf directory. This is consistent with 
the directory structure shown above. Tomcat seemed to start just fine 
but when I browse to the default context (http://localhost) I get a 
blank page. I then renamed context.xml to ROOT.xml. This had no 
effect. It still didn't work. According to the TC docs, it should work, 
right?

Bullet 2: 
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default
-
I placed context.xml in the directory conf/ENGINE_1/localhost and 
renamed context.xml to context.xml.default, as per the 
documentation. This didn't work. I received a blank page again. I then 
renamed context.xml.default to ROOT.xml and it worked! Hmmm, why 
did it work? At least it's what I wanted. But why didn't 
context.xml.default work? The TC docs say it should.

Bullet 3: $CATALINA_HOME/conf/[enginename]/[hostname]/
--
I didn't really understand this option since it didn't tell me what to 
name the file, so I skipped this option.

Bullet 4: /META-INF/context.xml
---
Another failure. I named the file context.xml and then I tried 
ROOT.xml. Neither worked, despite the TC documentation claims.

So, I'm kind of at a loss. I was successful with Bullet 2 but only when 
I renamed context.xml to ROOT.xml. None of the other attempts 
worked, despite what the TC documentation said. Maybe there's another 
doc I need to read. I don't know. It's just so confusing. Can someone 
tell me why only #2 worked and then only when I named the file 
ROOT.xml? Why didn't the Bullets 1  4 work and what does #3 even mean? 
It's very frustrating.

Thanks for looking at this.
Bob 


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


RE: Newbie Question: conext.xml

2005-04-26 Thread Fritz Schneider
Bob,

Welcome, fellow newbie! I struggled with this one also. It turns out that
the context element for a root directory MUST be nested inside the host
element in server.xml. The relevant documentation reads:

You may define as many Context elements as you wish. Each such Context MUST
have a unique context path, which is defined by the path attribute. In
addition, you MUST define a Context with a context path equal to a
zero-length string. This Context becomes the default web application for
this virtual host, and is used to process all requests that do not match any
other Context's context path.

Fritz

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 12:14 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie Question: conext.xml

Hello everyone,

[snip...]
Let me explain what I want to do. I'm hoping someone could tell me 
where I'm going wrong, in a polite way. :)

I'm trying to use TC 5.5.9 on Win 2k.

I want the document base directory (the Context's docBase) for my 
default web application to be something other than ROOT. Please don't 
ask, why?, this is a simplification of a different but equivalent 
problem.

[snip...]


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



Re: Newbie Question: conext.xml

2005-04-26 Thread Bob Bronson
Hello Fritz,
Thank you for the welcome. I have comments below
- Original Message - 
From: Fritz Schneider [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org; 'Bob 
Bronson' [EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 3:22 PM
Subject: RE: Newbie Question: conext.xml


Bob,
Welcome, fellow newbie! I struggled with this one also. It turns out 
that
the context element for a root directory MUST be nested inside the 
host
element in server.xml. The relevant documentation reads:

I don't think this is right. First, here's another quote form the TC 
docs:
In addition to nesting Context elements inside a Host element, you can 
also store them... then there are 4 bullet points listed which I 
refered to in my original posting.

The TC goes on to say: Please note that for tomcat 5, unlike tomcat 
4.x, it is NOT recommended to place Context elements directly in the 
server.xml file.

So, it looks like it should NOT be in the server.xml. And, I was 
actually able to get it working without putting it in server.xml.



You may define as many Context elements as you wish. Each such 
Context MUST
have a unique context path, which is defined by the path attribute. 
In
addition, you MUST define a Context with a context path equal to a
zero-length string. This Context becomes the default web application 
for
this virtual host, and is used to process all requests that do not 
match any
other Context's context path.

yes, I knowthis quote preceeds the four bullet points. I must have 
read this a dozen times.


Fritz
-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 12:14 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie Question: conext.xml
Hello everyone,
[snip...]
Let me explain what I want to do. I'm hoping someone could tell me
where I'm going wrong, in a polite way. :)
I'm trying to use TC 5.5.9 on Win 2k.
I want the document base directory (the Context's docBase) for 
my
default web application to be something other than ROOT. Please don't
ask, why?, this is a simplification of a different but equivalent
problem.

[snip...]
-
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: conext.xml

2005-04-26 Thread Hassan Schroeder
Fritz Schneider wrote:
Welcome, fellow newbie! I struggled with this one also. It turns out that
the context element for a root directory MUST be nested inside the host
element in server.xml. 
No, no, no. That's simply not true. I have multiple installations
of 5.5.x systems running and not one has a Context element inside
the server.xml.
The dead simplest approach is to put ROOT.xml as
  $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml
Within that ROOT.xml file you can specify the docbase as ROOT
or WhAtTheHeyEver or any appropriate arbitrary path...
The name of the file is a Tomcat convention; the docbase *path*
you specify is entirely up to you.

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED] 

I want the document base directory (the Context's docBase) for my 
default web application to be something other than ROOT. Please don't 
ask, why?, this is a simplification of a different but equivalent 
problem.

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Newbie Question: conext.xml

2005-04-26 Thread Bob Bronson
Hassan,
I know you are 100% correct...
But using the $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml 
approach is only one of 4 documented approaches (and the only approach 
I was able to get working).

Why don't the other three work? And why can't I name the file 
context.xml, as the documentation indicates.

- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Cc: 'Bob Bronson' [EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 3:46 PM
Subject: Re: Newbie Question: conext.xml


Fritz Schneider wrote:
Welcome, fellow newbie! I struggled with this one also. It turns out 
that
the context element for a root directory MUST be nested inside the 
host
element in server.xml.
No, no, no. That's simply not true. I have multiple installations
of 5.5.x systems running and not one has a Context element inside
the server.xml.
The dead simplest approach is to put ROOT.xml as
  $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml
Within that ROOT.xml file you can specify the docbase as ROOT
or WhAtTheHeyEver or any appropriate arbitrary path...
The name of the file is a Tomcat convention; the docbase *path*
you specify is entirely up to you.

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED]

I want the document base directory (the Context's docBase) for 
my default web application to be something other than ROOT. Please 
don't ask, why?, this is a simplification of a different but 
equivalent problem.

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
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: conext.xml

2005-04-26 Thread Hassan Schroeder
Bob Bronson wrote:
But using the $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml 
approach is only one of 4 documented approaches (and the only approach I 
was able to get working).

Why don't the other three work? 
Well, I'm absolutely certain that this:
 4: {appbase}/{docbase}/META-INF/context.xml
:: works just fine -- I use that approach sometimes.
Both of these:
 1: $CATALINA_HOME/conf/context.xml
 2: $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default
:: I've never tried, so I'd have to fiddle around a bit. But since
the other two work fine, and to me represent the optimal approach to
managing my webapps, I'm not overly motivated :-)
As always, YMMV!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


session newbie question

2005-01-11 Thread Casas, Claudia
Hello Everyone,
Can anyone tell me how to activate sessions in tomcat?
I migrated a project from to tomcat5.5 and apache2 and everything seems
to work, except the sessions are being lost.
I am thinking there should be a variable somewhere in the server.xml to
specify that I want to allow sessions, but not sure.
 
 
!--Claudia Casas-
 


RE: Newbie question on Database and struts

2005-01-04 Thread Phillip Qin
In the controller, read form values, query the database, store result in
Collection and save it to session or request-scope. On jsp, use iterate tag
to display elements in Collection.

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: December 23, 2004 10:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts


I am new to struts (even new to java also)
 
I have one form developed in struts. What i want to do is depending on form
values, run sql qry in Action form, get result set and display it on JSP.
 
I have created a databean for the results. But with result set - How to
create array of databeans ? and how to post it on JSP ?
 
if anybody can pass me the samples pls would be of great help
 
regards
Manisha
 
 
 
 


-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

!DSPAM:41cb8bf8315651569845034!


Re: Newbie question on Database and struts

2004-12-27 Thread Dustin
This isn't exactly answering your question but...

Check out iBATIS SQL Maps:

http://www.ibatis.com/common/sqlmaps.html

I won't go into how to use it. They have an excellent
manual and tutorial.

It is ridiculously easy to learn and use. Especially
with Struts. Basically, you set up a query in an XML
file, make a call, and it will return the results as a
bean you've created or a list of beans.

My description, I'm sure, does not do this software
justice. It has numerous features. Check it out.
You'll never look back.

Dustin


--- Manisha Sathe [EMAIL PROTECTED] wrote:

 I am new to struts (even new to java also)
  
 I have one form developed in struts. What i want to
 do is depending on form values, run sql qry in
 Action form, get result set and display it on JSP.
  
 I have created a databean for the results. But with
 result set - How to create array of databeans ? and
 how to post it on JSP ?
  
 if anybody can pass me the samples pls would be of
 great help
  
 regards
 Manisha
  
  
  
  
 
   
 -
 Do you Yahoo!?
  Read only the mail you want - Yahoo! Mail
SpamGuard.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Newbie question on Database and struts

2004-12-27 Thread Amit Gupta
I tried SQLMaps. It is wonderful but is there any easy manual (except PDF that 
come with ibatis)  available on net? 

Amit Gupta

-Original Message-
From: Dustin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 28, 2004 1:28 AM
To: Tomcat Users List
Subject: Re: Newbie question on Database and struts

This isn't exactly answering your question but...

Check out iBATIS SQL Maps:

http://www.ibatis.com/common/sqlmaps.html

I won't go into how to use it. They have an excellent
manual and tutorial.

It is ridiculously easy to learn and use. Especially
with Struts. Basically, you set up a query in an XML
file, make a call, and it will return the results as a
bean you've created or a list of beans.

My description, I'm sure, does not do this software
justice. It has numerous features. Check it out.
You'll never look back.

Dustin


--- Manisha Sathe [EMAIL PROTECTED] wrote:

 I am new to struts (even new to java also)
  
 I have one form developed in struts. What i want to
 do is depending on form values, run sql qry in
 Action form, get result set and display it on JSP.
  
 I have created a databean for the results. But with
 result set - How to create array of databeans ? and
 how to post it on JSP ?
  
 if anybody can pass me the samples pls would be of
 great help
  
 regards
 Manisha
  
  
  
  
 
   
 -
 Do you Yahoo!?
  Read only the mail you want - Yahoo! Mail
SpamGuard.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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 on Database and struts

2004-12-23 Thread John Najarian
Hi Manisa,

   I'm not sure what you mean by 'create array of databeans'.  Your result
set contains multiple rows, your bean should be able to return the entire
result set.  Why do you need an array of a bean?

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 23, 2004 7:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts

I am new to struts (even new to java also)
 
I have one form developed in struts. What i want to do is depending on form
values, run sql qry in Action form, get result set and display it on JSP.
 
I have created a databean for the results. But with result set - How to
create array of databeans ? and how to post it on JSP ?
 
if anybody can pass me the samples pls would be of great help
 
regards
Manisha
 
 
 
 


-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.



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



RE: Newbie question on Database and struts

2004-12-23 Thread Amit Gupta
Hi Manisha,

 

I was also struggling with problem similar to you. I came you with following: 

 

package forklifts;

import org.apache.struts.action.Action;

import org.apache.struts.action.ActionForward;

import org.apache.struts.action.ActionMapping;

import org.apache.struts.action.ActionForm;

 

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import java.util.Collection;

import java.sql.*;

 

public final class registrationAction extends Action {

 

public ActionForward execute(ActionMapping mapping,

 ActionForm form,

 HttpServletRequest request,

 HttpServletResponse response)

throws Exception {

javax.sql.DataSource dataSource;

Connection conn;

try {

dataSource = getDataSource(request);

conn = dataSource.getConnection();

Statement stmt = null;

ResultSet rs = null;

String sqlquery=select * from my_table where 
username='+request.getParameter(username)+';

stmt = conn.createStatement();

rs=stmt.executeQuery(sqlquery);

if(rs.next())

{

  request.setAttribute(msg,h5 class=errorUser 
with username '+request.getParameter(username)+' is already registered. Try 
another username./h5 );

if(rs!=null)

  rs.close();

if(stmt!=null)

  stmt.close();

if(conn!=null)

  conn.close();

return mapping.findForward(success);

}

else

{

  sqlquery=Insert into my_table set 
username='+request.getParameter(username)+',password='+request.getParameter(password)+',FirstName='+request.getParameter(FirstName)+',LastName='+request.getParameter(LastName)+',Address='+request.getParameter(Address)+',Street='+request.getParameter(Street)+',City='+request.getParameter(City)+',State='+request.getParameter(State)+',Country='+request.getParameter(Country)+',Zip='+request.getParameter(Zip)+',Email='+request.getParameter(Email)+',Phone1='+request.getParameter(Phone)+',title='+request.getParameter(title)+',company='+request.getParameter(company)+',website='+request.getParameter(website)+',fax='+request.getParameter(fax)+';

  try

  {

stmt = conn.createStatement();

stmt.executeUpdate(sqlquery);

request.setAttribute(msg,h5 
class=successYour account created successfully/h5);

if(rs!=null)

  rs.close();

if(stmt!=null)

  stmt.close();

if(conn!=null)

  conn.close();

return mapping.findForward(success);}

  catch(SQLException ex1)

  {

request.setAttribute(msg,h5 
class=errorSorry! regsitration failed/h5 );

return mapping.findForward(sqlexception); 


  }

}

  }

  catch(SQLException ex)

  {

request.setAttribute(msg,h5 class=errorSorry! 
regsitration failed/h5 );

  return mapping.findForward(sqlexception); 

  }

}

  }

 

 

I hope above code will give you sufficient idea you to pass data to JSP page.

 

 

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 24, 2004 8:55 AM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts

 

I am new to struts (even new to java also)

 

I have one form developed in struts. What i want to do is depending on form 
values, run sql qry in Action form, get result set and display it on JSP.

 

I have created a databean for the results. But with result set - How to create 
array of databeans ? and how to post it on JSP ?

 

if anybody can pass me the samples pls would be of great help

 

regards

Manisha

 

 

 

 

 



-

Do you Yahoo!?

 Read only the mail you want - Yahoo! Mail SpamGuard.



RE: Newbie question on Database and struts

2004-12-23 Thread Amit Gupta
Following code fetch records from database table , populate them to hastable 
and create vector of these hashtables . Then we pass this vector to JSP through 
request attribute.

Action class
import org.apache.struts.action.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.*;
import org.apache.commons.beanutils.*;
public class viewWsForkliftsAction extends org.apache.struts.action.Action {

public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) {
HttpSession session=request.getSession();
if(session.getAttribute(username)!=null)
{

request.setAttribute(username, 
session.getAttribute(username));


}
javax.sql.DataSource dataSource;
Connection conn;
try {
dataSource = getDataSource(request);
conn = dataSource.getConnection();
Statement stmt = null;
ResultSet rs = null;
 String sqlquery=select * from my_table;
 sqlquery=sqlquery+and dcc_forklifts.status=\Active\;
stmt = conn.createStatement();
rs= stmt.executeQuery(sqlquery);
ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
Vector rows=new Vector();
while(rs.next())
{   
rs=stmt.getResultSet();
Hashtable  fields=new Hashtable();
for(int j=1; j=numberOfColumns;j++)

{

fields.put(rsmd.getColumnName(j),rs.getString(rsmd.getColumnName(j)));  
}
rows.add(fields);   
}   
request.setAttribute(rows,rows);
conn.close();   

return 
mapping.findForward(request.getParameter(page));
} 
catch (SQLException sqle) 
{

request.setAttribute(val,sqle);
return mapping.findForward(sqlexception); 
}
   }
}

In JSP page , I access this vector as

Vector rows =(Vector)request.getAttribute(rows);

int sz=rows.size();
for(int i=0;i sz;i++)
 {
Hashtable row=(Hashtable)rows.get(i);

...
}


With regards,

Amit Gupta
-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 24, 2004 8:55 AM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts

I am new to struts (even new to java also)
 
I have one form developed in struts. What i want to do is depending on form 
values, run sql qry in Action form, get result set and display it on JSP.
 
I have created a databean for the results. But with result set - How to create 
array of databeans ? and how to post it on JSP ?
 
if anybody can pass me the samples pls would be of great help
 
regards
Manisha
 
 
 
 


-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.


RE: Newbie question on Database and struts

2004-12-23 Thread Manisha Sathe
what i mean to array of databeans means -
 
I have created employee data bean and for each row of result set i am creating 
one object of bean.  So in a way i will get array of databeans.
 
regards
Manisha
 


John Najarian [EMAIL PROTECTED] wrote:
Hi Manisa,

I'm not sure what you mean by 'create array of databeans'. Your result
set contains multiple rows, your bean should be able to return the entire
result set. Why do you need an array of a bean?

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 23, 2004 7:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts

I am new to struts (even new to java also)

I have one form developed in struts. What i want to do is depending on form
values, run sql qry in Action form, get result set and display it on JSP.

I have created a databean for the results. But with result set - How to
create array of databeans ? and how to post it on JSP ?

if anybody can pass me the samples pls would be of great help

regards
Manisha






-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.



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



-
Do you Yahoo!?
 All your favorites on one personal page – Try My Yahoo!

Re: Newbie question on Database and struts

2004-12-23 Thread Sharad Ramadas
You dont need an array of data beans. Store your data bean in an
ArrayList or in a Vector.

e.g

ArrayList empList = new ArrayList();
Employee emp = null;
while(rst.next())
{
   emp = new Employee();
   /*
  Fill the employee object with the records from the database.

   */

 empList.add(emp);
}

return empList;

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



RE: Newbie question on Database and struts

2004-12-23 Thread Goel, Manish Kumar
Hi Manisha,
this looks very simple thing in action class you can just set that array of 
databean in
request attribute and get it back on jsp
like:
req.setAttribute(databeanarray,databeanarray);


cheers
Manish

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Friday, December 24, 2004 9:40 AM
To: Tomcat Users List
Subject: RE: Newbie question on Database and struts


what i mean to array of databeans means -

I have created employee data bean and for each row of result set i am creating 
one object of bean.  So in a way i will get array of databeans.

regards
Manisha



John Najarian [EMAIL PROTECTED] wrote:
Hi Manisa,

I'm not sure what you mean by 'create array of databeans'. Your result
set contains multiple rows, your bean should be able to return the entire
result set. Why do you need an array of a bean?

-Original Message-
From: Manisha Sathe [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 7:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie question on Database and struts

I am new to struts (even new to java also)

I have one form developed in struts. What i want to do is depending on form
values, run sql qry in Action form, get result set and display it on JSP.

I have created a databean for the results. But with result set - How to
create array of databeans ? and how to post it on JSP ?

if anybody can pass me the samples pls would be of great help

regards
Manisha






-
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.



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



-
Do you Yahoo!?
 All your favorites on one personal page - Try My Yahoo!
***
Information contained in this email message is intended only for use of the
individual or entity named above. If the reader of this message is not the
intended recipient, or the employee or agent responsible to deliver it to
the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please immediately notify the
[EMAIL PROTECTED] and destroy the original message.
**

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



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 Shapira, Yoav

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]



RE: newbie question

2004-10-28 Thread Ben Souther
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]



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 Filip Hanik \(lists\)
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]



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 Filip Hanik \(lists\)
did you look at the other connectors?
catalina.bat run - will tell you the message, try that
Filip

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


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



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 Steve Kirk
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 / 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 Filip Hanik \(lists\)
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 at context path /tomcat-docs from URL
file:C:\t
omcat\jakarta-tomcat-5.0.28\webapps\tomcat-docs
Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /TomProj from URL
file:C:\tomca
t\jakarta-tomcat-5.0.28\webapps\TomProj
Oct 28, 2004 12:59:06 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:C:\tomcat
\jakarta-tomcat-5.0.28\webapps\webdav
Oct 28, 2004 12:59:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Oct 28, 2004 12:59:07 PM org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use:
JVM_Bind
Oct 28, 2004 12:59:07 PM org.apache.jk.common.ChannelSocket init

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 Shapira, Yoav

Hi,
The shutdown port is also in server.xml, at the top of the file.

Yoav Shapira http://www.yoavshapira.com


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

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

RE: newbie question

2004-10-28 Thread Steve Kirk
I would advise that you read the doc, because it only takes a few mins, and
then you'll understand what's really happening ;)

But to get you going, assuming that you have not changed the standard
server.xml significantly:

1. Change any active connector ports.  The one you mention below is the
first, but you need to change any others that are active, that are the same
in both servers.

2. Locate the server tag (at the top of the file) and change its shutdown
port (it can't be the same for both, otherwise both servers try to run a
shutdown listener service on the same port) e.g. Server port=8005
shutdown=SHUTDOWN debug=0

These are the main things.  If you have customised server.xml at all you
might want to be sure there are no others by searching for port in
server.xml in your text editor, and this will highlight all the possible
places where port numbers might need to be changed.  Note that any parts of
server.xml commented out between !-- and -- are not active so you can
ignore them for the time being.

 -Original Message-
 From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 28 October 2004 20:19
 To: [EMAIL PROTECTED]
 Subject: RE: newbie question
 
 
 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

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

2004-10-28 Thread Steve Kirk
Some more thooughts that came to mind after hitting send:

You might find it easier to use server-minimal.xml if you are using TC
5.0.28 standalone. It's much smaller and easier to follow if you are just
getting started.  Restart the server after you have replaced the file.

Re your changed TC 5.0.28 config below, two minor points: 
(a) you have not edited 8080 to 80 in the comment line.  Of course this
has no functional impact, but might cause to to mis-read the config file
later.  It's a good habit to always review and edit the comments associated
with your code when you edit the code itself.
(b) you have left the redirectPort as 8443 in both cases.  Again, this won't
affect you at first, and might even be what you want, but if it's not what
you want, it might catch you our later if you don't change it now.

 -Original Message-
 From: Steve Kirk [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 28 October 2004 20:27
 To: 'Tomcat Users List'
 Subject: RE: newbie question
 
 
 I would advise that you read the doc, because it only takes a 
 few mins, and
 then you'll understand what's really happening ;)
 
 But to get you going, assuming that you have not changed the standard
 server.xml significantly:
 
 1. Change any active connector ports.  The one you mention 
 below is the
 first, but you need to change any others that are active, 
 that are the same
 in both servers.
 
 2. Locate the server tag (at the top of the file) and change 
 its shutdown
 port (it can't be the same for both, otherwise both servers 
 try to run a
 shutdown listener service on the same port) e.g. Server port=8005
 shutdown=SHUTDOWN debug=0
 
 These are the main things.  If you have customised server.xml 
 at all you
 might want to be sure there are no others by searching for port in
 server.xml in your text editor, and this will highlight all 
 the possible
 places where port numbers might need to be changed.  Note 
 that any parts of
 server.xml commented out between !-- and -- are not active 
 so you can
 ignore them for the time being.
 
  -Original Message-
  From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] 
  Sent: Thursday 28 October 2004 20:19
  To: [EMAIL PROTECTED]
  Subject: RE: newbie question
  
  
  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

RE: newbie question

2004-10-28 Thread Ben Souther
On Thu, 2004-10-28 at 15:34, Luke FERNANDEZ wrote:
 Am I spamming if I say thanks to all of you for your help? 
No, there is nothing wrong with a thank you.

  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.
It's a great way to get out of a bind.  Out of courtesy to everyone else
though, it's good to exhaust all other avenues before posting to the
list. These include, the Tomcat docs, Google, and the archives to this
list. You may have noticed this link on your way to signing up for the
list: http://www.catb.org/~esr/faqs/smart-questions.html
There are a handful of questions that get asked here every single day,
bloating the list with endless repetition. They are all answered in the
FAQ so they often get ignored.

 
 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? 
Before you go too far down the road, you might want to look at log4j.
http://logging.apache.org/log4j
It's easy to set up and use, and it can be tuned to throttle the amount
of logging you see without having to change your soure.  There are
others out there too but this IMHO is the best.

 
 
 But those are standard quibbles about cryptic error messages.thanks
 again for your help.
 
 Luke
Good luck with your project,
-Ben


















 
 
 
 
 
  [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

RE: [tomcat] Newbie question about getting first servlet working in tomcat on iseries v5r2

2004-09-04 Thread Ernesto Echeverría
To me this sounds like a directory misplacement.

Can you elaborate on:

What directories have you placed your files into?
Are you using the ROOT webapp?
Have you tried the tomcat sample applications? 
If you type the html file name into the url does your app work?

Other tip I could give you now has to do with working the simple
configurations first and then climbing on the complexity ladder.
For example why don't you try your webapp in the tomcat instance directly
and later worrying about configuring mod_jk passthru.

Regards.

José Ernesto Echeverría
[EMAIL PROTECTED]

 

-Original Message-
From: Ralph A. Borriello [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 03 de Septiembre de 2004 11:50 p.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] Newbie question about getting first servlet working in
tomcat on iseries v5r2

Hello all,  

I work on an as/400 (iseries) version v5r2. I have setup a apache/tomcat
server instance under the ibm http server and am trying to get a simple
helloservlet servlet to work properly. The server instance is referencing
version 1.3 of the jdk. I have compiled the java using jedit and jcompile
plugin on windows and copied and pasted the html and class files to the
iseries via a mapped drive  

The sample is a html file and a class file. It is a simple form where the
servlet just mirrors back the name that was typed on the form. When I enter
the name, I get a page cannot be found error. The url is modified to look
like this: http://10.126.2.2:8082/HelloServlet?user_name=asdasdf (as I typed
asdasdf).

I have included the source for the html, the java program, and the server
logs. In them it does say that it cant find the servlet called HelloServlet,
but it is there. Do I have to package the files in a .war file ?? I have
scoured the documenation that I could find on the iseries and the tomcat
sites and have tried many things but cant get it working. Any help would be
greatly appreciated. 
Thanks for taking the time to read this :) 

If this is the wrong forum for this type of question or if there is a better
one, please let me know. 

All the object authorites give full access to *public and the user that the
server is running under. 

The httpd.conf file: 


# Apache Default server configuration
LoadModule jk_module /QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM

# General setup directives
HotBackup Off
CgiConvMode %%MIXED/MIXED%%
TimeOut 3
KeepAlive Off
DocumentRoot /www/apachedft/htdocs
AddLanguage en .en

# Deny most requests for any file
JkWorkersFile /www/apachedft/conf/workers.properties
JkLogFile /www/apachedft/logs/jk.log
JkLogLevel Error
JkMount /calc mytomcat
ServerUserID QTMHHTTP
DirectoryIndex index.html
Directory /
  order allow,deny
  deny from all
  Options -Indexes -ExecCGI -includes
  AllowOverride Limit Options
/Directory

# Allow requests for files in document root Directory
/www/apachedft/htdocs
  order allow,deny
  allow from all
/Directory
Listen *:8082
LogLength 10485760
LogLevel Debug
AccessFileName .htaccess






The html file:


htmlbody
form method=GET action=HelloServlet 
Please enter your name: 
input type=text name=user_name 
input type=submit value=OK
/form
/body/html






the java program: 

/**
 * This program is an example from the book Internet
 * programming with Java by Svetlin Nakov. It is freeware. 
 * For more information: http://www.nakov.com/books/inetjava/
 */
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*; 
 
public class HelloServlet extends HttpServlet { 
public void doGet (HttpServletRequest aRequest, 
HttpServletResponse aResponse) 
throws ServletException, IOException { 
aResponse.setContentType(text/html); 
ServletOutputStream out = aResponse.getOutputStream(); 
String userName = aRequest.getParameter(user_name); 
out.println(html); 
out.println(head); 
out.println(\ttitleHello Servlet/title); 
out.println(/head); 
out.println(body); 
out.println(\th1Hello,  + userName + /h1); 
out.println(/body/html); 
}
}





Portion of the web.xml file: 


servlet  
   servlet-name  
  servlet1 
   /servlet-name 
   servlet-class 
  HelloServlet 
   /servlet-class
   load-on-startup   
  3
   /load-on-startup  
   /servlet-name
   servlet-class
  HelloServlet
   /servlet-class   
   load-on-startup  
  3   
   /load-on-startup 
/servlet
servlet-mapping 
   servlet-name 
  servlet1
   /servlet-name
   url-pattern  
  /*  
   /url-pattern 
servlet-mapping  
   servlet-name  
  servlet1 
   /servlet-name 
   url-pattern   
  /*   
   /url-pattern  
/servlet-mapping 
 /web-app





the error_log

Newbie question about getting first servlet working in tomcat on iseries v5r2

2004-09-03 Thread Ralph A. Borriello
Hello all,  

I work on an as/400 (iseries) version v5r2. I have setup a apache/tomcat server 
instance under the ibm http server and am trying to get a simple helloservlet servlet 
to work properly. The server instance is referencing version 1.3 of the jdk. I have 
compiled the java using jedit and jcompile plugin on windows and copied and pasted the 
html and class files to the iseries via a mapped drive  

The sample is a html file and a class file. It is a simple form where the servlet just 
mirrors back the name that was typed on the form. When I enter the name, I get a page 
cannot be found error. The url is modified to look like this: 
http://10.126.2.2:8082/HelloServlet?user_name=asdasdf (as I typed asdasdf).

I have included the source for the html, the java program, and the server logs. In 
them it does say that it cant find the servlet called HelloServlet, but it is there. 
Do I have to package the files in a .war file ?? I have scoured the documenation that 
I could find on the iseries and the tomcat sites and have tried many things but cant 
get it working. Any help would be greatly appreciated. 
Thanks for taking the time to read this :) 

If this is the wrong forum for this type of question or if there is a better one, 
please let me know. 

All the object authorites give full access to *public and the user that the server is 
running under. 

The httpd.conf file: 


# Apache Default server configuration
LoadModule jk_module /QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM

# General setup directives
HotBackup Off
CgiConvMode %%MIXED/MIXED%%
TimeOut 3
KeepAlive Off
DocumentRoot /www/apachedft/htdocs
AddLanguage en .en

# Deny most requests for any file
JkWorkersFile /www/apachedft/conf/workers.properties
JkLogFile /www/apachedft/logs/jk.log
JkLogLevel Error
JkMount /calc mytomcat
ServerUserID QTMHHTTP
DirectoryIndex index.html
Directory /
  order allow,deny
  deny from all
  Options -Indexes -ExecCGI -includes
  AllowOverride Limit Options
/Directory

# Allow requests for files in document root
Directory /www/apachedft/htdocs
  order allow,deny
  allow from all
/Directory
Listen *:8082
LogLength 10485760
LogLevel Debug
AccessFileName .htaccess






The html file:


htmlbody 
form method=GET action=HelloServlet 
Please enter your name: 
input type=text name=user_name 
input type=submit value=OK 
/form 
/body/html






the java program: 

/** 
 * This program is an example from the book Internet 
 * programming with Java by Svetlin Nakov. It is freeware. 
 * For more information: http://www.nakov.com/books/inetjava/ 
 */ 
import java.io.*; 
import javax.servlet.*; 
import javax.servlet.http.*; 
 
public class HelloServlet extends HttpServlet { 
public void doGet (HttpServletRequest aRequest, 
HttpServletResponse aResponse) 
throws ServletException, IOException { 
aResponse.setContentType(text/html); 
ServletOutputStream out = aResponse.getOutputStream(); 
String userName = aRequest.getParameter(user_name); 
out.println(html); 
out.println(head); 
out.println(\ttitleHello Servlet/title); 
out.println(/head); 
out.println(body); 
out.println(\th1Hello,  + userName + /h1); 
out.println(/body/html); 
} 
}





Portion of the web.xml file: 


servlet  
   servlet-name  
  servlet1 
   /servlet-name 
   servlet-class 
  HelloServlet 
   /servlet-class
   load-on-startup   
  3
   /load-on-startup  
   /servlet-name
   servlet-class
  HelloServlet
   /servlet-class   
   load-on-startup  
  3   
   /load-on-startup 
/servlet
servlet-mapping 
   servlet-name 
  servlet1
   /servlet-name
   url-pattern  
  /*  
   /url-pattern 
servlet-mapping  
   servlet-name  
  servlet1 
   /servlet-name 
   url-pattern   
  /*   
   /url-pattern  
/servlet-mapping 
 /web-app





the error_log messages: 

ZSRV_MSG0018: File /www/apachedft/htdocs/HelloServlet does not exist, refeerer: 
http://10.126.2.2:8082/helloform.html
ZSRV_MSG0016: URI in request GET /HelloServlet?user_name=asdasdf HTTP/1.1   is not 
valid, referer: http://10.126.2.2:8082/helloform.html  



the jvmstdout.txt log: 


Starting up StartupThread   
Starting tomcat. Check logs/tomcat.log for error messages   
cannot load servlet name: servlet1: HelloServlet
Library /QSYS.LIB/QHTTPSVR.LIB/QZTCJK.SRVPGM loaded 
Running ... 
End waiting 
Running fine




Sorry for the length of the email, I could not find any other errors anywhere. 

RE: Newbie Question

2004-07-25 Thread Aris Javier

Yes! two different machines...
I will name it as machine 1 and machine 2...

machine 1 and machine 2 both have CES_DS datasource name
declared.. MS Access DB resides inside machine 2... so machine
2 does not have any problems.. while machine 1 have problems
connecting to MS Access DB inside machine 2...

if Sun's jdbc:odbc:CES_DS connection is wrong for machine 1 then
what connection will i use?

Machine 1 have Exchange Server while Machine 2 have Sharepoint Server...
just for info...

Please Help Me!!! 

-Original Message-
From:   Dave Bender [mailto:[EMAIL PROTECTED]
Sent:   Fri 7/23/2004 9:11 PM
To: Tomcat Users List
Cc: 
Subject:RE: Newbie Question
Can you provide some more detail?  When you say you're running two servers accessing 
an Access database, do you mean two different machines or just different server 
instances on the same machine?  

If you're trying to access Access from a different machine, you may have to use a 
different jdbc driver.  I don't think the Sun jdbc:odbc driver can reach a data source 
running on a different machine.

Dave

-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 4:55 AM
To: Tomcat Users List
Subject: Newbie Question


Hello!

This is a newbie question... =)

I have two servers running accessing single MS Access database

I used jdbc:odbc:CES_DS in server.xml

CES_DS is the data source name I used for both servers... pointing
to MS Access DB...

However this error occurs...

org.apache.commons.dbcp.DbcpException: java.sql.SQLException:
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid
path.  Make sure that the path name is spelled correctly and that you
are connected to the server on which the file resides.

How to access a single database using two servers using DSN
connection...?

Please Help!

Thanks a lot!

aris

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

Newbie Question

2004-07-23 Thread Aris Javier
Hello!

This is a newbie question... =)

I have two servers running accessing single MS Access database

I used jdbc:odbc:CES_DS in server.xml

CES_DS is the data source name I used for both servers... pointing
to MS Access DB...

However this error occurs...

org.apache.commons.dbcp.DbcpException: java.sql.SQLException:
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid
path.  Make sure that the path name is spelled correctly and that you
are connected to the server on which the file resides.

How to access a single database using two servers using DSN
connection...?

Please Help!

Thanks a lot!

aris

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



RE: Newbie Question

2004-07-23 Thread Dave Bender
Can you provide some more detail?  When you say you're running two servers accessing 
an Access database, do you mean two different machines or just different server 
instances on the same machine?  

If you're trying to access Access from a different machine, you may have to use a 
different jdbc driver.  I don't think the Sun jdbc:odbc driver can reach a data source 
running on a different machine.

Dave

-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED]
Sent: Friday, July 23, 2004 4:55 AM
To: Tomcat Users List
Subject: Newbie Question


Hello!

This is a newbie question... =)

I have two servers running accessing single MS Access database

I used jdbc:odbc:CES_DS in server.xml

CES_DS is the data source name I used for both servers... pointing
to MS Access DB...

However this error occurs...

org.apache.commons.dbcp.DbcpException: java.sql.SQLException:
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid
path.  Make sure that the path name is spelled correctly and that you
are connected to the server on which the file resides.

How to access a single database using two servers using DSN
connection...?

Please Help!

Thanks a lot!

aris

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


hi newbie question----help needed

2004-07-22 Thread Jeyakumaran.C
Hi,
I am newbie to JSP and tomcat.
I tried to write the MyFirstServlet class and failed to do so.

problem1
when I tried to change the port 8080 to 80 in the server.xml then Mozila
browser refuses to open the tomcat welcome page.(But the book I refer
says to change the port).

I compile and did every thing according to the book. But still it gives 

The requested resource
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet) is not
available.

what could be the reason. I went through the previous mail and didn't
get any help.
All the spellings are correct(including cases as I use Linux)
The book stated no need to have web.xml for simple servlets.

Thank you for your great suggestion.

regards,
Jeyakumaran


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



Re: hi newbie question----help needed

2004-07-22 Thread Thilo Krawietz
Hi,
are sure your tomcat's running at all? You know, that in order to run 
tomcat on port 80, you have to start it with root privileges!
Check this out by running netstat -l . This lists you all open ports on 
your system

Regards,
Thilo
Hi,
I am newbie to JSP and tomcat.
I tried to write the MyFirstServlet class and failed to do so.
problem1
when I tried to change the port 8080 to 80 in the server.xml then Mozila
browser refuses to open the tomcat welcome page.(But the book I refer
says to change the port).
I compile and did every thing according to the book. But still it gives 

The requested resource
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet) is not
available.
what could be the reason. I went through the previous mail and didn't
get any help.
All the spellings are correct(including cases as I use Linux)
The book stated no need to have web.xml for simple servlets.
Thank you for your great suggestion.
regards,
Jeyakumaran
-
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: hi newbie question----help needed

2004-07-22 Thread Shapira, Yoav
Hi,
Don't trust books blindly.  Even when correct, they're often obsolete.

The advice about port 80 is true on unix systems.  Stick to 8080 for now
for simplicity.

And don't rely on the invoker servlet:
http://jakarta.apache.org/tomcat/faq/misc.html#invoker


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Thilo Krawietz [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 4:44 AM
To: Tomcat Users List
Subject: Re: hi newbie questionhelp needed

Hi,

are sure your tomcat's running at all? You know, that in order to run
tomcat on port 80, you have to start it with root privileges!
Check this out by running netstat -l . This lists you all open ports on
your system

Regards,

Thilo

Hi,
I am newbie to JSP and tomcat.
I tried to write the MyFirstServlet class and failed to do so.

problem1
when I tried to change the port 8080 to 80 in the server.xml then
Mozila
browser refuses to open the tomcat welcome page.(But the book I refer
says to change the port).

I compile and did every thing according to the book. But still it
gives

The requested resource
(/ch03/servlet/com.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet) is
not
available.

what could be the reason. I went through the previous mail and didn't
get any help.
All the spellings are correct(including cases as I use Linux)
The book stated no need to have web.xml for simple servlets.

Thank you for your great suggestion.

regards,
Jeyakumaran


-
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: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

Tim




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



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-09 Thread Birt, Jeffrey
I finally got this working

I used the min configuration given in the jk docs of.

jk2.properties: 

# The default port is 8009 but you can use another one
# channelSocket.port=8019

workers2.properties: 

# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

And this works, which means my problem, is in trying to create the Unix
channel.  I don't know why the Unix channel config did not work, heck I
don't even know the difference between a Unix channel and socket
channel!



Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 09, 2004 8:06 AM
To: Tim Wills
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I too am running Linux (Fedora 1).  Another chap posted after me having
similar problems with Windows (IIS).  I've confirmed that apache is
running as user apache which belongs to the group apache.  User tomcat
of the group tomcat owns the tomcat directory (and I'm running tomcat as
user tomcat).  I've added the apache group to the tomcat group (I think)
like this

#usermod -G apache,tomcat apache

I read through some more of the Tomcat 5 docs last night and I'll give
it another whack today.

Thanks,

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 


-Original Message-
From: Tim Wills [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 11:18 PM
To: Birt, Jeffrey
Cc: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable

I had the same Error 503 on Linux (not Windows) and found that was
caused by
Apache running as Nobody. Apache couldn't write to the socket because
the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a
Windows
server so can't be more helpful.

Cheers

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]



Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Birt, Jeffrey
Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




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



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Dale, Matt

I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tonte Pouncil
I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
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: Error 503 Service Temp. Unavailable

2004-07-08 Thread Dale, Matt

The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tonte Pouncil
Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




-
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: Error 503 Service Temp. Unavailable

2004-07-08 Thread Dale, Matt
Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tonte Pouncil
Okay, will do.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:35 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tonté

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt/tomcat/work/jk2.socket

# Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

# Uri mapping
[uri:/examples/*]

# Uri mapping for MyFirst
[uri:/MyFirst/*]

I've added the LoadModule jk2_module etc. in httpd.conf

When Tomcat starts a jk2.shm file is created but no jk2.socket file.
I'm running everything as root (to make it simpler at this point) and
have checked that everything is owned by root (I think).

I'm guessing this is caused by incorrect configuration but I don't have
a clue as to where to look.

Can you guys help a newbie out?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 




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


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



RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Birt, Jeffrey
Arrgg Still no luck.  This is a copy of my error log.  I still can't seem to get 
Apache2 and Tomcat 5 to work together.  I tried creating an emty file called 
jk2.socket in /opt/tomcat/work.  When Apache starts jk2.shm is created and the 
jk2.socket file I created disappeared.  This error report looks like the unix socket 
is not being created but I don't know why.  BTW, I added a group and user called 
tomcat and made tomcat owner of opt/tomcat and added the user apache to the tomcat 
group.  AFAIK this should give Apache appropriate permissions to the needed files in 
teh tomcaat folders.  My jk2.properties file etc are listed with the original post.

Any other ideas guys?  

Thanks,

Jeff_Birt


[Thu Jul 08 14:48:04 2004] [error] channelUn.connect() connect failed 2 No such file 
or directory
[Thu Jul 08 14:48:04 2004] [error] ajp13.connect() failed 
ajp13:/opt/tomcat/work/jk2.socket
[Thu Jul 08 14:48:04 2004] [error] ajp13.service() failed to connect endpoint errno=2 
No such file or directory
[Thu Jul 08 14:48:04 2004] [error] ajp13.service() Error  forwarding 
ajp13:/opt/tomcat/work/jk2.socket 1 1
[Thu Jul 08 14:48:04 2004] [error] lb.service() worker failed 12 for 
ajp13:/opt/tomcat/work/jk2.socket
[Thu Jul 08 14:48:04 2004] [error] lb_worker.service() all workers in error or 
disabled state
[Thu Jul 08 14:48:04 2004] [error] mod_jk2.handler() Error connecting to tomcat 
12, status 503

-Original Message-
From:   Dale, Matt [mailto:[EMAIL PROTECTED]
Sent:   Thu 7/8/2004 10:34 AM
To: Tomcat Users List
Cc: 
Subject:RE: Newbie question: Error 503 Service Temp. Unavailable
Have a read through this, 
http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if 
you have any more specific questions.

But basically you should have a JK2 connector defined in your server.xml, its on port 
8009 by default. And you need to define a worker in your workers2.properties in your 
apache/conf directory that points to this port.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:30
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


Do you know how to do this on a windows box?

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:28 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



The file must exist and be readable and writable by both the tomcat user and the 
apache user.

You won't be able to get UNIX sockets working on a windows 2000 box, obviously.

Ta
Matt

-Original Message-
From: Tonte Pouncil [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:24
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable


I am trying to do the same thing as you guys.  I have a windows 2000 box.  How did you 
configure the two so far?  And what goes in the jk2.socket file?   

Tont

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 10:16 AM
To: Tomcat Users List
Subject: RE: Newbie question: Error 503 Service Temp. Unavailable



I think you might have to create the file yourself.

touch /opt/tomcat/work/jk2.socket

Ta
Matt

-Original Message-
From: Birt, Jeffrey [mailto:[EMAIL PROTECTED]
Sent: 08 July 2004 16:11
To: [EMAIL PROTECTED]
Subject: Newbie question: Error 503 Service Temp. Unavailable


Hello all,

I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play
nice together via mod_jk2 connector.  Both work fine separately and I
get the dreaded 503 Service Temp. Unavailable error.  (which seems to
have come up a lot on various list but I've yet to find  a solution).

I've been following along with this guide.
http://www.opq.se/sxs/internet_serving/c875.html

I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both
Apache and Tomcat were installed form RPM's, and as mentioned both seem
to work fine separately.  The only relevant thing I've found in the logs
is in the Apache error_log and is as follows:

[error] chanelUn.connect() connect failed 2 No such file or directory
[error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket
Etc.

My jk2.properties is as follows:
# jk2.properties
# Configured for channel UNIX

# Set the desired handler list
handler.list=apr,request,channelUnix

# UNIX Domain socket location
channelUnix.file=/opt/tomcat/work/jk2.socket

# Dynamic Library
serverRoot=/etc/httpd
apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so

and workers2.properties:
# workers2.properties

# Shared memory handling. Needs to be set.
[shm]
info=Scoreboard. Required for reconfiguration and status with
multiprocess serve
rs
file=/opt/tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

# UNIX domain socket
[channel.un:/opt/tomcat/work/jk2.socket]
tomcatId=localhost:8009
debug=0

# define the worker
[ajp13:/opt/tomcat/work/jk2.socket]
channel=channel.un:/opt

RE: Newbie question: Error 503 Service Temp. Unavailable

2004-07-08 Thread Tim Wills
I had the same Error 503 on Linux (not Windows) and found that was caused by
Apache running as Nobody. Apache couldn't write to the socket because the
owner was tomcat and Nobody was not a member of the group tomcat.

Check your apache error_log and see what it says. I have never run a Windows
server so can't be more helpful.

Cheers

Tim


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



[Resource Not available] Newbie question

2004-06-10 Thread Michael Drewitz
Hi all,
if I try to access the below described servlet from a html- or jsp-file
I get Http 404 Error - Resource not available.
form action=AVG_ValuesServlet method=get name=avg_values_form
../form
I have tried it with the package-name as prefix and the prefix
servlet/, but nothing works.
Whats wrong?
The class-file is located in the defined directory under ../web-inf/classes.
This is the only element of web.xml:
servlet
servlet-nameAVG_ValuesServlet/servlet-name
servlet-classorg.haw.weather.web.AVG_ValuesServlet/servlet-class
/servlet
Thanks in advance, Michael


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


RE: [Resource Not available] Newbie question

2004-06-10 Thread Tim Penhey
You would also need to tell us your servlet-mapping and the directory of the file that 
the
form is in.

Tim

 -Original Message-
 From: Michael Drewitz
 [mailto:[EMAIL PROTECTED]
 Sent: 10 June 2004 11:18
 To: [EMAIL PROTECTED]
 Subject: [Resource Not available] Newbie question


 Hi all,

 if I try to access the below described servlet from a html- or jsp-file
 I get Http 404 Error - Resource not available.

 form action=AVG_ValuesServlet method=get name=avg_values_form
 ../form

 I have tried it with the package-name as prefix and the prefix
 servlet/, but nothing works.
 Whats wrong?

 The class-file is located in the defined directory under ../web-inf/classes.
 This is the only element of web.xml:
 servlet
 servlet-nameAVG_ValuesServlet/servlet-name
 servlet-classorg.haw.weather.web.AVG_ValuesServlet/servlet-class
 /servlet

 Thanks in advance, Michael





 -
 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: Re: [Resource Not available] Newbie question

2004-06-10 Thread Michael Drewitz
Thats the servlet-mapping.
servlet-mapping
 servlet-nameAVG_ValuesServlet/servlet-name
 url-patternorg/haw/weather/web/AVG_ValuesServlet/url-pattern
/servlet-mapping
I've tried the pattern /AVG_ValuesServlet also, but it doesn't work.
The index.html is in the root of the application(in the parent-directory 
of the Web-inf directory).


You would also need to tell us your servlet-mapping and the directory of 
the file that the
form is in.

Tim
if I try to access the below described servlet from a html- or jsp-file
I get Http 404 Error - Resource not available.
form action=AVG_ValuesServlet method=get name=avg_values_form
../form
I have tried it with the package-name as prefix and the prefix
servlet/, but nothing works.
Whats wrong?
The class-file is located in the defined directory under ../web-inf/classes.
This is the only element of web.xml:
servlet
servlet-nameAVG_ValuesServlet/servlet-name
servlet-classorg.haw.weather.web.AVG_ValuesServlet/servlet-class
/servlet
Thanks in advance, Michael

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


RE: Re: [Resource Not available] Newbie question

2004-06-10 Thread Shapira, Yoav

Hi,

Thats the servlet-mapping.
servlet-mapping
  servlet-nameAVG_ValuesServlet/servlet-name
  url-patternorg/haw/weather/web/AVG_ValuesServlet/url-pattern
/servlet-mapping

I've tried the pattern /AVG_ValuesServlet also, but it doesn't work.

What happened?  The latter is a much better mapping.

The index.html is in the root of the application(in the
parent-directory
of the Web-inf directory).

Case matters: it should be WEB-INF and not Web-inf.

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: Changing the 'ROOT' webapp (newbie question)

2004-05-18 Thread Harry Mantheakis
Definitely smart!


 Yoav, I think you're a smartass, but I mean that in the nicest and most
 complimentary way possible  ;-)
 
 You're a constant source of help and relief to tomcat users on this
 list.  I am always interested to read your posts and take a great
 interest in what you have to say!
 
 Thanks!


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



RE: Changing the 'ROOT' webapp (newbie question)

2004-05-17 Thread Shapira, Yoav

Hi,
You need to define a Context element for your webapp whose path= (the
empty string, not /, not null).  And you need to remove or rename the
ROOT webapp.  The Context element's configuration reference page
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html)
contains more details.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Barnet Wagman [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 15, 2004 12:55 PM
To: [EMAIL PROTECTED]
Subject: Changing the 'ROOT' webapp (newbie question)

By default, when Tomcat gets a request for something like

http://www.some_domain_name.com/
or
http://www.some_domain_name.com

it serves the file webapps/ROOT/index.jsp

What is the preferred way of getting it return the index file of a
different wep app?  I haven't found anything in the conf xml files, the
documentation, or the archives about this (which doesn't mean it isn't
there, just that I didn't see it).  Of course I could just change the
contents of webapps/ROOT, but I suspect there's a better way.


Thanks,

bw



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



RE: Changing the 'ROOT' webapp (newbie question)

2004-05-17 Thread Knight, Digby
I did this with my site, and had the empty string pointing to my /portal
app. Everything worked okay until I put in container-managed security, and
then when restricted pages were redirected to the login jsp, Tomcat seemed
to lose the context completely, so none of my links worked (using
request.getContext() or c:url .../ on the login page except the submit
button.

I stuck in a mini-app under the root to redirect to /portal as a
work-around, but presumably this isn't expected behaviour.

Digby

PS. Yoav, I think I speak for many users on this mailing list who appreciate
your help and don't think you're a smartass, asshole or dick! Keep up the
good work.


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 17 May 2004 14:04
To: Tomcat Users List
Subject: RE: Changing the 'ROOT' webapp (newbie question)



Hi,
You need to define a Context element for your webapp whose path= (the
empty string, not /, not null).  And you need to remove or rename the
ROOT webapp.  The Context element's configuration reference page
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html)
contains more details.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Barnet Wagman [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 15, 2004 12:55 PM
To: [EMAIL PROTECTED]
Subject: Changing the 'ROOT' webapp (newbie question)

By default, when Tomcat gets a request for something like

http://www.some_domain_name.com/
or
http://www.some_domain_name.com

it serves the file webapps/ROOT/index.jsp

What is the preferred way of getting it return the index file of a
different wep app?  I haven't found anything in the conf xml files, the
documentation, or the archives about this (which doesn't mean it isn't
there, just that I didn't see it).  Of course I could just change the
contents of webapps/ROOT, but I suspect there's a better way.


Thanks,

bw



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


-
*
Confidentiality Note: The information contained in this 
message, and any attachments, may contain confidential 
and/or privileged material. It is intended solely for the 
person(s) or entity to which it is addressed. Any review, 
retransmission, dissemination, or taking of any action in 
reliance upon this information by persons or entities other 
than the intended recipient(s) is prohibited. If you received
this in error, please contact the sender and delete the 
material from any computer.
*


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



RE: Changing the 'ROOT' webapp (newbie question)

2004-05-17 Thread Shapira, Yoav

Hi,

PS. Yoav, I think I speak for many users on this mailing list who
appreciate
your help and don't think you're a smartass, asshole or dick! Keep up
the
good work.

Thank you ;) I'm glad to help, and I don't get offended easily, so no
worries ;)

Yoav



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: Changing the 'ROOT' webapp (newbie question)

2004-05-17 Thread Adam Buglass
On Mon, 2004-05-17 at 16:11, Shapira, Yoav wrote:
 Hi,
 
 PS. Yoav, I think I speak for many users on this mailing list who
 appreciate
 your help and don't think you're a smartass, asshole or dick! Keep up
 the
 good work.
 

Yoav, I think you're a smartass, but I mean that in the nicest and most
complimentary way possible  ;-)

You're a constant source of help and relief to tomcat users on this
list.  I am always interested to read your posts and take a great
interest in what you have to say!

Thanks!

 Thank you ;) I'm glad to help, and I don't get offended easily, so no
 worries ;)
 
 Yoav
 
 
 
 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 
 no
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 

Adam Buglass,  
The Golden Freeway,
Department of Child Health,
University of Newcastle-upon-Tyne.
Royal Victoria Infirmary.

(0191) 2023062

Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote. 
~Benjamin Franklin, 1759


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



tomcat stand alone versus IIS plug in...another newbie question!

2004-05-17 Thread Coolguys




Ok is there a difference or is the same program?

I cannot find a specific tomcat download that says IIS plug in

I think (which is dangerous sometimes) that the standalone IS the plug
in and that people intermingle the terms.

Or is it?

When operated within a webserver (IIS/Apache/Etc) there is a separate
plug in that is different from the stand alone tomcat?

TIA

Coolguys!


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



Changing the 'ROOT' webapp (newbie question)

2004-05-15 Thread Barnet Wagman
By default, when Tomcat gets a request for something like
http://www.some_domain_name.com/
or
http://www.some_domain_name.com
it serves the file webapps/ROOT/index.jsp
What is the preferred way of getting it return the index file of a
different wep app?  I haven't found anything in the conf xml files, the
documentation, or the archives about this (which doesn't mean it isn't
there, just that I didn't see it).  Of course I could just change the
contents of webapps/ROOT, but I suspect there's a better way.
Thanks,
bw

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


Another stupid newbie question what is the correct name of Tomcat?

2004-05-14 Thread Coolguys



Is it Apache Tomcat

Just Tomcat?

Is it different for the stand alone version of Tomcat

Is it different if it runs under Apache?

TIA

[EMAIL PROTECTED]

Coolguys!


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



RE: Another stupid newbie question what is the correct name of Tomcat?

2004-05-14 Thread Shapira, Yoav

Hi,
You can prepend Apache in front of all Apache products if you'd like.
You can prepend Jakarta in front of all Jakarta products if you'd like.
All Jakarta products are Apache products by definition.  Tomcat is a
Jakarta product.  So Apache-Jakarta-Tomcat is one name.  Apache Tomcat
is possible, as is Jakarta Tomcat.  It's your choice.

In the J2EE space, Tomcat has reached a level of familiarity where just
Tomcat is enough for people to know what you're talking about.

It's similar to Excel, for example.  Many computer literate people just
call it Excel, though you can call it Microsoft Excel, or even Microsoft
Office Excel if you'd like.

Don't sweat it ;)

But please, don't call it TomCat (capital C) or Tom-cat, as those are
inaccurate.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Coolguys [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 11:07 AM
To: 'Tomcat Users List'
Subject: Another stupid newbie question what is the correct name of
Tomcat?




Is it Apache Tomcat

Just Tomcat?

Is it different for the stand alone version of Tomcat

Is it different if it runs under Apache?

TIA

[EMAIL PROTECTED]

Coolguys!


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



really newbie question on patch level

2004-05-13 Thread Coolguys



The report writer we use from tonbeller software uses Servlets, we use
tomcat on IIS for this.

However our customer want to know the version (no problem) and the Patch
level - problem

How do you tell the patch level of the tomcat server you have
downloaded?

Do you have to install it 1st? Then do a
http://localhost:8080/manager/serverinfo

Command to get the patch level?



Sincerely

Coolguys!


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



RE: really newbie question on patch level

2004-05-13 Thread Shapira, Yoav

Hi,
No such concept existing for tomcat.  The version number is it, as there
are no patches, only new versions.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Coolguys [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 9:24 AM
To: 'Tomcat Users List'
Subject: really newbie question on patch level




The report writer we use from tonbeller software uses Servlets, we use
tomcat on IIS for this.

However our customer want to know the version (no problem) and the
Patch
level - problem

How do you tell the patch level of the tomcat server you have
downloaded?

Do you have to install it 1st? Then do a
http://localhost:8080/manager/serverinfo

Command to get the patch level?



Sincerely

Coolguys!


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



NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Leonard Wolters
Hi,

I've got a question concerning the different REALM available for Tomcat 5.x.
The main (basic) question is that I want to secure my context annex websites
/ jsp
pages. I have some experience with JAAS (JBOSS) and was investigating the
possibility
to use / implement JAAS for Tomcat. After some efforts I stopped since I to
noticed it
would take me to much pain ;-( (I needed to create to much source code hence
it would
take me to much time).

Then I investigated the JDBC Realm and was trying to use this for securing
my website.
The question: Tomcat 5 delivers a pre-installed security JSP example
(/jsp-examples/security/protected) which (as stated in the documentation)
only works with
the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
own implementation)
as well.

Does anyone can provide me some configurations of how to achieve this ?
Basically, I think
I need to change the default JNDI UserBase (MemoryRealm) with my own one
(JDBCRealm for example).
However, is this the only thing I need to do ? If so, please provide me a
server.xml configuration

T.i.a,

Leonard

Leonard Wolters

JTeam B.V.
E: [EMAIL PROTECTED]
T: +31(0)20 486 20 36
M: +31(0)6 24 111 401
F: +31(0)8 48 370 000
W: www.jteam.nl


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



AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Marco Pöhler
Hi Leonard,

this works for me:

  Context path= docBase=/home/user1/trustedfeed debug=0
  ResourceLink name=jdbc/db global=jdbc/db
type=javax.sql.DataSource /
  Realm className=org.apache.catalina.realm.DataSourceRealm
debug=99
  dataSourceName=jdbc/db
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=roles roleNameCol=rolename/
  /Context

Of course, you have to define the jdbc/db Datasource in the
GlobalNamingResources, too.

hth

Marco

---
http://www.optik-preisvergleich.de
http://www.kontaktlinsen-preisvergleich.de


 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 09:22
 An: [EMAIL PROTECTED]
 Betreff: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi,

 I've got a question concerning the different REALM available for
 Tomcat 5.x.
 The main (basic) question is that I want to secure my context
 annex websites
 / jsp
 pages. I have some experience with JAAS (JBOSS) and was investigating the
 possibility
 to use / implement JAAS for Tomcat. After some efforts I stopped
 since I to
 noticed it
 would take me to much pain ;-( (I needed to create to much source
 code hence
 it would
 take me to much time).

 Then I investigated the JDBC Realm and was trying to use this for securing
 my website.
 The question: Tomcat 5 delivers a pre-installed security JSP example
 (/jsp-examples/security/protected) which (as stated in the documentation)
 only works with
 the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
 own implementation)
 as well.

 Does anyone can provide me some configurations of how to achieve this ?
 Basically, I think
 I need to change the default JNDI UserBase (MemoryRealm) with my own one
 (JDBCRealm for example).
 However, is this the only thing I need to do ? If so, please provide me a
 server.xml configuration

 T.i.a,

 Leonard

 Leonard Wolters

 JTeam B.V.
 E: [EMAIL PROTECTED]
 T: +31(0)20 486 20 36
 M: +31(0)6 24 111 401
 F: +31(0)8 48 370 000
 W: www.jteam.nl


 -
 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: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Leonard Wolters
Thanks marco,


However, can I also set this datasource for the Engine
element ? (I thought I read something about a bug, although
I'm not quite sure).

Then, after I specified this new datasource in the either
context or engine element, how do i confiugre the UserDatabase
in the JNDI lookup ? For example:


GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase description=User database that can
be updated and saved
/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams
/GlobalNamingResources

!-- Define the Tomcat Stand-Alone Service --
Service name=Catalina

!-- 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/

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 enableLookups=false redirectPort=8443 
debug=0
protocol=AJP/1.3/

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=org.gjt.mm.mysql.Driver
connectionURL=jdbc:mysql://localhost/build_jplanner
connectionName=*** connectionPassword=**
userTable=JT_USER userNameCol=LOGINNAME 
userCredCol=PASSWORD
userRoleTable=JT_GROUP roleNameCol=NAME/
Host name=localhost debug=0 appBase=webapps 
unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
Logger 
className=org.apache.catalina.logger.FileLogger
directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
/Host
/Engine
/Service

How does the GlobalNamingResources relate to the REALM specified in the
engine element ? Can someone
tell me if the UserBase as specified in the GlobalNamingResources is being
used by for the JSP security
stuff ? (for example the /webapps/jsp-examples/security/protected/login.jsp)

T.i.a,

Leonard


-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 10:45 AM
To: Tomcat Users List
Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


Hi Leonard,

this works for me:

  Context path= docBase=/home/user1/trustedfeed debug=0
  ResourceLink name=jdbc/db global=jdbc/db
type=javax.sql.DataSource /
  Realm className=org.apache.catalina.realm.DataSourceRealm
debug=99
  dataSourceName=jdbc/db
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=roles roleNameCol=rolename/
  /Context

Of course, you have to define the jdbc/db Datasource in the
GlobalNamingResources, too.

hth

Marco

---
http://www.optik-preisvergleich.de
http://www.kontaktlinsen-preisvergleich.de


 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 09:22
 An: [EMAIL PROTECTED]
 Betreff: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi,

 I've got a question concerning the different REALM available for
 Tomcat 5.x.
 The main (basic) question is that I want to secure my context
 annex websites
 / jsp
 pages. I have some experience with JAAS (JBOSS) and was investigating the
 possibility
 to use / implement JAAS for Tomcat. After some efforts I stopped
 since I to
 noticed it
 would take me to much pain ;-( (I needed to create to much source
 code hence
 it would
 take me to much time).

 Then I investigated the JDBC Realm and was trying to use this for securing
 my website.
 The question: Tomcat 5 delivers a pre-installed security JSP example
 (/jsp-examples/security/protected) which (as stated in the documentation)
 only works with
 the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
 own implementation)
 as well.

 Does anyone can provide me some configurations of how to achieve this ?
 Basically, I think
 I need to change the default JNDI UserBase (MemoryRealm) with my own

RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Marco Pöhler
Hi,

 How does the GlobalNamingResources relate to the REALM specified in the
 engine element ? Can someone
 tell me if the UserBase as specified in the GlobalNamingResources is being
 used by for the JSP security
 stuff ? (for example the
 /webapps/jsp-examples/security/protected/login.jsp)

In my thoughts, a realm in the context (or engine) overwrites the global
realm. So if you have defined a security-constraint in your
localhost-applicaions web.xml the user and roles used there for access
control are taken from the database. The memory-realm /tomcat-users.xml
won't be used. The security-constraints in the web.xml looks like:

security-constraint
display-nameAdmin Authentication/display-name
web-resource-collection
web-resource-nameProtected Area/web-resource-name
url-pattern/*/url-pattern
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

hth.

Marco

---
http://www.druckerpatronen--preisvergleich.de
http://www.tintenpatronen-preisvergleich.de

 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 11:21
 An: Tomcat Users List
 Betreff: RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Thanks marco,


 However, can I also set this datasource for the Engine
 element ? (I thought I read something about a bug, although
 I'm not quite sure).

 Then, after I specified this new datasource in the either
 context or engine element, how do i confiugre the UserDatabase
 in the JNDI lookup ? For example:


   GlobalNamingResources
   Environment name=simpleValue
 type=java.lang.Integer value=30/
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase description=User
 database that can
 be updated and saved
   /Resource
   ResourceParams name=UserDatabase
   parameter
   namefactory/name

 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
   /parameter
   /ResourceParams
   /GlobalNamingResources

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Catalina

   !-- 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/

   !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector port=8009 enableLookups=false
 redirectPort=8443 debug=0
 protocol=AJP/1.3/

   !-- Define the top level container in our
 container hierarchy --
   Engine name=Catalina defaultHost=localhost debug=0
   Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true/
   Realm
 className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver

 connectionURL=jdbc:mysql://localhost/build_jplanner
 connectionName=*** connectionPassword=**
   userTable=JT_USER
 userNameCol=LOGINNAME userCredCol=PASSWORD
   userRoleTable=JT_GROUP
 roleNameCol=NAME/
   Host name=localhost debug=0
 appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
   Logger
 className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
   /Host
   /Engine
   /Service

 How does the GlobalNamingResources relate to the REALM specified in the
 engine element ? Can someone
 tell me if the UserBase as specified in the GlobalNamingResources is being
 used by for the JSP security
 stuff ? (for example the
 /webapps/jsp-examples/security/protected/login.jsp)

 T.i.a,

 Leonard


 -Original Message-
 From: Marco Pöhler [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 10:45 AM
 To: Tomcat Users List
 Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi Leonard,

 this works for me:

   Context path= docBase=/home/user1/trustedfeed debug=0
   ResourceLink name=jdbc/db global=jdbc/db
 type=javax.sql.DataSource /
   Realm className=org.apache.catalina.realm.DataSourceRealm
 debug=99
   dataSourceName=jdbc/db
   userTable=users userNameCol

Re: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Adam Hardy
Leonard,
I went the other way. I wrote a login module for tomcat's JAAS 
implementation and recently found it relatively easy to adapt it to 
JBoss. However I see you're going down the JDBC route.

Adam

On 03/23/2004 09:22 AM Leonard Wolters wrote:
Hi,

I've got a question concerning the different REALM available for Tomcat 5.x.
The main (basic) question is that I want to secure my context annex websites
/ jsp
pages. I have some experience with JAAS (JBOSS) and was investigating the
possibility
to use / implement JAAS for Tomcat. After some efforts I stopped since I to
noticed it
would take me to much pain ;-( (I needed to create to much source code hence
it would
take me to much time).
Then I investigated the JDBC Realm and was trying to use this for securing
my website.
The question: Tomcat 5 delivers a pre-installed security JSP example
(/jsp-examples/security/protected) which (as stated in the documentation)
only works with
the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
own implementation)
as well.
Does anyone can provide me some configurations of how to achieve this ?
Basically, I think
I need to change the default JNDI UserBase (MemoryRealm) with my own one
(JDBCRealm for example).
However, is this the only thing I need to do ? If so, please provide me a
server.xml configuration
T.i.a,

Leonard

Leonard Wolters

JTeam B.V.
E: [EMAIL PROTECTED]
T: +31(0)20 486 20 36
M: +31(0)6 24 111 401
F: +31(0)8 48 370 000
W: www.jteam.nl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


another newbie question?

2004-02-12 Thread FRANCOIS Dufour
hello

sombody could tell mee how to increase memory off the jvm?

got only 7mg left after aplication deployed

tanks

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc
_
MSN Search, le moteur de recherche qui pense comme vous !  
http://fr.ca.search.msn.com/

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


RE: another newbie question?

2004-02-12 Thread Shapira, Yoav

Howdy,
Use the -Xmx java runtime option, set via the JAVA_OPTS environment
variable as defined in $CATALINA_HOME/bin/catalina.sh.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 10:55 AM
To: [EMAIL PROTECTED]
Subject: another newbie question?

hello

sombody could tell mee how to increase memory off the jvm?

got only 7mg left after aplication deployed

tanks

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc

_
MSN Search, le moteur de recherche qui pense comme vous !
http://fr.ca.search.msn.com/


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



RE: another newbie question?

2004-02-12 Thread Edson Alves Pereira
In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 12 de fevereiro de 2004 12:59
 Para: Tomcat Users List
 Assunto:  RE: another newbie question?
 
 
 Howdy,
 Use the -Xmx java runtime option, set via the JAVA_OPTS environment
 variable as defined in $CATALINA_HOME/bin/catalina.sh.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 10:55 AM
 To: [EMAIL PROTECTED]
 Subject: another newbie question?
 
 hello
 
 sombody could tell mee how to increase memory off the jvm?
 
 got only 7mg left after aplication deployed
 
 tanks
 
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 _
 MSN Search, le moteur de recherche qui pense comme vous !
 http://fr.ca.search.msn.com/
 
 
 -
 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]
 


RE: another newbie question?

2004-02-12 Thread STOCKHOLM, Raymond
If you don't set enough memory, you will have some day OutOfMemoryException,
that's sure, 
or you Garbage Collector will work as mad, and your application will stall.

-Message d'origine-
De : Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 12 février 2004 18:10
À : 'Tomcat Users List'
Objet : RE: another newbie question?


In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

 --
 De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 12 de fevereiro de 2004 12:59
 Para: Tomcat Users List
 Assunto:  RE: another newbie question?
 
 
 Howdy,
 Use the -Xmx java runtime option, set via the JAVA_OPTS environment
 variable as defined in $CATALINA_HOME/bin/catalina.sh.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 12, 2004 10:55 AM
 To: [EMAIL PROTECTED]
 Subject: another newbie question?
 
 hello
 
 sombody could tell mee how to increase memory off the jvm?
 
 got only 7mg left after aplication deployed
 
 tanks
 
 [EMAIL PROTECTED]
 administrateur http://entre-nous.qc.tc
 
 _
 MSN Search, le moteur de recherche qui pense comme vous !
 http://fr.ca.search.msn.com/
 
 
 -
 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: another newbie question?

2004-02-12 Thread Shapira, Yoav

Howdy,

   In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

Someone else already corrected the above wrong statement, but I wanted to point out 
-Xmx is not the initial size of the heap, it's the maximum size.  Setting -Xmx does 
not affect initial heap size.

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]



dumb newbie question

2004-01-30 Thread Jonas Stricker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello all,

I would like to know wether there´s a not too sophisticated method to
clean up the output of JSPs that are rendered by tomcat.
Reason: I am supposed to produce some XML dynamically, which has to be
parsed again by some - well, let´s say: not _very_ wise guys.
So it would be kind of useful for me to get rid of the empty lines in
the HTML/XML/what-ever output. In the end it doesn´t look to nice, too. :)
Thanks for any hint or advice,
Jonas Stricker, Munich/Germany
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAGj3DVLLBXbwFLdERAhc0AJ9Of/HWjldOvVawSbmhsoXjwNBlyQCdGx2x
Qz7d2BrM4oS6nRK1feYAEcA=
=JhwE
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: dumb newbie question

2004-01-30 Thread Ralph Einfeldt

You can define a servlet filter that parses the 
response stream.

Depending on what you have to parse there may be tools
that can help you to do the parsing and stripping.

 -Original Message-
 From: Jonas Stricker [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 30, 2004 12:20 PM
 To: [EMAIL PROTECTED]
 Subject: dumb newbie question
 
 I would like to know wether there´s a not too sophisticated method to
 clean up the output of JSPs that are rendered by tomcat.
 
 Reason: I am supposed to produce some XML dynamically, which has to be
 parsed again by some - well, let´s say: not _very_ wise guys.
 So it would be kind of useful for me to get rid of the empty lines in
 the HTML/XML/what-ever output. In the end it doesn´t look to 
 nice, too. :)
 

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



  1   2   3   4   >