RE: SSL Config on Tomcat (Error)

2002-11-13 Thread Peter Romianowski
  first, please don't send messages to the list with the list-address in
bcc
(this breaks filtering in most email-clients).


  The error message you got indicates that there is already a service
listening on that port. Please send your server.xml for further
investigation and try to figure out what listens on which port and if
you have other software running (like apache) that might listen to a
port specified in your server.xml.

Peter

> -Original Message-
> From: Manoj Kithany [mailto:manojkithany108@;hotmail.com] 
> Sent: Wednesday, November 13, 2002 5:23 PM
> To: [EMAIL PROTECTED]
> Subject: SSL Config on Tomcat (Error)
> 
> 
> Hi Experts:
> 
> I want to Configure my TOMCAT for SSL and was reading the SSL 
> Config How-To 
> posted at 
> "http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.htm
> l#Edit%20the%20Tomcat%20Configuration%20File"
> 
> I made all the changes as was mentioned above and when excute 
> Catalina I get 
> following error--->
> --
> ---
> # ./catalina.sh run
> Using CATALINA_BASE:   /tom
> Using CATALINA_HOME:   /tom
> Using CATALINA_TMPDIR: /tom/temp
> Using JAVA_HOME:   /usr/java130
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.4
> Error unable to create jar cache in /tmp directory : 
> java.util.zip.ZipException: error in opening zip file
> Error unable to create jar cache in /tmp directory : 
> java.util.zip.ZipException: error in opening zip file
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.4
> StandardServer.await: create[8005]: java.net.BindException: 
> The socket name 
> is already in use.
> java.net.BindException: The socket name is already in use.
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:414)
> at java.net.ServerSocket.(ServerSocket.java:182)
> at 
> org.apache.catalina.core.StandardServer.await(StandardServer.java:277)
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:794)
> at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> --
> ---
> 
> Thanks!
> 
> 
> 
> 
> 
> 
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
> http://join.msn.com/?page=features/virus
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: To use certificates

2002-11-12 Thread Peter Romianowski
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html

for 4.0.x and 4.1.x and really detailed (step by step)

Peter

> -Original Message-
> From: Lindomar [mailto:lindomar.silva@;bol.com.br] 
> Sent: Tuesday, November 12, 2002 6:07 PM
> To: Tomcat Users List
> Subject: To use certificates
> 
> 
> Hi everybody!
> 
> How can i install or create a sample of certificate?
> I need to do some tests(https) on tomcat.
> 
> Thanks in advanced.
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Could not run 4.1.12 - ContextConfig[] Exception processing JAR at resource path

2002-09-26 Thread Peter Romianowski

Hi,

I am trying to upgrade from 4.0.4 to 4.1.12, but I can't get tomcat to
start up! I searched the archives and googled around, but all I found
was that this error happens when using symlinks. I don't use symlinks
at all! The following error can be found in the logs:

2002-09-26 14:37:22 ContextConfig[] Exception processing JAR at resource
path /WEB-INF/lib/jakarta-oro.jar
javax.servlet.ServletException: Exception processing JAR at resource
path /WEB-INF/lib/jakarta-oro.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:
930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868
)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.io.IOException: Das System kann den angegebenen Pfad nicht finden
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1294)
at java.io.File.createTempFile(File.java:1382)
at java.io.File.createTempFile(File.java:1419)
at
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
at
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
at
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:
85)
at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.ja
va:69)
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:
906)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868
)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

I use a different CATALINA_HOME, if that helps.

Thanks for helping me out!

Peter


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Error: Connection reset by peer: socket write error

2002-05-22 Thread Peter Romianowski

Hi,

this error message simply states that the user
pressed the STOP-button in her browser, causing the
connection to be reset. so you are right when saying:
"everything's fine - i'll ignore it" :)

cheers,
Peter

> -Original Message-
> From: Christopher Moon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 22, 2002 4:53 PM
> To: 'Tomcat Users List'
> Subject: RE: Error: Connection reset by peer: socket write error
> 
> 
> I am using Tomcat 4.0.3 on win32 and get the same error.  I do not think
> that upgrading will help.  In my case the error is not causing any
> problems so I have not worried much about it
> 
> -Chris
> 
> -Original Message-
> From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 22, 2002 10:48 AM
> To: Tomcat Users List
> Subject: Re: Error: Connection reset by peer: socket write error
> 
> 
> Hi ,
> 
> we have this error message too, our Tomcat version is 3.2.1 which is
> running on Window 2000 Server. If we switch to 3.3.1 or 4.0x maybe it is
> going to be ok  ?? any idea ? and one more question how can i add new
> jar files to Tomcat 3.3.1. I paste all need jar files (for example :
> jfreechart0.8.4.jar) to
> 
> "lib\comman\ "  but it doesnt work and then i cut these jar files from
> there and paste them to
> 
> "lib\container" but the result is same .
> 
> What must i do ? any idea ?
> 
> Regards
> Altug.
> 
> 
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 22, 2002 1:08 PM
> Subject: Error: Connection reset by peer: socket write error
> 
> 
> > Hello, everybody
> >
> > I know that everybody love Error message ... but maybe someone can 
> > help
> me.
> >
> > I have this error on my tomcat window
> > 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + 
> > /images/btn_persoHTML_allume.gif + null)
> > - java.net.SocketException: Connection reset by 
> > peer: socket write error
> > at java.net.SocketOutputStream.socketWrite(Native Method)
> > (...)
> >
> > Does anybody knows where it comes from, is it an error from tomcat or 
> > jetspeed. (I think tomcat but am not sure)
> >
> > However, html page is well displayed with the image 
> > "/images/btn_persoHTML_allume.gif "
> >
> >
> > Any help would be greatly appreciate :)
> >
> >
> > Pierre Besson-Deblon
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat and SSL (keyfile password)

2002-04-25 Thread Peter Romianowski

Mhhh, there is an updated version of the ssl-howto in the
CVS for MONTHS now, that describes the installation of official
certs (like Verisign, Thawte, Trustcenter...) step by step.
But it is *NOT* in TC 4.03 and it is not on the jakarta-webpage.

I simply wonder why? People are dealing with this topic again
and again... And I know how frustrating this can get... :-( 

Peter

> -Original Message-
> From: Dave North [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 8:33 PM
> To: Tomcat Users List
> Subject: RE: tomcat and SSL (keyfile password)
> 
> 
> OK, here's what I did (this was using a test versign cert but the
> procedure is the same for a "real" production cert):
> 
> STEP A - generate your private key
> 
> Pre-req: JDK must be installed
> 
> 1) cd to $JAVA_HOME/jre/bin
> 
> 2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore  TO KEYSTORE>
> 
> 3) You will be prompted for a password for the keystore
> 
> 3) at the prompts, enter: 
> 
> What is your first and last name?
>   [Unknown]:   KNOWN TO VISITORS>
> What is the name of your organizational unit?
>   [Unknown]:  
> What is the name of your organization?
>   [Unknown]:  
> What is the name of your City or Locality?
>   [Unknown]:  
> What is the name of your State or Province?
>   [Unknown]:  
> What is the two-letter country code for this unit?
>   [Unknown]:  
> 
> 4) You will then be prompted for another password - use the same (ie.
> Press ENTER)
> 
> STEP B - Generate a Certificate Request
> 
> 1) cd to  $JAVA_HOME/jre/bin
> 
> 2) ./keytool -certreq -alias tomcat -file csr.txt -keystore  TO SAME KEYSTORE CREATED IN STEP A>
> 
> STEP C - Get the new cert from Verisign
> 
> www.versign.com has all the info here
> 
> STEP D - Install the Verisign ROOT CA cert AND your server cert
> 
> When you get your cert in step C, they will provide you with the root
> cert
> 
> 1) cd to  $JAVA_HOME/jre/bin
> 
> 2) ./keytool -import -alias verisign -file  VERSIGN ROOT CA CERT> -keystore 
> 
> 3) ./keytool -import -trustcacerts -alias tomcat -file  CONTAINS YOUR CERT FROM VERISIGN> -keystore 
> 
> 
> STEP E - Configure an SSL listener for tomcat
> 
> 1) edit $JAKARTA_HOME/conf/server.xml and add the following:
> 
> 
> port="443" minProcessors="5" maxProcessors="75"
>enableLookups="true"
>acceptCount="10" debug="10" scheme="https" secure="true">
>   clientAuth="false" protocol="TLS"
>keystoreFile=""
> keystorePass=""/>
> 
> 
> 2) Stop and start the tomcat server
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 2:29 PM
> To: Tomcat Users List
> Subject: Re: tomcat and SSL (keyfile password)
> 
> 
> Hi Dave
> 
>  ohhh...good to know that.
> 
>  I need to set up the tomcat 4.0.3 with verisign.
> 
> Can you please send those doc to me ?
> 
> I appreciate your help
> 
> thanks in advance
> BM
> 
> Dave North wrote:
> 
> > Hello,
> > After a few hours trying to get this working, I've finally got
> > my tomcat server working with a certificate signed by Verisign.  This
> > all works great.  However, to do this, I need to configure the
> > keyfilePass into the server.xml file.  This is bad as our security
> > policy is "thou shall not have any passwords in plain text".  We also
> > use SSL on our iPlanet server and it prompts at start time for the
> > password (they use the term software token but it's the same).  So,
> the
> > question is: is it possible to have tomcat prompt for this and/or how
> > have others got around keeping this in plain text?
> >
> > BTW: if anyone's interested, I have the complete step-by-step of how I
> > got the versign cert working...the info is out there but it seems to
> be
> > all over the place.
> >
> > Thanks
> >
> > Dave
> >
> > Dave North
> > SIGNIANT Inc.
> > Trusted Data Transfer Services
> > www.signiant.com
> > Phone: 613-761-3623
> > Mobile: 613-294-3231
> > Fax: 613-761-3629
> > Email: [EMAIL PROTECTED]
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: how to include the parser's JAR files in the /WEB-INF/web.xml ?

2002-04-24 Thread Peter Romianowski

should be like:
put the parser's JAR into WEB-INF/lib to make them visible to your webapp

Peter

> -Original Message-
> From: Kroeksak Kongman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: how to include the parser's JAR files in the /WEB-INF/web.xml ?
> 
> 
> To make an XML parser available to your web applications, you have several options:
> 
> * To utilize an XML parser in a single web application, simply include the 
>parser's JAR files in the /WEB-INF/web.xml 
> directory of that web application. This will work, no matter what parser might be 
>used by Tomcat 4 internally, or by 
> other web applications running in the same instance of Tomcat 4. 
> 
> Please would you tell me, 
> 
> how to include the parser's JAR files in the /WEB-INF/web.xml ?
> 
> Best Regards,
> 
> Koong
> 
>  
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Solved?Tomcat 403 and No processor available

2002-04-18 Thread Peter Romianowski

Hi again,

I now lowered the ConnectionTimeout to 1 instead of 6
and it's working now (only 100 processors created). I wonder if
this setting contains any disadvantages...

Peter

> -Original Message-
> From: Peter Romianowski [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 18, 2002 3:44 PM
> To: Tomcat Users List
> Subject: Tomcat 403 and No processor available
> 
> 
> Hi,
> 
> I discovered a strange thing. After starting my tomcat starts 450 
> background-threads (as configured as MAX in server.xml) and then
> there are thousands of:
> 
> 2002-04-18 15:38:41 HttpConnector[80] No processor available, rejecting this 
>connection
> 
> in catalina.log. But I can still connect to my application. What's
> happening? I remember some discussions about that kinda stuff. Is
> this a bug or can I do something to avoid this behaviour?
> 
> I am using SuSE 7.2 and Sun JDK 1.3.1_02
> 
> Thanks, 
> Peter
> 
> 
> --
> 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 403 and No processor available

2002-04-18 Thread Peter Romianowski

Hi,

I discovered a strange thing. After starting my tomcat starts 450 
background-threads (as configured as MAX in server.xml) and then
there are thousands of:

2002-04-18 15:38:41 HttpConnector[80] No processor available, rejecting this connection

in catalina.log. But I can still connect to my application. What's
happening? I remember some discussions about that kinda stuff. Is
this a bug or can I do something to avoid this behaviour?

I am using SuSE 7.2 and Sun JDK 1.3.1_02

Thanks, 
Peter


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




using a servlet as "welcome-file"

2002-04-15 Thread Peter Romianowski

Hi there,

I am using tomcat4 and want to setup a servlet as
"welcome file". How can I do this? Using "/" as 
servlet-mapping would not work (IMHO:). If I then
try to access http://myhost/something.html then my
servlet would be invoked with "something.html" as
PathInfo, right?

Please help! Thanks.

Peter


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TC hidding console

2002-04-12 Thread Peter Romianowski

or simply use javaw instead of java (you would have to look into catalina.bat or .sh
in order to change that)

> -Original Message-
> From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 2:09 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: TC hidding console
>
>
> There is a /b option in the start command that prevents a new window being
> created.  You could try hacking the startup scripts to use this.  I haven't
> tried this though.
>
> Andy
>
> > -Original Message-
> > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > Sent: 12 April 2002 12:50
> > To: Tomcat Users List
> > Subject: Re: TC hidding console
> >
> >
> >
> > Because it is to give a demo embended on a CD and I would not like
> > to make all my debugs appear ...
> >
> > Barney Hamish a écrit :
> > >
> > > Why don't you just run Tomcat as a service. Then you'll never see the
> > > console.
> > >
> > > -Original Message-
> > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, April 12, 2002 1:45 PM
> > > To: Tomcat Users List
> > > Subject: TC hidding console
> > >
> > > Hello,
> > >
> > > is there a way under Windows2000 to hide TC console when starting up ?
> > >
> > > thanks.
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troubles with the list: 
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.1 StandAlone Web Server and SSL

2002-02-16 Thread Peter Romianowski

Take a look into the the CVS. There is an updated version of the SSL-howto
(under catalina/webapps/tomcat-doc)
which describes how to use Verisign or Thawte CAs.

-Original Message-
From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 16, 2002 10:11 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.0.1 StandAlone Web Server and SSL


Hi,

> -Original Message-
> From: John Echano [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 16, 2002 2:36 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.0.1 StandAlone Web Server and SSL
>
>
> We are interested in implementing SSL four our Apache Jakarta
> Tomcat Server.
> We are running this as a standalone web server on Red Hat Linux 7.1.
> According to Tomcat's documentation, it currently operates on JKS format
> keystores (the Java's standard keystore format). Is this
> something supported
> by well-known public CAs like Verisign or Thawte? For example,
> Are we going
> to be able to generate a certificate request in a format that Thawte
> supports  and that the return certificate can be imported into
> the Tomcat Server? If yes, how? The ssl-howto only provides instruction on
> how to use a self-sign certificate.
>

IMHO, its possible, but you'll have to become very familiar  (I wish I were)
with SSL, PKI, JSSE and so on.

> Thanks,
>
> John
>
>

Anton

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Is Tomcat considered to be a J2EE implementation?

2001-12-15 Thread Peter Romianowski

No, tomcat doesn't come with an EJB-container. But you can "plug in" tomcat
into
an EJB-Container. For instance, tomcat is the Servlet/JSP-Container for
jboss (http://www.jboss.org), an open source EJB-Container. And tomcat is
the Servlet/JSP-Container for the J2EE reference implementation from sun.

So, you see there is a big difference between an EJB-Container and a
Servlet/JSP-Container like tomcat.
So, when you use tomcat as a Servlet/JSP-Container for you EJB-Container
(ApplicationServer), then you can access EJBs from your servlets and jsps...

Hope that helped a bit.
cheers
pero

-Original Message-
From: Michael Davis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 15, 2001 5:48 PM
To: Tomcat Users List
Subject: Re: Is Tomcat considered to be a J2EE implementation?


Thanks,

I've been using JServ to create servlets for a while, and I thought that the
difference between simply using servlets and J2EE was that the latter has an
EJB container. If this is true, then does Tomcat come with an EJB container?
Or maybe a better question is, can you program EJBs with Tomcat?

Thanks again,
Michael

On December 15, 2001 11:34 am, you wrote:
> hello,
>
> The J2EE includes the following technologies :
>
> Servlets, JSP, JNDI, JAXP, JDBC, EJB, JMS, Java Transactions, JavaMail,
> Java IDL, J2EE connectors and Corba (am I missing something ?).
> Read all about j2ee and related technologies at http://java.sun.com/j2ee
>
> Tomcat is "only" a Servlet / JSP container... so while using it you´re
> not neccesarely using all the other technologies,  so I would not say
> that you "know j2ee" untill you know at least half of em. But then again
> Servlets, and JSP are a very big part of J2EE functionality.
>
> I would say if you learn and use Tomcat, you can claim you know servlets
> & jsp, and probably some of the other parts of J2EE. If you check out
> EJBs along the way u´re getting very close to knowing J2EE, at least you
> should know what to claim.
>
>
> hope that explaines it...
>
> --reynir
>
> -Original Message-
> From: Michael Davis [mailto:[EMAIL PROTECTED]]
> Sent: 15. desember 2001 16:14
> To: [EMAIL PROTECTED]
> Subject: Is Tomcat considered to be a J2EE implementation?
>
>
> Hi,
>
> I've been coding Java for a while, and now I'd like to learn J2EE. I
> downloaded and installed Tomcat version 4.
>
> Is Tomcat a reasonably complete implementation of J2EE? That is, if I
> learn
> and use Tomcat, can I claim to know J2EE?
>
> Thanks,

--
Michael Davis
Damaru
Custom Programming - Web Development - Database Design
http://www.damaru.com
416-540-1284

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Rotation of AccessLog

2001-10-24 Thread Peter Romianowski

Hi,

I have a "problem" with accesslog-rotation on Tomcat 4.0.1 (an previous TC
4). First I thought it would be the right behaviour that the log is rotated
upon each restart. But now I took a look into the AccessLogValve (actually I
wanted to implement the rotation that works even if the server runs) and if
I read it right, then the Logrotation should work - but it doesn't. Is this
a bug? Or am I doing something wrong?

cheers,
pero




RE: on startup

2001-09-11 Thread Peter Romianowski

> > This is safer than the typical approach (use the init() method of a
> > load-on-startup servlet), because the servlet specification does *not*
> > guarantee to keep any particular servlet instance in memory for the life
> > of the application (although Tomcat actually does so).
> > Craig

> Is this true?  Under what circumstances would a servlet be removed from
memory?

the specification does not guarantee that a servlet instance will be kept
all over the lifetime of the application. so it is implementation-dependent.
thus you can never be sure, that your servlet will be alive. i.e. a servlet
engine could remove a servlet if it has not been used for some amount of
time and recreate it when accessed again.
i dont know how other servlet engines handle this, but Craig is right when
he says that tomcat actually keeps the instance of a servlet but you
shouldn't rely on that (at least for the sake of portability)... and using
tomcat 4 his aproach is the by far the cleanest...

sincerly,
pero




RE: why tomcat

2001-09-10 Thread Peter Romianowski

you're right, if you have BEA-Weblogic you don't need tomcat.
weblogic is a high end (and thus very expensive) J2EE-Applicationserver
with built-in (and powerful) servlet engine. the single reason I could image
using tomcat in addition would be the need for servlet 2.3 features for
tomcat 4 will be the reference (and thus first?) implementation of the
2.3 servlet api...

cheers,
pero

-Original Message-
From: Huaxin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 8:40 PM
To: '[EMAIL PROTECTED]'
Subject: why tomcat


Maybe I am confusing, but I don't know if I still need
TOm-cat or even J2EE if I have BEA-Weblogic.

It seems to me BEA-Weblogic can do the job at least for
Tomcat

Thanks a lot!






RE: application.getRealPath problem

2001-09-10 Thread Peter Romianowski

getRealPath(String) returns the translation of an URL to local file system.
thus this is the wrong thingy.
to optain the url you wanted you could use the following methods from
ServletRequest / HttpServletRequest. in jsp-pages you have an instance of a
HttpServletRequest-class with the name 'request'.
so use
request.getProtocol()+"://"+request.getServerName()+":"+request.getPort()+"/
"+request.getServletPath(). play a bit around with that.

in general I would advise you (and others with basic questions in
servlet/jsp programming) to tutorial and faq-sites. one great address is
www.jguru.com

pero

-Original Message-
From: Osvaldo Pina [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 7:32 PM
To: [EMAIL PROTECTED]
Subject: application.getRealPath problem


Hi All,
  When I call application.getRealPath("/") in my JSP pages I get
"C:\java\jakarta\webapp\repositorio" instead of
"http://localhost/repositorio"; . Is that correct? How can I get the path for
the root of my web application?





RE: Question (browser cache)

2001-09-10 Thread Peter Romianowski

basicly there are 2 ways. one is html-based the other http-based. (ok, at
the end both affect the header in some way...)
you could simply add the following to every jsp/html page






or (what i would recommend) add the following line to your jsp-code:
<%
response.setHeader ("Pragma", "no-cache");
%>
you could simply put this (together with other common code) into one
include...

hope this helps,
pero

-Original Message-
From: Dan Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 6:08 PM
To: [EMAIL PROTECTED]
Subject: Question


I am using Tomcat as both web server and app server.

How do I get my JSP pages to load from the web server and not from a
client-side cache everytime they are hit?

- - -
Dan Silva
Java Developer
HcPersonal, Inc.
[EMAIL PROTECTED]





RE: How can I have a class run on start-up?

2001-09-07 Thread Peter Romianowski

you could implement a org.apache.catalina.LifecycleListener and attach it to
the context you are using like this:


  ...
  
  ...


look into the docs for details.
but this is a tomcat-specific thing (and thus not portable).

anyway there's a second approach that comes in mind (but it is not as
"clean" as the first one)

you simply could write a servlet where you put all code which should be
executed during webapp-initialization into the init-method.
in web.xml you configure the servlet to load on startup. it goes like this:

  
somename
someclass
a value greater 0
  

then the servlet will be called upon webapp-initialization.

dont know if there's is a better (cleaner and portable) solution, but these
two do the job.

greets,
pero

-Original Message-
From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 07, 2001 7:15 PM
To: [EMAIL PROTECTED]
Subject: Re: How can I have a class run on start-up?


I don't know the answer to your question, but, I'm wondering if the
application actually has to run in Tomcat. It sounds like you might want to
just create a standalone application that listens on a port.

Jon

- Original Message -
From: "Alex Colic" <[EMAIL PROTECTED]>
To: "Tomcat-User" <[EMAIL PROTECTED]>
Sent: Friday, September 07, 2001 8:36 AM
Subject: How can I have a class run on start-up?


> Hi,
>
> hopefully someone can help me with this. I need some type of a class to
> start when the web server starts. This class is going to bind itself to a
> port and listen to commands from a VB app. Other classes in other web apps
> will register themselves with this class to receive these commands.
>
> My questions are:
>
> 1: how can you have a class start when the web server starts? This needs
to
> work with all web servers.
> 2: how can you have a class in a web app register itself with the class
> listening on the port?
>
> Any suggestions are appreciated.
>
> Regards
>
> Alex Colic
>