RE: Create a new lib folder

2003-05-29 Thread Mark Irvine LCGI
Yoav,

I have read the some of the text at the URL you sent.  However, and I
think it was you who help me with a previous problem I had with the
sendmailservlet example.  You suggested coping the mail and activation
jar file to a local lib - however the page still through an exception.
It would only work if the files were both in the common\lib folder.

Have you ever seen this before?

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 28 May 2003 20:44
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Create a new lib folder



Howdy,
You can, and it's encouraged.  The app development guide has details and
an example:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 2:19 PM
>To: [EMAIL PROTECTED]
>Subject: Create a new lib folder
>
>Hi,
>
>I am trying to get the send mail example working, and previous
questions
>I asked, discovered that the mail.jar and activation.jar files need to 
>be in a lib folder.  It is also my understanding that this lib folder 
>can be local to the application of global.  When the file are in the 
>common\lib folder everything is ok.  However when I put them in the 
>local lib folder (inside the web-inf folder) the example does not work.

>Can I have a local lib folder?
>
>Mark
>
>
>-
>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: Tomcat Startup Hanging

2003-05-29 Thread Mark Irvine LCGI
Jason,

Many thanks for the reply it seems to have worked.

In doing this the shutdown method also stops reporting a java.net
exception, does the javaw just simply hide the error messages?
Apologies if this seems a stupid question, but I am very new to this.

Mark

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: 28 May 2003 20:31
To: Tomcat Users List
Subject: Re: Tomcat Startup Hanging


On Thu, 29 May 2003 03:25, Mark Irvine LCGI wrote:
> Hi,
>
> When starting Tomcat using catalina run, the startup process appears 
> to
> hang:

> Should the DOS window not disappear?
>
> Mark

This is frequently discussed, it is because by default it uses java.exe
and 
not javaw.exe and is by design to change this have a look at the
following 
thread:

http://marc.theaimsgroup.com/?l=tomcat-user&m=105323976930076&w=2

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[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]



Tomcat Startup Hanging

2003-05-29 Thread Mark Irvine LCGI
Hi,

When starting Tomcat using catalina run, the startup process appears to
hang:

Using CATALINA_BASE:   C:\jakarta-tomcat
Using CATALINA_HOME:   C:\jakarta-tomcat
Using CATALINA_TMPDIR: C:\jakarta-tomcat\temp
Using JAVA_HOME:   C:\j2sdk1.4.1
28-May-2003 20:19:57 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
28-May-2003 20:20:00 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

Should the DOS window not disappear?

Mark


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



Create a new lib folder

2003-05-29 Thread Mark Irvine LCGI
Hi,

I am trying to get the send mail example working, and previous questions
I asked, discovered that the mail.jar and activation.jar files need to
be in a lib folder.  It is also my understanding that this lib folder
can be local to the application of global.  When the file are in the
common\lib folder everything is ok.  However when I put them in the
local lib folder (inside the web-inf folder) the example does not work.
Can I have a local lib folder?

Mark


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



RE: Startup Problem - Newbie

2003-05-28 Thread Mark Irvine LCGI
Hi,

Thanks for the relpy.  Probably a stupid question but what do the Mbean
tags do?

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 28 May 2003 09:33
To: [EMAIL PROTECTED]
Subject: RE: Startup Problem - Newbie


comment the Mbean tags in the server.xml and restart and you should be
fine ... :)

-Original Message-
From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
Sent: 28 May 2003 09:24
To: [EMAIL PROTECTED]
Subject: Startup Problem - Newbie


Hi,

When I try to start Tomcat using the Start and Stop files provided the
following error is generated:

28-May-2003 09:18:34 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
28-May-2003 09:18:34 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
28-May-2003 09:18:34 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
28-May-2003 09:18:35 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:227
)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:402)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:854)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:828)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:372)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:226)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
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.
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.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
28-May-2003 09:18:37 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

Appart from follow the instructions on how to use IIS and Tomcat, I have
changed nothing from the default state.

Any suggestions would be welcome,

Mark


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



Startup Problem - Newbie

2003-05-28 Thread Mark Irvine LCGI
Hi,

When I try to start Tomcat using the Start and Stop files provided the
following error is generated:

28-May-2003 09:18:34 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
28-May-2003 09:18:34 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
28-May-2003 09:18:34 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
28-May-2003 09:18:35 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:227
)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:402)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:854)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:828)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:372)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:226)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
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.
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.main(Bootstrap.java:203)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24-LE-jdk14
28-May-2003 09:18:37 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

Appart from follow the instructions on how to use IIS and Tomcat, I have
changed nothing from the default state.

Any suggestions would be welcome,

Mark


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



RE: SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

Thank you very much for your help - It Works!!!

However I'm still a little confused.  Before moving the mail.jar and
activation.jar files to the common\lib folder, they were in the
examples\WEB-INF\lib (I had to create the lib folder).  I checked the
entire tomcat directory and there was only one copy of each file, I even
removed the files in the C drive of the computer.  In this situation the
sendmailservlet did not work.  Do you have any idea why?  Having created
the lib folder must I edit an XML configuration file?

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2003 20:17
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: SendMailServlet



Howdy,

>Many thanks for your reply.  This did change the error message to:
>
>ENCOUNTERED EXCEPTION: java.lang.NoClassDefFoundError: 
>javax/mail/Session
>java.lang.NoClassDefFoundError: javax/mail/Session

Ah, now we're getting somewhere.  You have multiple copies of the
JavaMail API of different versions in your tomcat installation.  Ensure
you only have one copy of the JavaMail API around.  Also make sure
mail.jar and activation.jar are in the same classloader repository (i.e.
both in WEB-INF/lib, or both in common/lib, but not in separate places)
to be safe.

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]




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



RE: SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

Many thanks for your reply.  This did change the error message to:

ENCOUNTERED EXCEPTION: java.lang.NoClassDefFoundError:
javax/mail/Session 
java.lang.NoClassDefFoundError: javax/mail/Session
at
org.apache.naming.factory.MailSessionFactory$1.run(MailSessionFactory.ja
va:163)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.naming.factory.MailSessionFactory.getObjectInstance(MailSessi
onFactory.java:147)
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
ory.java:186)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at SendMailServlet.doPost(SendMailServlet.java:63)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2003 20:09
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: SendMailServlet



Howdy,
What CLASSPATH?

You should put the mail.jar (and activation.jar file required by
JavaMail) into the WEB-INF/lib directory of the webapp that needs the
mail API.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 3:07 PM
>To: 'Tomcat Users List'
>Subject: RE: SendMailServlet
>
>Hi,
>
>The JavaMail was installed in a folder called javamail-1.3 in the C 
>drive.  The CLASSPATH was updated appropiately.
>
>Mark
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 27 May 2003 18:54
>To: Tomcat Users List
>Subject: RE: SendMailServlet
>
>
>
>Howdy,
>Where did you "install" the JavaMail jar?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTE

RE: SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

The JavaMail was installed in a folder called javamail-1.3 in the C
drive.  The CLASSPATH was updated appropiately.

Mark

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 27 May 2003 18:54
To: Tomcat Users List
Subject: RE: SendMailServlet



Howdy,
Where did you "install" the JavaMail jar?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mark Irvine LCGI [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, May 27, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: SendMailServlet
>
>Hi,
>
>I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of the

>examples work fine with the exception of the SendMailServlet.  I have 
>already downloeaded the Jave Mail API and installed it.  I have also 
>tried to run the samples provided with the Java Mail API - they all
work
>fine.  There error message is as follows:
>
>java.lang.NoClassDefFoundError: javax/mail/Message
>   at java.lang.Class.getDeclaredConstructors0(Native Method)
>   at
>java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
>   at java.lang.Class.getConstructor0(Class.java:1762)
>   at java.lang.Class.newInstance0(Class.java:276)
>   at java.lang.Class.newInstance(Class.java:259)
>   at 
>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja
v
>a:903)
>   at
>org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
6
>68)
>   at 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
>e.java:210)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
>e.java:191)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
>Base.java:494)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
1
>5)
>   at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
>:180)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
a
>lve.java:171)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
>:172)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:641)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
>java:174)
>   at 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
>nvokeNext(StandardPipeline.java:643)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
>80)
>   at
>org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>   at
>org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
>   at
>org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
>   at java.lang.Thread.run(Thread.java:536)
>
>Any help would be approciated,
>
>Mark
>
>
>-
>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]



SendMailServlet

2003-05-27 Thread Mark Irvine LCGI
Hi,

I recently installed Tomcat 4.1.24 along side IIS5.0 (W2K).  All of the
examples work fine with the exception of the SendMailServlet.  I have
already downloeaded the Jave Mail API and installed it.  I have also
tried to run the samples provided with the Java Mail API - they all work
fine.  There error message is as follows:

java.lang.NoClassDefFoundError: javax/mail/Message
at java.lang.Class.getDeclaredConstructors0(Native Method)
at
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.lang.Class.getConstructor0(Class.java:1762)
at java.lang.Class.newInstance0(Class.java:276)
at java.lang.Class.newInstance(Class.java:259)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:903)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:6
68)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)

Any help would be approciated,

Mark


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



WebappClassLoader: Resource .class' is missing ??

2001-10-04 Thread Chuck . Irvine

We just recently upgraded to Tomcat 4.0. To enable class reloading for 
our webapp, I inserted:

  

into the server.xml file. Reloading seems to work about 75% of the 
time. Other times we get a message of the form: 

  WebappClassLoader: Resource 
'/WEB-INF/classes/com/sprint/fms/servlet/GetCktWfmList.class' is missing

The missing class is always one of our servlet classes. The "missing" 
class is always right there where it ought to be. If we bounce tomcat, 
the missing class message goes away. 

Any ideas what might be wrong? Thanks

Chuck




Newbie Request: an Example Ant build.xml File

2001-08-03 Thread Chuck . Irvine

Being new to both Ant and Tomcat, I'm wondering if someone could point 
me to a good example of an Ant build.xml for for building and deploying 
servlets under Tomcat. Thanks for your help. (I looked for this in the 
faqs but couldn't find any relevant info.)

Chuck




Re: tomcat on a home machine??? < THANX >

2001-06-27 Thread irvine

Thanx to all who replied.

After I got home I fired up linux, tomcat, and netscape;
entered http://localhost:8080 in the location box and
everything worked fine.

What I did wrong this morning I do not.

Anyway, thanx again

T:Irvine




Re: tomcat on a home machine???

2001-06-27 Thread irvine


I installed j2sdk-1.2.2 and jakarta-tomcat-4.0
this morning. I set JAVA_HOME and TOMCAT_HOME
in my /etc/profile started tomcat by executing
/usr/local/jakarta-tomcat-4.0/bin/start and all
seemed to go O.K.

I fired up x window and was naive to believe
that I could just enter http://localhost:8080
in the location bar of netscape and be able to
see the tomcat homepage.

It didn't work and I started to wonder whether what
I wanted to do was possible and if so how. Maybe some
files defining localhost are not quite as they should
be.

> Good luck.
Thanks I may need it :)

T:Irvine

On Wed, 27 Jun 2001, D. Jay Newman wrote:

> > I should add that I wanted to know if it is
> > possible to install and use tomcat for test
> > purposes. That is to develop and test programs
> > at home and not make them available on the internet
> > - not at least from my home machine.
>
> You can install Tomcat on a home machine. There doesn't need to be
> any connection to the internet other than to download all the stuff
> you need (Tomcat, Java, that sort of thing).
>
> I have Tomcat installed on a linux machine at home without any problems.
> Setup could be easier, but its not a difficult task either. I created
> a startup script for rc.d/init.d so that it would startup automatically.
>
>
> I believe the license allows you to do pretty much whatever you want with
> Tomcat.
>




Re: tomcat on a home machine???

2001-06-27 Thread irvine


I should add that I wanted to know if it is
possible to install and use tomcat for test
purposes. That is to develop and test programs
at home and not make them available on the internet
- not at least from my home machine.

T:Irvine

ps which faq did you mean - there seem to be so
many. I'll A keep searching though.

On Wed, 27 Jun 2001, Charan Kishore Singla wrote:

> yah you can, read faq file related to tomcat, all things would be clear.
>
> Thanks
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 27, 2001 1:38 PM
> Subject: tomcat on a home machine???
>
>
> > Hello
> >
> > I have linux installed at home and have only a
> > modem connecting me to the internet through a
> > local service provider.
> >
> > My questions are:
> >
> > Is it possible for me to install and use tomcat
> > without a permenant connection.
> >
> > If it is possible what files would need to be
> > configured to allow me to do so.
> >
> > What url would I need to call to access tomcat's
> > homepage.
> >
> > Apologies if this question has been asked b4.
> >
> > T:Irvine
>




tomcat on a home machine???

2001-06-27 Thread irvine

Hello

I have linux installed at home and have only a
modem connecting me to the internet through a
local service provider.

My questions are:

Is it possible for me to install and use tomcat
without a permenant connection.

If it is possible what files would need to be
configured to allow me to do so.

What url would I need to call to access tomcat's
homepage.

Apologies if this question has been asked b4.

T:Irvine




RE: Tomcat, IIS and virtual hosts

2001-05-03 Thread Duncan Irvine

I didn't spend too long on this, as we only needed the vhosts as a stop-gap
solution, and only needed three at that, but the only way I found to do it
was to have vhosts defined in both Apache and Tomcat.

Apache's vhosting knows the difference for the static pages, and any
.jsps/servlets for *any* of the servers are handed off to Tomcat without
vhosting.  Tomcat then knows the correct vhost as well, and serves the
relevant jsp.  I forget which (but I believe Apache) complained about the
mod_jk config appearing within a vhost definition.  I've no idea about IIS
unfortunately - I only use real web-servers!

The rest of the information you need is in the docs, and you should be able
to work it out yourself.  

There may be a better way to do it, but I didn't have the time to find it.

Hope this helps,
Duncan.

P.S. I can probably dig the old config files out if you need them, but I
don't have them to hand at the mo.


> -Original Message-
> From: Brian Murray [mailto:[EMAIL PROTECTED]]
> Sent: 03 May 2001 08:42
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat, IIS and virtual hosts
> 
> 
> > Apache is a much better solution for virtual hosts than IIS
> 
> He's using IIS and I'm using Apache.  What we have in common 
> is that we're both after examples of
> setting up Tomcat to work with virtual hosts.  I'm sorry if 
> that was not clear.
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.




RE: Why Use apache

2001-05-02 Thread Duncan Irvine

I would suggest that Apache is also more secure - it's been around longer,
and has had more development, thus has had longer to mature.  If you hide
Tomcat behind Apache, then any bugs that may appear in Tomcat's URL parsing
(for example) are less of a worry.

Duncan.


> -Original Message-
> From: David M. Rosner [mailto:[EMAIL PROTECTED]]
> Sent: 02 May 2001 16:06
> To: [EMAIL PROTECTED]
> Subject: RE: Why Use apache
> 
> 
> If I have all my static html and graphics loading off of 
> other servers, is 
> there any reason to use Apache with Tomcat? Is the 
> combination more stable 
> or is performance better with both running?
> 
> thanks
> 
> -dave
> 
> At 11:00 AM 5/2/2001, Ronan Derby wrote:
> >tomcat isn't as good as apache at serving static html files 
> and images.
> >also, with apache up and running you can do other stuff like 
> execute cgi
> >scripts and so on.
> >
> >-Original Message-
> >From: Skinner, Dallas M [mailto:[EMAIL PROTECTED]]
> >Sent: 02 May 2001 15:48
> >To: [EMAIL PROTECTED]
> >Subject: Why Use apache
> >
> >
> >Excuse me if this question is obvious.  If Tomcat can be run 
> in a standalone
> >mode, why should it be used in conjunction with apache?
> >
> >Thanks
> >
> >Dallas Skinner
> 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.




RE: Cache problem with IE

2001-03-13 Thread Duncan Irvine

I'm sure someone will jump on this from a great height if I'm wrong, but I
seem to recall that the cache settings are for intermediate caches - not the
browser.  The browser can cache pages as it sees fit - provided that it
checks to see if they've been updated, but the cache control settings are
there to stop intermediate caches from falsely reporting a page as not
having changed.

Duncan.


> -Original Message-
> From: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
> Sent: 13 March 2001 16:13
> To: [EMAIL PROTECTED]
> Subject: Cache problem with IE
> 
> 
> Hi,
> 
> with the code below I can get netscape not to cache a jsp page but it
> does not work with Internet-Explorer.
> Does anybody know why?
> 
> 
> response.setHeader("Cache-Control", "no-cache");
> response.setHeader("Pragma", "no-cache");\
> 
> 
> 
> Zsolt
> 
> -- 
> Zsolt Koppany
> Intland GmbH www.intland.com
> Schulze-Delitzsch-Strasse 16
> D-70565 Stuttgart
> Tel: +49-711-7871080 Fax: +49-711-7871017
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.


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




RE: Tomcat and CGI

2001-02-23 Thread Duncan Irvine
I think you'll need Apache (and perl/whatever) for CGI scripts.

---
Duncan Irvine
email: [EMAIL PROTECTED]

For-pay Internet distributed processing.
http://www.ProcessTree.com/?sponsor=54231



> -Original Message-
> From: Roberto Nohara [mailto:[EMAIL PROTECTED]]
> Sent: 23 February 2001 10:10
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat and CGI
> 
> 
> Could anyone tell me what shoud I do or what file should I 
> have to configure
> in order to run any file with the .cgi extension as a CGI and not just
> displaying it .
> 
> Thank you,
> 
> Robert
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 



This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.


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


RE: EARGENT!

2001-02-13 Thread Duncan Irvine

Frankly, this sounds to me more like a problem with your EJB code.  If you
can get some of your JSPs/servlets to work, but some fail, then the problem
probably isn't with Apache, nor the Apache->Tomcat bridge.  Although it
might be a subtle configuration problem.  Check to see if there's a
correlation between EJB usage and Tomcat failing on a particular JSP.

>From the Java Exception trace you posted, I would suggest that Tomcat is
trying to connect to your EJB server but having a problem sending the
parameters of the method.  I know that some implementations of RMI over
CORBA require that any classes you send have fully public member variables.
A pain, but it might be worth a try if all else fails.  Check out the Docs
for the container first.


> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Subject: Re: EARGENT!
> 
> 
> Do you have Apache running? Or you run in standalone mode? 
> (Only Tomcat)
> 
> 
> >> Original Message <<
> 
> On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding 
> EARGENT!:
> 
> 
> > Hi,
> 
> > I am running Tomcat/JServ on Linux with Inprise ejb 
> container. When I 
> access
> > one of my jsp pages, I got error message from Apache's 
> error log (see
> > bellow). I checked mod_jserv.log also. There some info in the 
> mod_jserv.log
> > such as:
> 
> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.
> > ...
> > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > ...
> 
> > I have no idea what's causing this. And, not all jsp access 
> fails. Most 
> of
> > the jsps functioning correctly.
> 
> > Bellow is the error I found from apache's error_log.
> 
> > I need to fix this now and get the app running right away! 
> So please help
> > me!
> 
> > Many thanks.
> 
> > Lifeng
> 
> > java.rmi.MarshalException: CORBA MARSHAL 0[]
> >  at java.lang.Throwable.(Throwable.java:96)
> >  at java.lang.Exception.(Exception.java:44)
> >  at java.io.IOException.(IOException.java:49)
> >  at java.rmi.RemoteException.(RemoteException.java:58)
> >  at java.rmi.MarshalException.(MarshalException.java:49)
> >  at java.lang.reflect.Constructor.newInstance(Native Method)
> >  at 
> com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)
> 
> >  at
> > 
> com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(Uti
> lImpl.java:3
> 26
> > )
> 
> >  at
> > 
> com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(Util
> Impl.java:45
> 1)
> 
> >  at javax.rmi.CORBA.Util.mapSystemException(Util.java:51)
> >  at
> > 
> com.rims.memberlink.ejb._NewEnrollee_Stub.validateNewDemo(_New
Enrollee_Stu
> b.
> > java:208)
> 
> >  at
> > 
> com.rims.memberlink.toolkit.NewEnrollmentToolkit.ValidateCurre
> ntPage(NewEn
> ro
> > llmentToolkit.java:1318)
> 
> >  at
> > 
> com.rims.memberlink.toolkit.NewEnrollmentToolkit.processPage(N
> ewEnrollment
> To
> > olkit.java:995)
> 
> >  at
> > 
> _0002fValidate_0002ejspValidate_jsp_0._jspService(_0002fValida
> te_0002ejspV
> al
> > idate_jsp_0.java:373)
> 
> >  at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> > 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.
> ja
> > va:174)
> 
> >  at
> > 
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> .java:261)
> 
> >  at 
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> > 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:50
> 3)
> 
> >  at
> > 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> >  at
> > 
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnecti
> on
> > (Ajp12ConnectionHandler.java:156)
> 
> >  at
> > 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:3
> 38
> > )
> 
> >  at java.lang.Thread.run(Thread.java:498)
> 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> NOTICE:  This communication may contain confidential or other 
> privileged information.  If you are not the intended 
> recipient, or believe that you have received this 
> communication in error, please do not print, copy, 
> retransmit, disseminate, or otherwise use the information.  
> Also, please indicate to the sender that you have received 
> this email in error, and delete the copy you received.  Any 
> communication that does not relate to official Columbia 
> business is that of the sender and is neither given nor 
> endorsed by Columbia.  Thank you.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [

Tomcat 3.2/Apache Virtual Hosts

2001-02-12 Thread Duncan Irvine

Hi all,
I've got a working Tomcat installation, and a working Apache
installation.  I've installed mod_jk, and am using the mod_jk.conf-auto file
within the httpd.conf.  This all works fine (I can access
http://myhost.mydomain.com:8080/examples/ and
http://myhost.mydomain.com/examples/ and both work fine.

What I want to do though, is have Apache serve multiple VHosts - one using
Tomcat, and others just out of Apache.  So, what I want to do is be able to
access http://tomcat.mydomain.com/examples and get Tomcat, and
http://docs.mydomain.com/ and get a set of online docs (served by apache.

Which is of course, where my problem arises...  As soon as I put the mod_jk
configuration within a VirtualHost directive apache refuses to start.  The
Syntax checks out OK, but it just refuses to start.  If I check Apache's
error log, I see an entry as follows:
[Mon Feb 12..] [emerg] (2)No such file or directory: Error while opening the
workers

And that's it.

Anybody got any ideas?  All help appreciated.  It's driving me crazy.

System: SUN Solaris 2.7, JDK1.3, Tomcat 3.2.1, Apache 1.3.12, gcc 2.95, perl
5.

Cheers,
Duncan.





This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.


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




Jasper losing classpath?!?

2001-02-09 Thread Duncan Irvine

Hi all,
I've been merrily using Tomcat for some time now (v3.2.1) and have
just come accross a rather bizarre one... Jasper seems to 'forget' the
classpath after a while and refuses to compile new JSPs.  All is well after
startup, things run smoothly for an hour or two, and Tomcat will continue to
serve already compiled JSPs.  However, if I haven't used a given JSP after a
couple of hours (not sure of a specific time) it will not compile.  Jasper
throws a 'Class not Found' JasperException and that's it.  If Tomcat is
restarted the same JSP will compile and run quite happily.  Is this a known
problem with Jasper, or am I just doing something really dumb with the
config.

It's not a major problem, as I should think that the production box can be
'pre-hit'  to compile all the JSPs beforehand, and is unlikely to be updated
often enough to warrant dynamic recompilation, but it'd be nice to know.

Cheers,
Duncan.




This message contains information which may be privileged
and confidential and subject to legal privilege. If you are not
the intended recipient, you may not peruse, use, disseminate,
distribute or copy this message. If you have received this 
message in error, please notify the sender immediately by 
e-mail, facsimile, or telephone and return or destroy the 
original message. Sopheon and its officers are not responsible
for any statements or material in this e-mail and in any attachment
to it which might give rise to any criminal or civil claim.


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