RE: Tomcat 4 and Apache

2002-02-24 Thread Kristian Duske

Hi Brian,

 I think I see the problem.
 you do NOT need the line:
 AddModule mod_jk.c

Thanks for your tip, but this didn't fix it for me. I'm still at a loss
here.

Regards
Kristian


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




Re: Tomcat 4 and Apache

2002-02-24 Thread Pascal Chong

You need to uncomment ServerName directive in httpd.conf and change the
default server name there to your server's Fully Qualified Domain Name or IP
address. The error you are seeing is because ServerName has not been
changed.

Regards,
Pascal Chong


- Original Message -
From: Kristian Duske [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, February 24, 2002 6:10 PM
Subject: RE: Tomcat 4 and Apache


 Hi Brian,

  I think I see the problem.
  you do NOT need the line:
  AddModule mod_jk.c

 Thanks for your tip, but this didn't fix it for me. I'm still at a loss
 here.

 Regards
 Kristian


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



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




JSP Taglib Explanation please

2002-02-24 Thread Pavel Brun

Hello everyone,

Is there anyone here that helped develop the JSP Tag concept
that could explain why JSP taglib bodies go through their 
bodies twice (going through doStartTag, doAfterBody and doEndTag twice)?

This would be extremely helpful for me so I can understand
how to proceed with certain applications.

Thank you

Paul

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




RE: JSP Taglib Explanation please

2002-02-24 Thread Brian Adams

Pavel I have tons of taglibs on my app and it does not go through it twice.
it actually runs the code twice?


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 9:21 AM
To: Tomcat User
Subject: JSP Taglib Explanation please


Hello everyone,

Is there anyone here that helped develop the JSP Tag concept
that could explain why JSP taglib bodies go through their 
bodies twice (going through doStartTag, doAfterBody and doEndTag twice)?

This would be extremely helpful for me so I can understand
how to proceed with certain applications.

Thank you

Paul

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



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




RE: JSP Taglib Explanation please

2002-02-24 Thread Pavel Brun

so, for example, if you have a taglib like:

xtags:transform xml=... xsl=.../

this line would run all the code associated with the tag twice???

That is what I am getting...is this by design??

Paul

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 10:31 AM
To: Tomcat Users List
Subject: RE: JSP Taglib Explanation please


Pavel I have tons of taglibs on my app and it does not go through it twice.
it actually runs the code twice?


-Original Message-
From: Pavel Brun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 9:21 AM
To: Tomcat User
Subject: JSP Taglib Explanation please


Hello everyone,

Is there anyone here that helped develop the JSP Tag concept
that could explain why JSP taglib bodies go through their 
bodies twice (going through doStartTag, doAfterBody and doEndTag twice)?

This would be extremely helpful for me so I can understand
how to proceed with certain applications.

Thank you

Paul

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



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



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




Tomcat Icons?

2002-02-24 Thread Andrzej Jan Taramina

Anyone know of a place I can find 32x32 icons for Tomcat (and JBoss, 
Apache, etc.) so I can set up convenient shortcuts to start/stop/manage the 
servers?

Thanks!
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




RE: Help Preventing VM Tomcat Crash

2002-02-24 Thread Kennedy Clark

Shawn,
Excellent advice!  The ByteArrayOutputStream worked beautifully.  Thank 
you.  I'm in the process of downloading 1.4 and will see if that works too.
Again, thanks a bunch!
Kennedy

At 03:31 PM 2/23/2002 -0600, Shawn Church wrote:
So much for that theory.

However, your guess is pretty close.  I found something which you might find
interesting.  This is a known bug, which you can check out here:

http://developer.java.sun.com/developer/bugParade/bugs/4502892.html

The problem occurs when the socket is prematurely closed.  The workaround is
to buffer the output via ByteArrayOutputStream, isolating the native method
from stream disconnections.

The evaluation of the bug I will include here for convenience:

snip


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




RE: Tomcat 4 and Apache

2002-02-24 Thread Kristian Duske

 You need to uncomment ServerName directive in httpd.conf and change the
 default server name there to your server's Fully Qualified Domain
 Name or IP
 address. The error you are seeing is because ServerName has not been
 changed.

I tried both the machine name, localhost and the ip adress, but none of
these worked. I have installed Tomcat on my linux box along with Apache now,
and it works fine there (however, I had to compile mod_webapp.so myself).
I'd still be interested to get it to run on my Windows box though in case I
have to use it on my laptop.

Thank you for your tip
Kristian


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




RE: Apache Tomcat/4.0.2 - HTTP Status 404 - /examples/jsp/

2002-02-24 Thread Donald Lee

where are your examples located?  I had to move mine to the webapps
directory then they ran.

-Original Message-
From: Terje Dahl [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 23, 2002 1:47 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat/4.0.2 - HTTP Status 404 - /examples/jsp/


Yes, I am a newbie, but...

Installed Tomcat 4.0.2 (precompiled version) (on Mac OS X (That's
unix) ) in a directory I called Tomcat.

Tomcat starts just fine with this script:
#!/bin/sh
export CATALINA_HOME=/Tomcat/jakarta-tomcat-4.0.2
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
$CATALINA_HOME/bin/startup.sh

I get the default html-pages in ROOT no problem.
I can also run JSP-pages from ROOT.
But nothing in examples works!
(I didn't change anything during installation, and there are lots of
files and folder present in examples..)

Shouldn't I at least be able to expect at least the enclosed examples to
run corectly out of the box?..

Terje


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


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




Re: New bie problem about Tomcat

2002-02-24 Thread rsequeira


There could be a couple of reasons. One of them: you could possible have
declared the servlet twice in the web.xml.
Check if other servlets in the same webapp are getting initialized twice.
This may a some way in helping you pinpoint where the problem is. Check
that you don't have the duplicate Contexts mapped to the same docBase.
Check that the elements in the web.xml are in the correct order.

RS






[EMAIL PROTECTED] (Krishna Bhamidi) on 02/23/2002 11:28:57
AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  New bie problem about Tomcat

Hi,

I have a problem about a servlet that I want to start on load of Tomcat. I
included into the web.xml for the application under the on-load.

The init method of the servlet is called two times, but not the service
method of the servlet. I am not sure why the init method should get called
2 times?

We are using Tomcat 4.0 on Apache. What do we do to execute a servlet on
web-server startup?

Krishna.









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




Re: Tomcat 4 and Apache

2002-02-24 Thread rsequeira


I'm treading in quicksand here. But did you add the JkMount statements? I
was getting the a similar error Can't locate API module structure... with
mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
Maybe I'm wrong. Just trying to help :-)
RS





Kristian Duske [EMAIL PROTECTED] on 02/23/2002 01:11:08 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  Tomcat 4 and Apache

Hi everyone,

I'm sorry that I'm probably the 100th person to ask this, but I have
searched google groups and the archives of this mailing list, both of which
failed to help me setting up Tomcat 4.01 with Apache 1.3.23 on Windows.

I have tried to load both mod_jk.dll and mod_webapp.so in Apache. mod_jk
gives me the following error:
Syntax error on line 195 of c:/programme/wamp/apache/conf/httpd.conf:
Can't locate API module structure `mod_jk' in file
c:/programme/wamp/apache/modules/mod_jk.dll: (127) Die angegebene Prozedur
wurde nicht gefunden:

The last bit translates to The specified procedure was not found. The
relevant lines in my httpd.conf are
LoadModule mod_jk modules/mod_jk.dll
AddModule mod_jk.c

I had more luck with mod_webapp, which loads properly using these lines:
LoadModule webapp_module modules/mod_webapp.so
AddModule mod_webapp.c
WebAppConnection conn  warp  localhost:8008

But when I add either (or both) of these lines
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

apache -t gives me the following error:
C:\Programme\Wamp\Apacheapache -t
Syntax error on line 256 of c:/programme/wamp/apache/conf/httpd.conf:
Invalid virtual host name

where in line 256 is either one (or the first of)
WebAppInfo /webapp-info
WebAppDeploy examples conn  /examples

I have found out that other users had this problem when their ServerName
directive was commented out in their httpd.conf, and I have tried that
already, without luck.

Does anybody have an idea how to solve this problem?

Thank you very much
Kristian


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









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




Installing Tomcat 4.0.2 JBoss 2.4.4?

2002-02-24 Thread Andrzej Jan Taramina

Is it possible to install JBoss and Tomcat separately, yet have them co-located 
in the same Vm?  (ie. have JBoss start up Tomcat)

I know you can do this with the combined release from jboss.orgbut is there 
any documentation on how to integrate the two if installing from two separate 
packages (one for JBoss and one for Tomcat)?  The problem with the 
combined release is that it does not yet include 4.0.2 of Tomcat.

Thanks!


Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


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




RE: Tomcat 4 and Apache

2002-02-24 Thread Kristian Duske

 I'm treading in quicksand here. But did you add the JkMount statements? I
 was getting the a similar error Can't locate API module
 structure... with
 mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
 Maybe I'm wrong. Just trying to help :-)

No, that's not the problem either - I get the Can't locate... error with
mod_jk, I get Invalid virtual host name errors with mod_webapp.

Thanks anyway =)
Kristian


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




REPOST: addChild exception

2002-02-24 Thread David Wynter

No response on query below. Still stuck, web.xml is OK
and server.xml is OK?

I have just copied a Turbine project I was working on
onto my notebook computer so I can work on it while
travelling. I set up CATALINA_HOME and JAVA_HOME
correctly. I have copied the whole thing to exactly
the same directory (c:\tdk is CATALINA_HOME).

This is the exception I get.

2002-02-23 03:52:03 StandardHost[localhost]: Deploying
web application at context path /rwtransform from URL
file:C:\tdk\webapps\rwtransform
2002-02-23 03:52:04 StandardHost[localhost]:
ContainerBase.addChild: start: 
LifecycleException:  start: : 
java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:596)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1136)

.


- Root Cause -
java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.addRepository(StandardClassLoader.java:361)
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:589)


I even tried to deploy as by building a WAR and
letting the servlet unpack it, same result. Both
server.xml and web.xml look OK.

any ideas?

Thanks

David



__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




RE: Tomcat 4 and Apache

2002-02-24 Thread Brian Adams

Kristian,
Here are my files... look at them and see if you can find yours..
I am not running Virtual hosts but I have hooks into both mod_jk and
mpd_webapp (currently I only use mod_jk).
see if this helps.
I think I am using examples and a webapp named bbb.
Goodluck,
B

-Original Message-
From: Kristian Duske [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 24, 2002 3:48 PM
To: Tomcat Users List
Subject: RE: Tomcat 4 and Apache


 I'm treading in quicksand here. But did you add the JkMount statements? I
 was getting the a similar error Can't locate API module
 structure... with
 mod_webapp till I added the WebAppConnection and WebAppDeploy statements.
 Maybe I'm wrong. Just trying to help :-)

No, that's not the problem either - I get the Can't locate... error with
mod_jk, I get Invalid virtual host name errors with mod_webapp.

Thanks anyway =)
Kristian


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



!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Uncomment this entry to enable JMX MBeans support --
!--
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 port=-1 login=admin password=admin/
--

  !-- Global JNDI resources --
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

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

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 4.0 documentation bundle for more detailed
 instructions):
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --

   !-- Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=false
	   acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS/
/Connector
   --

!-- Define an AJP 1.3 Connector on port 8009 --

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/


!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--

Re: Apache Tomcat/4.0.2 - HTTP Status 404 - /examples/jsp/

2002-02-24 Thread Ken Martin

On Sunday, February 24, 2002, at 11:44 AM, Donald Lee wrote:

 Shouldn't I at least be able to expect at least the enclosed 
 examples to
 run corectly out of the box?.

I had no success getting the examples to work until I used 
'gnutar' instead of 'tar' to decompress the .tar.gz file. It 
worked properly when I did it this way.

BTW, I just used the instructions at...

http://developer.apple.com/internet/macosx/tomcat1.html

...but I used 'gnutar' where they used 'tar'.

Otherwise, I notice your JAVA_HOME is different than mine... I've got...

export JAVA_HOME=/usr

...and it seems to be working quite well. Good luck!

Ken (also a newbie) Martin


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




changing the default character encoding

2002-02-24 Thread Richard Sand

Hi all-  Does anyone know how to specify the default encoding for the JVM in
a linux environment?

I'm having difficulty with my servlets because the JVM on my system (sun
jdk1.3.1 on linux) is defaulting to us-ascii encoding instead of using
iso-8859-1.  I know I can override the encoding inside my code, but
according to the package description for java.lang, the JVM determines the
default encoding by looking at the OS.  I tried setting both LANG and
LC_CTYPE in my shell before launching catalina.sh, but I still couldn't get
the servlets to not default to US-ASCII.

Thanks!

Best regards,

Richard




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




Re: REPOST: addChild exception

2002-02-24 Thread Remy Maucherat

 No response on query below. Still stuck, web.xml is OK
 and server.xml is OK?

 I have just copied a Turbine project I was working on
 onto my notebook computer so I can work on it while
 travelling. I set up CATALINA_HOME and JAVA_HOME
 correctly. I have copied the whole thing to exactly
 the same directory (c:\tdk is CATALINA_HOME).

 This is the exception I get.

 - Root Cause -
 java.lang.IllegalArgumentException:
 addRepositoryInternal: java.lang.NullPointerException
 at

org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1073)
 at

org.apache.catalina.loader.StandardClassLoader.addRepository(StandardClassLo
ader.java:361)
 at
 org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:589)


 I even tried to deploy as by building a WAR and
 letting the servlet unpack it, same result. Both
 server.xml and web.xml look OK.

 any ideas?

Given the line numbers in the traces, you're not using either 4.0.1 or
4.0.2. So you should try upgrading.

Remy


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




General questions about Tomcat-Apache

2002-02-24 Thread Thomas Stiller

After having worked with some other servers I am currently evaluating Apache and 
Tomcat.
The problem is that I could not find any article or tutorial which gives an general 
over view over the relationship between Apache and Tomcat (and jdk).

E.g http://www.moreservlets.com/Using-Tomcat-4.html#Introduction
indicates that Tomcat can be run independently from Apache. But what can I do with 
Apache
what I can not with Tomcat or vice versa ?

Is Tomcat an add-on or a replacement of Apache ?
If Tomcat has the full functionality of a web server why do I need in addition Apache 
web server?

Which version of Tomcat works (is compatible) with which version of Apache ?
Is Tomcat 4.0.2 working with Apache 1.3.23 or only with 2.0.* ?

A link on the page mentioned above promises a description on how to integrate Tomcat 
into
Apache but on the refererred page I cannot find such a description. How do I do it ?

Does the same Tomcat binary work as a plug-in for Apache and as a stand-alone server 
or do I have to download two separate binaries ?

Sorry for these general questions but I found them not answered in the internet.

Thank you
Thomas

-- 

___
Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



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




RE: Strange javabean problem

2002-02-24 Thread Rich Sneiderman

Thanks for the response. That was exactly the problem.  I should have
realized that the objects lived in different places (i.e. page context
VS local variable of the generated servlet).

So is there a better way to do this?  My current plan is to move all of
this type of table rendering to a taglib so that I don't need the Java
doing the iteration.

Again thanks for the help.

- Rich

-Original Message-
From: Greg Trasuk [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 22, 2002 11:40 AM
To: 'Tomcat Users List'
Subject: RE: Strange javabean problem


Hi folks:

Rich, you've put your finger directly on the problem by looking
at the generated code.  Your scriptlet's way of getting the title is to
pull it out of the local variable emp, whereas the getProperties version
is using the JSP's pageContext methods, which end up pulling it out of
whatever scope it was declared in (your useBean didn't declare a scope,
so I think it defaults to 'page' scope, but don't quote me on it).  The
bean in the pageContext is the empty bean that was created by the
useBean tag, not the populated bean that you're getting from the
iterator.

Try inserting the following into your loop:
while(iter.hasNext()) {
 emp = (EmployeeBean)iter.next();
 pageContext.setAttribute(emp,emp);   -- Insert this
line.
  
 %

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor. http://stratuscom.ca

 -Original Message-
 From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
 Sent: February 22, 2002 12:15
 To: Tomcat Users List
 Subject: RE: Strange javabean problem
 
 
 Sorry about that.  I should have included how I declared the
 bean.  The
 jsp:useBean tag is the 2nd line in the page, right after the
 jsp:Page tag. The full tag reads:
 
 jsp:useBean id=emp class=test.EmployeeBean /
 
 I've traced through the servlet code and the bean's getters are being 
 called even in the getProperty cases.
 
 In the generated servlet code the scriptlet's version of getting the 
 title is:
 
   out.print( emp.getTitle() );
 
 The getProperties version is:
  
 out.print(JspRuntimeLibrary.toStringtest.EmployeeBean)page
 Context.fi
 ndAttribute(emp)).getTitle(;
 
 - Rich
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 22, 2002 7:59 AM
 To: 'Tomcat Users List'
 Subject: RE: Strange javabean problem
 
 
 
   You are not creating a bean named emp for the jsp:getProperty.
You 
 need to use jsp:useBean first (I believe) or use 
 %=emp.getFirstName()%.
 
   Randy
 
  -Original Message-
  From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 22, 2002 11:39 AM
  To: Tomcat Users List
  Subject: RE: Strange javabean problem
  
  
  I can't believe we're the only people who have ever seen
 this problem.
  
  I'm still having the problem but I got to the same place
 differently.
  
  I load the data from a data base in a servlet.  The servlet
 reads from
 
  the database it creates a javabean for each record and adds it to a
  ListArray.  I then add the ArrayList to the request object 
 and forward
 
  on to my JSP.  It's this ArrayList that I'm iterating through in my
  JSP when I have the problem.
  
  Again here is my code snippet that fails:
  
  %
ArrayList la = (ArrayList) request.getAttribute(list);
if ( la != null ) {
  Iterator iter = la.iterator();
  while(iter.hasNext()) {
emp = (EmployeeBean)iter.next();
  %
  trtd%= emp.getFirstName() %/td
  td%= emp.getLastName() %/td
  td%= emp.getTitle() %/td
  /tr
  
  trtdjsp:getProperty name=emp property=firstName //td
  tdjsp:getProperty name=emp property=lastName //td
  tdjsp:getProperty name=emp property=title
 //td /tr %
  }
}
  %
  
  Could there be something wrong with the way we're defining our
  Javabeans?
  
  Please folks.  A little help here.
  
  Thanks in advance.
  
  - Rich
  
  -Original Message-
  From: Michael J. McCormac [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 21, 2002 7:45 PM
  To: [EMAIL PROTECTED]
  Cc: Rich Sneiderman
  Subject: RE: Strange javabean problem
  
  
   Hi Folks,
   
   I'm using Tomcat 4.01 with Jbuilder 6.  I've got a
 strange problem.
   It seems that if I try to dump data from a Java bean using the
   jsp:getProperty tag I don't get the data.  However, if I
  reference
   the value of the bean directly in a scriptlet it works fine.
  
  greetings all,
  
  i am having pretty much the same problem, but the
 implementation is a
  little bit different.  i tried using an rmi process to retrieve the
  bean directly from the JSP like so:
  
  jsp:useBean id='myBean' class='beans.MyClass' /
  %
  rmiInt rmiServer = (rmiInt)Naming.lookup( //server/service );
  myBean = (MyClass)rmiServer.getBean();
  %
  jsp:getProperty name='myBean' 

Re: no re-load of indirect class

2002-02-24 Thread Joel Rees

On Saturday, February 23, 2002 Craig R. McClanahan advised:

 Depends on the Tomcat version, and where your classes are.

 If you're using Tomcat 4, and all the relevant classes are in
 /WEB-INF/classes or /WEB-INF/lib, this should work fine.  I know for sure
 that the Tomcat 3.2 webapp class loader didn't deal with stuff like this
 very well.  Don't know about 3.3.

That's it. I'm using 3.2. I should've mentioned that.

Thanks.

Joel

 On Fri, 22 Feb 2002, Joel Rees wrote:

  Indirectly referred classes don't seem to get reloaded. Is this a known
  behavior?
 
  I have one class referencing another before going out to a jsp page, and
I
  have to shut tomcat down and bring it back up after re-compiling the
  indirectly referred class, to get the changes to have any effect.
 
  Is this just another of those things I'm being thick-headed about?
 





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




Tomcat4 standalone keystore - existing private key problem

2002-02-24 Thread Chris Campbell

Hi

I am trying to setup Tomcat 4.0.1 standalone to serve ssl pages certified by
Verisign. I can use (self signed) certificates generated by keytool with no
problem, but I can't set up the keystore to work with Verisign's.
To explain a little more, the private key I have was generated by openssl
(openssl genrsa -rand rand.dat -des 1024  key.pem) and is of the type:

-BEGIN RSA PRIVATE KEY-
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-CBC,91B2224E3C5D1BA5

If I try to import this into my keystore like 

keytool -import -file /root/key.pem

I get the error 'Input not an X.509 certificate'. Importing the certificate
reply from Verisign in the same way works no problem, but I know from
setting up Apache that the private key is also necessary right? And for
tomcat, it seems that it must be in the keystore (no other configuration
options as far as I know). I think everything would work if I could just get
that private key into a form that keytool understands, then into the
keystore... is this possible?

Thanks, 

ChrisC

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


HOW to Configure Tomcat on IIS and deploy our own web Application.

2002-02-24 Thread Vishal Mukherjee

Hi all,

I an a NewBie to Tomcat. Having installed TC 3.2.3 on IIS 4 with the help of
your guidance from the link suggested below.
http://www.verysimple.com/scripts/support_tc_iis.html

All works fine. I have a web application which i have to deply to our
intranet server, mearly copying the files in a directory and adding the
context does not work. Can anyone help to delpoy our application where i can
get step-by-step methods to configure the application for JSP, Servlets and
beans directories  and deploy it.

Thanks  Regards
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Vishal Mukherjee
IRSSL  Vashi
91.022.7896004.155 (voice)  022.7896020(fax)
Don't take life too serious. You'll never escape it alive anyway.
- Ebert Hubbard
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


Visit Our Cement Site at http://www.indorama.co.in
  Our Software Site at http://www.irssl.com 



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




Create a log file under my application directory

2002-02-24 Thread Bing Zhang

Hi,

I am running tomcat 4.0.1.

The connection pooling part of my application needs a new log file every
time it starts via new File(fileName). The filename is a file just under
my application, such as webapps/myapp/connectionpool.log. But every time I
run it, I got an exception: permission denied. 

I tried to use catalina.policy to add create and write permission for that
particular file, but no fruit. What have I missed? I do not want to use the
usual sevlet log() method for my connection pooling log.

Thanks,

Bing

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




RE: Installing Tomcat 4.0.2 JBoss 2.4.4?

2002-02-24 Thread Jarecsni Janos

Hi,

simply download the Catalina version of your choice and extract it in place
of the old version. It works.

Cheers,
Janos

|-Original Message-
|From: Andrzej Jan Taramina [mailto:[EMAIL PROTECTED]]
|Sent: Sunday, February 24, 2002 10:53 PM
|To: tomcat Users List
|Subject: Installing Tomcat 4.0.2  JBoss 2.4.4?
|
|
|Is it possible to install JBoss and Tomcat separately, yet have
|them co-located
|in the same Vm?  (ie. have JBoss start up Tomcat)
|
|I know you can do this with the combined release from
|jboss.orgbut is there
|any documentation on how to integrate the two if installing from
|two separate
|packages (one for JBoss and one for Tomcat)?  The problem with the
|combined release is that it does not yet include 4.0.2 of Tomcat.
|
|Thanks!
|
|
|Andrzej Jan Taramina
|Chaeron Corporation: Enterprise System Solutions
|http://www.chaeron.com
|
|
|--
|To unsubscribe:   mailto:[EMAIL PROTECTED]
|For additional commands: mailto:[EMAIL PROTECTED]
|Troubles with the list: mailto:[EMAIL PROTECTED]
|
|


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




RE: tomcat 4 apache mod_webapp welcome-file-list

2002-02-24 Thread Kendal L. Montgomery

Did anyone ever come up with an answer for this?  I've searched exhaustively
about this with no luck. Maybe I'm just missing something, but...

I am experiencing the same thing with Tomcat 4.0.2-LE / JVM 1.4.0 / Apache
1.3.23.  This is REALLY annoying, but if someone could tell me what I'm
doing wrong, I'd love to know.

Here is my web.xml:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.d
td
web-app
  servlet
servlet-namePostMultipartServlet/servlet-name
display-namePostMultipartServlet/display-name
descriptionmultipart/form-data test servlet/description

servlet-classorg.athlonia.servlet.test.PostMultipartServlet/servlet-class

  /servlet
  servlet-mapping
servlet-namePostMultipartServlet/servlet-name
url-pattern/PostMultipartServlet/url-pattern
  /servlet-mapping
  session-config
session-timeout
  30
/session-timeout
  /session-config
  welcome-file-list
welcome-fileindex.html/welcome-file
  /welcome-file-list
/web-app

when I try to hit the page: http://localhost/multipart/

I get a page cannot be displayed error in IE 5.5, saying something about a
dns error.

If I do http://localhost/multipart/index.html, I get the desired page.

My httpd.conf mod_webapp section looks like this:

#
# Webapp: Tomcat (Catalina) 4.0 connector
#
IfModule mod_webapp.c
  WebAppConnection warpConnection warp localhost:8008

  WebAppDeploy examples warpConnection /examples/
  WebAppDeploy multipart warpConnection /multipart/
/IfModule

Let's see.. what else...


My server.xml section looks like this:


-- snip --
  !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
port=8008 minProcessors=5 maxProcessors=75 enableLookups=false
appBase=/home/httpd/webapps acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache defaultHost=www.athlonia.org debug=0

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/catalina prefix=apache_catalina_ suffix=.log
timestamp=true/

  !-- Because this Realm is here, an instance will be shared
globally --
  Realm className=org.apache.catalina.realm.MemoryRealm /

  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=/home/httpd/webapps
unpackWARs=false
Valve className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/var/log/catalina prefix=localhost_access_ suffix=.log
pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/catalina prefix=localhost_ suffix=.log
timestamp=true/


!-- Multipart Test Webapp Context --
Context path=/multipart docBase=multipart.war debug=0
  Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/catalina prefix=webapp_localhost_multipart_
suffix=.log timestamp=true/
/Context

  /Host

/Service

-- snip --

Also, I noticed that the web.xml for the examples doesn't have a
welcome-file-list section, but it's behavior seems correct, with the
exception that it's index.html is in a /jsp or /servlet subdirectory.  I
tried removing the welcome-file-list section from my web.xml and still got
the same incorrect behavior as with it in place.  So...

Any information would be much appreciated!  Thanks.

Kendal L. Montgomery
...the comPuter Wizard...
[EMAIL PROTECTED]
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Click here for Qwest's 5 cent State-to-State flat rate calling plan, plus
get your own 800 number at no charge!
http://qwesteferral.com/r.jsp?a=RyYO5xpYanlfVU541Lz2HA$$
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_

-Original Message-
From: Dom [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 2:15 PM
To: [EMAIL PROTECTED]; Tomcat Developer List
Subject: tomcat 4  apache  mod_webapp welcome-file-list

Tomcat 4 + Apache + mod_webapp.so :
It looks like welcome-file-list in web.xml doesn't work with web
applications in virtual hosts ?

Dom


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