Fw: Tomcat WAR expansion

2003-02-28 Thread Prathap
Hi Craig,

Can you please help me out. as per phillip i am approaching you...

 Hi,

When i place a WAR file into the Tomcat webapps folder, on Restart tomcat is
not expanding the WAR if server.xml contains the Context entry
related  to this, If i remove the Context entry it is expanding. Is there
any configuration required to expand the WAR by keeping the
Context entry in the server.xml?
 I am using Tomcat 4.1.18 version.

Thanks and Regards,
Pratt

- Original Message -
From: "Phillip Qin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 11:17 PM
Subject: RE: Tomcat WAR expansion


> I gave up. Instead, I use ant to create a webapps/myapp dir and copy all
> stuff to that directory. Craig should be the right person to answer this
> question.
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: Prathap [mailto:[EMAIL PROTECTED]
> Sent: February 28, 2003 11:29 AM
> To: Tomcat Users List
> Subject: Re: Tomcat WAR expansion
>
> Hi
> I am getting this trace.. Can you figure it out??
>
> 2003-02-28 21:55:02 WebappLoader[/webdav]: Deploying class repositories to
> work directory C:\test\Tomcat41\work\Standalone\localhost\webdav
> 2003-02-28 21:55:02 StandardManager[/webdav]: Seeding random number
> generator class java.security.SecureRandom
> 2003-02-28 21:55:02 StandardManager[/webdav]: Seeding of random number
> generator has been completed
> 2003-02-28 21:55:02 StandardWrapper[/webdav:default]: Loading container
> servlet default
> 2003-02-28 21:55:02 StandardWrapper[/webdav:invoker]: Loading container
> servlet invoker
> 2003-02-28 21:55:02 StandardContext[/test]: Resources start failed:
> 2003-02-28 21:55:02 StandardContext[/test]: Context startup failed due to
> previous errors
> 2003-02-28 21:55:02 StandardContext[/test]: Exception during cleanup after
> start failed
> LifecycleException:  Container StandardContext[/test] has not been started
>  at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
>  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:512)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
> Regards,
> Pratt
> - Original Message -
> From: "Phillip Qin" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Friday, February 28, 2003 9:55 PM
> Subject: RE: Tomcat WAR expansion
>
>
> > I saw some error messages and my app war is not expanded. Did you see
them
> > in your log?
> >
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
> > current available=false
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
> > Resources
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start
failed:
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring
> non-privileged
> > default Loader
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
> > Manager
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
> > container startup
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed
> due
> > to previous errors
> > 2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during
cleanup
> > after start failed
> > LifecycleException:  Container StandardContext[/lciponline] has not been
> > started
> > at
> > org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
> > at
> >
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
> > at
> >
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> > 21)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> > at
> >
>
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
> > java:529)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > )
> > at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm

Re: WEB-INF/classes not loading from corrrect classloader

2003-02-28 Thread Craig R
It happens inside the debugger (Eclipse).  Basically, what I have 
come to realize is happening is that Eclipse implicitly includes 
the current project (in my case the web-app) in the system classpath.
So when I start tomcat by invoking Bootstrap.main thru the debugger,
the project/application classfiles are always going to be loaded 
by the application/system classloader, not the webapp classloader.
I found a plugin by sysdeo.com that solves this by calling bootstrap 
indirectly, so as not to include the application in the system classpath.


Thanks,
Craig

At Friday, 28 February 2003, "Larry Meadors" <[EMAIL PROTECTED]
com> wrote:

>Does this happen with the JPDA debugger, or running tomcat inside your
>IDE?
>
 [EMAIL PROTECTED] 02/28/03 16:38 PM >>>
>Hello,
>While I'm having no problems running *outside* a debugger, I am 
running 
>into a problem with classloading as I try to run 2 web-application 
>through a debugger.  The two projects have overlapping copies of 
>the same class files (ie, both projects use Class A).  The problem 
>is that when Tomcat (4.0.6) is run through my debugger, the
>WEB-INF/classes 
>are not loaded by org.apache.catalina.loader.WebappClassLoader.  
>They are apparently loaded by the system classloader.  So my Class 
>A instance is shared between my 2 web-apps when in fact they should 
>each have their own instance.  Run outside the debugger, the
>WebappClassloader 
>does its job & both web-apps get their unique copies of class A. 
>Here is what Class A has to say about who's loading it:
>
>Outside the debugger:
>-
>Class A's ClassLoader's class is [class org.apache.catalina.loader.
>WebappClassLoader]
>ClassLoader's parent class is [class
>org.apache.catalina.loader.StandardClassLoader]
>ClassLoader's parent class is [class
>org.apache.catalina.loader.StandardClassLoader]
>ClassLoader's parent class is [class sun.misc.Launcher$AppClassLoader]
>ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]
>
>Inside the debugger:
>
>[EMAIL PROTECTED] ClassLoader's class is [class
>sun.misc.Launcher$AppClassLoader]
>ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]
>
>Is there a way that I can prevent the WEB-INF classes from being 
>loaded by the System classloader when using the debugger?  I know 
>this was part of the servlet spec as the Tomcat documentation notes:
>
>"The web application class loader diverges from the default Java 
>2 delegation model (in accordance with the recommendations in the 
>Servlet Specification, version 2.3, section 9.6). When a request 
>to load a class from the web application's WebappX class loader is 
>processed, this class loader will look in the local repositories 
>first, instead of delegating before looking."
>
>So why isn't WebbappClassLoader loading the WEB-INF/classes when 
>debugging?  Thanks in advance for your help!
>
>Craig
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>








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



Re: realm getRole() method ?

2003-02-28 Thread Martin Smith
If I understand your point, it's a very important one.  How are we going 
to get SSO unless the COTS apps can get role info from the central 
auth/auth server??

martin

Donald Ball wrote:

That's an interesting feature/restriction. I guess while I have your
attention :) I'd ask how/if you'd solve this problem using
container-managed security? You've got a webapp which, I dunno, implements
a document management system. The DMS puts documents into several
categories, and various users can add, edit, or remove documents in those
categories, depending on their roles in those categories. Assuming the
categories are dynamic, there's no way to implement this using
container-managed security, is there?
- donald

-
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: WEB-INF/classes not loading from corrrect classloader

2003-02-28 Thread Larry Meadors
Does this happen with the JPDA debugger, or running tomcat inside your
IDE?

>>> [EMAIL PROTECTED] 02/28/03 16:38 PM >>>
Hello,
While I'm having no problems running *outside* a debugger, I am running 
into a problem with classloading as I try to run 2 web-application 
through a debugger.  The two projects have overlapping copies of 
the same class files (ie, both projects use Class A).  The problem 
is that when Tomcat (4.0.6) is run through my debugger, the
WEB-INF/classes 
are not loaded by org.apache.catalina.loader.WebappClassLoader.  
They are apparently loaded by the system classloader.  So my Class 
A instance is shared between my 2 web-apps when in fact they should 
each have their own instance.  Run outside the debugger, the
WebappClassloader 
does its job & both web-apps get their unique copies of class A. 
Here is what Class A has to say about who's loading it:

Outside the debugger:
-
Class A's ClassLoader's class is [class org.apache.catalina.loader.
WebappClassLoader]
ClassLoader's parent class is [class
org.apache.catalina.loader.StandardClassLoader]
ClassLoader's parent class is [class
org.apache.catalina.loader.StandardClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$AppClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]

Inside the debugger:

[EMAIL PROTECTED] ClassLoader's class is [class
sun.misc.Launcher$AppClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]

Is there a way that I can prevent the WEB-INF classes from being 
loaded by the System classloader when using the debugger?  I know 
this was part of the servlet spec as the Tomcat documentation notes:


"The web application class loader diverges from the default Java 
2 delegation model (in accordance with the recommendations in the 
Servlet Specification, version 2.3, section 9.6). When a request 
to load a class from the web application's WebappX class loader is 
processed, this class loader will look in the local repositories 
first, instead of delegating before looking."

So why isn't WebbappClassLoader loading the WEB-INF/classes when 
debugging?  Thanks in advance for your help!

Craig








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



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



RE: RE:setting up tomcat 4.1

2003-02-28 Thread Tam, Michael
This only happens when tomcat can't find JAVA_HOME.  I just tested it a
moment ago when I removed my environment variable.
Did you verify the variable by typing %JAVA_HOME% in the CMT prompt??

-Original Message-
From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: RE:RE:setting up tomcat 4.1


 >Message-ID:
<[EMAIL PROTECTED]>
 >From: "Tam, Michael" <[EMAIL PROTECTED]>
 >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
 >Subject: RE: setting up Tomcat 4.1
 >Date: Fri, 28 Feb 2003 13:18:15 -0500
 >MIME-Version: 1.0
 >Content-Type: text/plain;
 >   charset="iso-8859-1"
 >
 >Did you set JAVA_HOME in your environment variable?
 >i.e.  JAVA_HOME=C:\j2sdk1.4.1

Yes I have JAVA_HOME=D:\j2sdk1.4.1   which is where my Javasdk is located.

 >-Original Message-
 >From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
 >Sent: Friday, February 28, 2003 9:41 AM
 >To: [EMAIL PROTECTED]
 >Subject: setting up Tomcat 4.1
 >
 >I have been trying to setup Tomcat 4.1 I have entered all class and other
 >paths. When I run Startup it goes through a whole set of operations then
 >finishes with "can not find -Djava.endorsed.dirs="
 >I someone can help I'd appreciate it. If you need a log of the startup
 >operations I would create one if I knew how, so if someone can tell me I'd
 >appreciates that also.
 >I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
 >sp3 with all security and other patches.
 >I have Sun's Java j2sdk1.4.1



--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried 



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



WEB-INF/classes not loading from corrrect classloader

2003-02-28 Thread Craig R
Hello,
While I'm having no problems running *outside* a debugger, I am running 
into a problem with classloading as I try to run 2 web-application 
through a debugger.  The two projects have overlapping copies of 
the same class files (ie, both projects use Class A).  The problem 
is that when Tomcat (4.0.6) is run through my debugger, the WEB-INF/classes 
are not loaded by org.apache.catalina.loader.WebappClassLoader.  
They are apparently loaded by the system classloader.  So my Class 
A instance is shared between my 2 web-apps when in fact they should 
each have their own instance.  Run outside the debugger, the WebappClassloader 
does its job & both web-apps get their unique copies of class A. 
Here is what Class A has to say about who's loading it:

Outside the debugger:
-
Class A's ClassLoader's class is [class org.apache.catalina.loader.
WebappClassLoader]
ClassLoader's parent class is [class org.apache.catalina.loader.StandardClassLoader]
ClassLoader's parent class is [class org.apache.catalina.loader.StandardClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$AppClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]

Inside the debugger:

[EMAIL PROTECTED] ClassLoader's class is [class sun.misc.Launcher$AppClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]

Is there a way that I can prevent the WEB-INF classes from being 
loaded by the System classloader when using the debugger?  I know 
this was part of the servlet spec as the Tomcat documentation notes:


"The web application class loader diverges from the default Java 
2 delegation model (in accordance with the recommendations in the 
Servlet Specification, version 2.3, section 9.6). When a request 
to load a class from the web application's WebappX class loader is 
processed, this class loader will look in the local repositories 
first, instead of delegating before looking."

So why isn't WebbappClassLoader loading the WEB-INF/classes when 
debugging?  Thanks in advance for your help!

Craig








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



Two Realms for client authentication

2003-02-28 Thread Manuel Gil Perez
Hi.

Can I use two Realms for client authentication?? I would like to define a 
set of servlets that uses a Realm and another set of sevlets that uses 
another Realm. Can I make this??

Regards.

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


Re: Is there a common lib between webapps, but not instances?

2003-02-28 Thread Mark Strecker
$CATALINA_HOME/shared/lib shares jars between webapps but not tomcat.

Mark

Frank Diakovasilis wrote:

I have multiple instance of Tomcat set up with multiple webapps in each.  I
would like a jar file to be shared across the webapps, but not across the
instances.  Is there a directory in place for that, or does anyone know how
to get around this?
TomcatHome\common\ is shared across instances so is not good.
 



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


RE:RE:setting up tomcat 4.1

2003-02-28 Thread Curtis Seyfried
>Message-ID: <[EMAIL PROTECTED]>
>From: "Tam, Michael" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: setting up Tomcat 4.1
>Date: Fri, 28 Feb 2003 13:18:15 -0500
>MIME-Version: 1.0
>Content-Type: text/plain;
>   charset="iso-8859-1"
>
>Did you set JAVA_HOME in your environment variable?
>i.e.  JAVA_HOME=C:\j2sdk1.4.1
Yes I have JAVA_HOME=D:\j2sdk1.4.1   which is where my Javasdk is located.

>-Original Message-
>From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 9:41 AM
>To: [EMAIL PROTECTED]
>Subject: setting up Tomcat 4.1
>
>I have been trying to setup Tomcat 4.1 I have entered all class and other
>paths. When I run Startup it goes through a whole set of operations then
>finishes with "can not find -Djava.endorsed.dirs="
>I someone can help I'd appreciate it. If you need a log of the startup
>operations I would create one if I knew how, so if someone can tell me I'd
>appreciates that also.
>I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
>sp3 with all security and other patches.
>I have Sun's Java j2sdk1.4.1


--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried 



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


RE: ejbs and sql server [OT]

2003-02-28 Thread Raja Sekhar
Hi Michael,

Yes we have tried this combination.

..Raj 
--

On Fri, 28 Feb 2003 17:21:26  
 Tam, Michael wrote:
>Hi Raja,
>
>   Just curious, have you guys tried the JBOSS with embedded TOMCAT?
>
>Regards,
>Michael
>
>-Original Message-
>From: Raja Sekhar [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 2:19 PM
>To: Tomcat Users List
>Subject: RE: ejbs and sql server
>
>
>Typically if you have a JSP & EJB scnearion, then deploye JSP's on tomcat
>and configure JBOSS as EJB Container for ejb components. The way we
>configure Apache - Tomcat where tomcat acts as a JSP/ servlet engine,  here
>we need to configure Tomcat & JBoss for EJB.
>
>Regards,
>
>..Raj
>--
>
>On Fri, 28 Feb 2003 17:09:11  
> Tam, Michael wrote:
>>That is only a simple java class.  I think you need to do some more
>research
>>on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
>>give you my $.02 here (To experts, correct me if I am wrong about this).  
>>
>>EJB need to deployed in a EJB container which tomcat is not and in order to
>>use EJB with tomcat you have to do something like the following:
>>1) Deploy your EJBs in the EJB container
>>2) Provide some interfaces of your EJBs to tomcat such that your app in
>>tomcat can use to contact the EJB container and call EJBs to work.
>>
>>Hope this help.
>>
>>cheers,
>>Michael
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:44 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>http://128.91.107.144:8080/examples/jsp/index.html
>>
>>in the tomcat examples there is an example date as shown in the url above.
>
>>that date calls a class from web-apps/classes/date/JspCalendar.  they claim
>
>>this is use of a jsp page making an instance of a ejb (java bean).  how
>come
>>
>>they didn't have to set up additional software?  but everyone is saying you
>
>>need to install additional software so that tomcat can use ejbs?
>>
>>mike ni
>>
>>
>>
>>
>>
>>
>>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>>Subject: RE: ejbs and sql server
>>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>>
>>>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>>>Later, J
>>>
>>>-Original Message-
>>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, February 28, 2003 1:24 PM
>>>To: Tomcat Users List
>>>Subject: RE: ejbs and sql server
>>>
>>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>>
>>>Filip
>>>
>>>-Original Message-
>>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, February 28, 2003 12:21 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: RE: ejbs and sql server
>>>
>>>
>>>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>>>
>>>inside WEB-INF and they work?
>>>
>>>mike
>>>
>>>
>>>
>>>
>>>
>>>
>>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>>> >Subject: RE: ejbs and sql server
>>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>>> >
>>> >Well, you should try search example online i.e. through google.  EJB is
>>>a
>>> >standard and should work with any DBMS (usually ;) ). Once you find an
>>> >example and it should work on your choice of DBMS.
>>> >
>>> >-Original Message-
>>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>>> >Sent: Friday, February 28, 2003 11:28 AM
>>> >To: [EMAIL PROTECTED]
>>> >Subject: ejbs and sql server
>>> >
>>> >
>>> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>>>I
>>> >have different queries that i want to run but i want to make my
>>>connection
>>> >and queries in a EJB so i dont have to retype it in my JSP pages every
>>>time
>>> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
>>> >
>>> >mike
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >_
>>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>>> >http://join.msn.com/?page=features/junkmail
>>> >
>>> >
>>> >-
>>> >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]
>>>
>>>
>>>_
>>>Add photos to your messages with MSN 8. Get 2 months FREE*.
>>>http://join.msn.com/?page=features/featuredemail
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>-
>>>To unsubscrib

RE: ejbs and sql server [OT]

2003-02-28 Thread Raja Sekhar
Hi Michael,

Yes we have tried this combination.

..Raj 
--

On Fri, 28 Feb 2003 17:21:26  
 Tam, Michael wrote:
>Hi Raja,
>
>   Just curious, have you guys tried the JBOSS with embedded TOMCAT?
>
>Regards,
>Michael
>
>-Original Message-
>From: Raja Sekhar [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 2:19 PM
>To: Tomcat Users List
>Subject: RE: ejbs and sql server
>
>
>Typically if you have a JSP & EJB scnearion, then deploye JSP's on tomcat
>and configure JBOSS as EJB Container for ejb components. The way we
>configure Apache - Tomcat where tomcat acts as a JSP/ servlet engine,  here
>we need to configure Tomcat & JBoss for EJB.
>
>Regards,
>
>..Raj
>--
>
>On Fri, 28 Feb 2003 17:09:11  
> Tam, Michael wrote:
>>That is only a simple java class.  I think you need to do some more
>research
>>on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
>>give you my $.02 here (To experts, correct me if I am wrong about this).  
>>
>>EJB need to deployed in a EJB container which tomcat is not and in order to
>>use EJB with tomcat you have to do something like the following:
>>1) Deploy your EJBs in the EJB container
>>2) Provide some interfaces of your EJBs to tomcat such that your app in
>>tomcat can use to contact the EJB container and call EJBs to work.
>>
>>Hope this help.
>>
>>cheers,
>>Michael
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:44 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>http://128.91.107.144:8080/examples/jsp/index.html
>>
>>in the tomcat examples there is an example date as shown in the url above.
>
>>that date calls a class from web-apps/classes/date/JspCalendar.  they claim
>
>>this is use of a jsp page making an instance of a ejb (java bean).  how
>come
>>
>>they didn't have to set up additional software?  but everyone is saying you
>
>>need to install additional software so that tomcat can use ejbs?
>>
>>mike ni
>>
>>
>>
>>
>>
>>
>>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>>Subject: RE: ejbs and sql server
>>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>>
>>>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>>>Later, J
>>>
>>>-Original Message-
>>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, February 28, 2003 1:24 PM
>>>To: Tomcat Users List
>>>Subject: RE: ejbs and sql server
>>>
>>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>>
>>>Filip
>>>
>>>-Original Message-
>>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, February 28, 2003 12:21 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: RE: ejbs and sql server
>>>
>>>
>>>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>>>
>>>inside WEB-INF and they work?
>>>
>>>mike
>>>
>>>
>>>
>>>
>>>
>>>
>>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>>> >Subject: RE: ejbs and sql server
>>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>>> >
>>> >Well, you should try search example online i.e. through google.  EJB is
>>>a
>>> >standard and should work with any DBMS (usually ;) ). Once you find an
>>> >example and it should work on your choice of DBMS.
>>> >
>>> >-Original Message-
>>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>>> >Sent: Friday, February 28, 2003 11:28 AM
>>> >To: [EMAIL PROTECTED]
>>> >Subject: ejbs and sql server
>>> >
>>> >
>>> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>>>I
>>> >have different queries that i want to run but i want to make my
>>>connection
>>> >and queries in a EJB so i dont have to retype it in my JSP pages every
>>>time
>>> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
>>> >
>>> >mike
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >_
>>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>>> >http://join.msn.com/?page=features/junkmail
>>> >
>>> >
>>> >-
>>> >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]
>>>
>>>
>>>_
>>>Add photos to your messages with MSN 8. Get 2 months FREE*.
>>>http://join.msn.com/?page=features/featuredemail
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>-
>>>To unsubscrib

RE: ERROR while running servlet on mac os X

2003-02-28 Thread Jeff Corliss
Found this in the release-notes-4.1.txt:

Enabling invoker servlet:

Starting with Tomcat 4.1.12, the invoker servlet is no
longer available by 
default in all webapp. Enabling it for all webapps is
possible by editing
$CATALINA_HOME/conf/web.xml to uncomment the
"/servlet/*" servlet-mapping
definition.

Using the invoker servlet in a production environment
is not recommended and is unsupported.

Hope that helps,
JC

>From: apratim sharma 
>HTTP Status 503 - Servlet
>org.apache.catalina.INVOKER.HelloWorldExample is
>currently unavailable
>--->hi!!
>i'm getting following error on running servlet
>compiled by me
>
>message Servlet
org.apache.catalina.INVOKER.HelloWorld
>is currently unavailable
>
>description The requested service (Servlet
>org.apache.catalina.INVOKER.HelloWorld is currently
>unavailable) is not currently available.
>
>Apache Tomcat/4.1.18
>
>can anybody tell me the solution


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: Internal Server Error

2003-02-28 Thread Adam Denenberg
Yeah sorry should have included that.  Everything works fine on the normal
tomcat port of 8080. Its going through mod_jk that it breaks.

 thanks
Adam

On 2/28/03 5:30 PM, "Mike Jackson" <[EMAIL PROTECTED]> wrote:

> I'll ask the obvious question, is tomcat running?
> 
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
> 
>> -Original Message-
>> From: Adam Denenberg [mailto:[EMAIL PROTECTED]
>> Sent: Friday, February 28, 2003 2:29 PM
>> To: [EMAIL PROTECTED]
>> Subject: Internal Server Error
>> 
>> 
>> Hey ,
>> 
>>  I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4.
>> 
>> I am getting an internal server error with the folloing jk error in my
>> mod_jk.log file
>> 
>> [Fri Feb 28 17:15:43 2003]  [jk_uri_worker_map.c (558)]
>> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
>> *.jsp
>> [Fri Feb 28 17:15:43 2003]  [jk_worker.c (132)]: Into
>> wc_get_worker_for_name
>> ajp13
>> [Fri Feb 28 17:15:43 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
>> done did not found a worker
>> 
>> My workers.properties file is
>> 
>> workers.tomcat_home=/usr/local/tomcat
>> workers.java_home=/usr/local/java
>> ps=/
>> worker.list=ajp13
>> worker.ajp13.port=8009
>> worker.ajp13.host=localhost
>> worker.ajp13.type=ajp13
>> worker.ajp13.lbfactor=1
>> 
>>  and my httpd.conf section is
>> 
>>  JkWorkersFile /usr/local/apache/conf/workers.properties
>>  Alias /examples /usr/local/tomcat/webapps/examples
>>  JkLogFile  logs/jk.log
>>  JkLogLevel debug
>>  JkMount /examples/*.jsp ajp13
>>  JkMount /*.jsp ajp13
>> 
>> And server.xml relevant  is ..
>> 
>> >port="8009" minProcessors="5" maxProcessors="75"
>>acceptCount="10" debug="0"/>
>> 
>> The jk2/coyote on 8009  connector was commented out.
>> 
>>  Static content looks fine, however when trying to access a .jsp file, it
>> fails with an internal server error and the message above.
>> 
>>  Anyone seen this problem or can diagnose why I would get it?  I
>> cant figure
>> it for the life of me.
>> 
>>  thanks
>> Adam
>> 
>>  
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Internal Server Error

2003-02-28 Thread Mike Jackson
I'll ask the obvious question, is tomcat running?

--mikej
-=-
mike jackson
[EMAIL PROTECTED] 

> -Original Message-
> From: Adam Denenberg [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Internal Server Error
> 
> 
> Hey ,
> 
>  I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4.
> 
> I am getting an internal server error with the folloing jk error in my
> mod_jk.log file
> 
> [Fri Feb 28 17:15:43 2003]  [jk_uri_worker_map.c (558)]
> jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
> *.jsp
> [Fri Feb 28 17:15:43 2003]  [jk_worker.c (132)]: Into 
> wc_get_worker_for_name
> ajp13
> [Fri Feb 28 17:15:43 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
> done did not found a worker
> 
> My workers.properties file is
> 
> workers.tomcat_home=/usr/local/tomcat
> workers.java_home=/usr/local/java
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> 
>  and my httpd.conf section is
> 
>  JkWorkersFile /usr/local/apache/conf/workers.properties
>  Alias /examples /usr/local/tomcat/webapps/examples
>  JkLogFile  logs/jk.log
>  JkLogLevel debug
>  JkMount /examples/*.jsp ajp13
>  JkMount /*.jsp ajp13
> 
> And server.xml relevant  is ..
> 
> port="8009" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="0"/>
> 
> The jk2/coyote on 8009  connector was commented out.
> 
>  Static content looks fine, however when trying to access a .jsp file, it
> fails with an internal server error and the message above.
> 
>  Anyone seen this problem or can diagnose why I would get it?  I 
> cant figure
> it for the life of me.
> 
>  thanks
> Adam
> 
>  
> 
> 
> -
> 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: ejbs and sql server [OT]

2003-02-28 Thread Jeremy Whitlock
Raja,
I did and didn't get it working.  Probably my fault but I ended
up with OpenEJB.  I love it.  It can be found at
http://openejb.sourceforge.net  Later, J

-Original Message-
From: Tam, Michael [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 3:21 PM
To: 'Tomcat Users List'
Subject: RE: ejbs and sql server [OT]

Hi Raja,

   Just curious, have you guys tried the JBOSS with embedded TOMCAT?

Regards,
Michael

-Original Message-
From: Raja Sekhar [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:19 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server


Typically if you have a JSP & EJB scnearion, then deploye JSP's on
tomcat
and configure JBOSS as EJB Container for ejb components. The way we
configure Apache - Tomcat where tomcat acts as a JSP/ servlet engine,
here
we need to configure Tomcat & JBoss for EJB.

Regards,

..Raj
--

On Fri, 28 Feb 2003 17:09:11  
 Tam, Michael wrote:
>That is only a simple java class.  I think you need to do some more
research
>on EJB technology.  I haven't use EJB at all for almost 2 years but
I'll
>give you my $.02 here (To experts, correct me if I am wrong about
this).  
>
>EJB need to deployed in a EJB container which tomcat is not and in
order to
>use EJB with tomcat you have to do something like the following:
>1) Deploy your EJBs in the EJB container
>2) Provide some interfaces of your EJBs to tomcat such that your app in
>tomcat can use to contact the EJB container and call EJBs to work.
>
>Hope this help.
>
>cheers,
>Michael
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: RE: ejbs and sql server
>
>
>http://128.91.107.144:8080/examples/jsp/index.html
>
>in the tomcat examples there is an example date as shown in the url
above.

>that date calls a class from web-apps/classes/date/JspCalendar.  they
claim

>this is use of a jsp page making an instance of a ejb (java bean).  how
come
>
>they didn't have to set up additional software?  but everyone is saying
you

>need to install additional software so that tomcat can use ejbs?
>
>mike ni
>
>
>
>
>
>
>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>Subject: RE: ejbs and sql server
>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>
>>Or look at OpenEJB.  It's easy to setup.
http://openejb.sourceforge.net
>>Later, J
>>
>>-Original Message-
>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:24 PM
>>To: Tomcat Users List
>>Subject: RE: ejbs and sql server
>>
>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>
>>Filip
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 12:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>im unclear how EJBs work with tomkat.  do we just put all the
classfiles
>>
>>inside WEB-INF and they work?
>>
>>mike
>>
>>
>>
>>
>>
>>
>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>> >Subject: RE: ejbs and sql server
>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>> >
>> >Well, you should try search example online i.e. through google.  EJB
is
>>a
>> >standard and should work with any DBMS (usually ;) ). Once you find
an
>> >example and it should work on your choice of DBMS.
>> >
>> >-Original Message-
>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, February 28, 2003 11:28 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: ejbs and sql server
>> >
>> >
>> >Hi does anyone have examples of EJBs that connect to SQL Server
2000?
>>I
>> >have different queries that i want to run but i want to make my
>>connection
>> >and queries in a EJB so i dont have to retype it in my JSP pages
every
>>time
>> >i need it.  Also does anyone have examples of JSP pages calling
EJBs?
>> >
>> >mike
>> >
>> >
>> >
>> >
>> >
>> >_
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>>
>-
>> >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]
>>
>>
>>_
>>Add photos to your messages with MSN 8. Get 2 months FREE*.
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>---

Internal Server Error

2003-02-28 Thread Adam Denenberg
Hey ,

 I am using apache 1.3.X with tomcat 4.1.18 on solaris 7 and sun JDK 1.4.

I am getting an internal server error with the folloing jk error in my
mod_jk.log file

[Fri Feb 28 17:15:43 2003]  [jk_uri_worker_map.c (558)]
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 ->
*.jsp
[Fri Feb 28 17:15:43 2003]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Fri Feb 28 17:15:43 2003]  [jk_worker.c (136)]: wc_get_worker_for_name,
done did not found a worker

My workers.properties file is

workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/java
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

 and my httpd.conf section is

 JkWorkersFile /usr/local/apache/conf/workers.properties
 Alias /examples /usr/local/tomcat/webapps/examples
 JkLogFile  logs/jk.log
 JkLogLevel debug
 JkMount /examples/*.jsp ajp13
 JkMount /*.jsp ajp13

And server.xml relevant  is ..



The jk2/coyote on 8009  connector was commented out.

 Static content looks fine, however when trying to access a .jsp file, it
fails with an internal server error and the message above.

 Anyone seen this problem or can diagnose why I would get it?  I cant figure
it for the life of me.

 thanks
Adam

 


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



RE: ejbs and sql server [OT]

2003-02-28 Thread Tam, Michael
Hi Raja,

   Just curious, have you guys tried the JBOSS with embedded TOMCAT?

Regards,
Michael

-Original Message-
From: Raja Sekhar [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:19 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server


Typically if you have a JSP & EJB scnearion, then deploye JSP's on tomcat
and configure JBOSS as EJB Container for ejb components. The way we
configure Apache - Tomcat where tomcat acts as a JSP/ servlet engine,  here
we need to configure Tomcat & JBoss for EJB.

Regards,

..Raj
--

On Fri, 28 Feb 2003 17:09:11  
 Tam, Michael wrote:
>That is only a simple java class.  I think you need to do some more
research
>on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
>give you my $.02 here (To experts, correct me if I am wrong about this).  
>
>EJB need to deployed in a EJB container which tomcat is not and in order to
>use EJB with tomcat you have to do something like the following:
>1) Deploy your EJBs in the EJB container
>2) Provide some interfaces of your EJBs to tomcat such that your app in
>tomcat can use to contact the EJB container and call EJBs to work.
>
>Hope this help.
>
>cheers,
>Michael
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: RE: ejbs and sql server
>
>
>http://128.91.107.144:8080/examples/jsp/index.html
>
>in the tomcat examples there is an example date as shown in the url above.

>that date calls a class from web-apps/classes/date/JspCalendar.  they claim

>this is use of a jsp page making an instance of a ejb (java bean).  how
come
>
>they didn't have to set up additional software?  but everyone is saying you

>need to install additional software so that tomcat can use ejbs?
>
>mike ni
>
>
>
>
>
>
>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>Subject: RE: ejbs and sql server
>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>
>>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>>Later, J
>>
>>-Original Message-
>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:24 PM
>>To: Tomcat Users List
>>Subject: RE: ejbs and sql server
>>
>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>
>>Filip
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 12:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>>
>>inside WEB-INF and they work?
>>
>>mike
>>
>>
>>
>>
>>
>>
>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>> >Subject: RE: ejbs and sql server
>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>> >
>> >Well, you should try search example online i.e. through google.  EJB is
>>a
>> >standard and should work with any DBMS (usually ;) ). Once you find an
>> >example and it should work on your choice of DBMS.
>> >
>> >-Original Message-
>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, February 28, 2003 11:28 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: ejbs and sql server
>> >
>> >
>> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>>I
>> >have different queries that i want to run but i want to make my
>>connection
>> >and queries in a EJB so i dont have to retype it in my JSP pages every
>>time
>> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
>> >
>> >mike
>> >
>> >
>> >
>> >
>> >
>> >_
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>> >-
>> >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]
>>
>>
>>_
>>Add photos to your messages with MSN 8. Get 2 months FREE*.
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

RE: ejbs and sql server

2003-02-28 Thread Raja Sekhar
Typically if you have a JSP & EJB scnearion, then deploye JSP's on tomcat and 
configure JBOSS as EJB Container for ejb components. The way we configure Apache - 
Tomcat where tomcat acts as a JSP/ servlet engine,  here we need to configure Tomcat & 
JBoss for EJB.

Regards,

..Raj
--

On Fri, 28 Feb 2003 17:09:11  
 Tam, Michael wrote:
>That is only a simple java class.  I think you need to do some more research
>on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
>give you my $.02 here (To experts, correct me if I am wrong about this).  
>
>EJB need to deployed in a EJB container which tomcat is not and in order to
>use EJB with tomcat you have to do something like the following:
>1) Deploy your EJBs in the EJB container
>2) Provide some interfaces of your EJBs to tomcat such that your app in
>tomcat can use to contact the EJB container and call EJBs to work.
>
>Hope this help.
>
>cheers,
>Michael
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: RE: ejbs and sql server
>
>
>http://128.91.107.144:8080/examples/jsp/index.html
>
>in the tomcat examples there is an example date as shown in the url above.  
>that date calls a class from web-apps/classes/date/JspCalendar.  they claim 
>this is use of a jsp page making an instance of a ejb (java bean).  how come
>
>they didn't have to set up additional software?  but everyone is saying you 
>need to install additional software so that tomcat can use ejbs?
>
>mike ni
>
>
>
>
>
>
>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>Subject: RE: ejbs and sql server
>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>
>>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>>Later, J
>>
>>-Original Message-
>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:24 PM
>>To: Tomcat Users List
>>Subject: RE: ejbs and sql server
>>
>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>
>>Filip
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 12:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>>
>>inside WEB-INF and they work?
>>
>>mike
>>
>>
>>
>>
>>
>>
>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>> >Subject: RE: ejbs and sql server
>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>> >
>> >Well, you should try search example online i.e. through google.  EJB is
>>a
>> >standard and should work with any DBMS (usually ;) ). Once you find an
>> >example and it should work on your choice of DBMS.
>> >
>> >-Original Message-
>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, February 28, 2003 11:28 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: ejbs and sql server
>> >
>> >
>> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>>I
>> >have different queries that i want to run but i want to make my
>>connection
>> >and queries in a EJB so i dont have to retype it in my JSP pages every
>>time
>> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
>> >
>> >mike
>> >
>> >
>> >
>> >
>> >
>> >_
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>> >-
>> >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]
>>
>>
>>_
>>Add photos to your messages with MSN 8. Get 2 months FREE*.
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>-
>>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]
>
>
>_
>Add photos to your messages with MSN 8. Get 2 months FREE*.  
>http://join.msn.com/?page=features/featuredemail
>
>
>-
>To unsubscribe, e-m

RE: ejbs and sql server

2003-02-28 Thread Tam, Michael
That is only a simple java class.  I think you need to do some more research
on EJB technology.  I haven't use EJB at all for almost 2 years but I'll
give you my $.02 here (To experts, correct me if I am wrong about this).  

EJB need to deployed in a EJB container which tomcat is not and in order to
use EJB with tomcat you have to do something like the following:
1) Deploy your EJBs in the EJB container
2) Provide some interfaces of your EJBs to tomcat such that your app in
tomcat can use to contact the EJB container and call EJBs to work.

Hope this help.

cheers,
Michael

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server


http://128.91.107.144:8080/examples/jsp/index.html

in the tomcat examples there is an example date as shown in the url above.  
that date calls a class from web-apps/classes/date/JspCalendar.  they claim 
this is use of a jsp page making an instance of a ejb (java bean).  how come

they didn't have to set up additional software?  but everyone is saying you 
need to install additional software so that tomcat can use ejbs?

mike ni






>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Subject: RE: ejbs and sql server
>Date: Fri, 28 Feb 2003 13:23:04 -0700
>
>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>Later, J
>
>-Original Message-
>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 1:24 PM
>To: Tomcat Users List
>Subject: RE: ejbs and sql server
>
>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>
>Filip
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 12:21 PM
>To: [EMAIL PROTECTED]
>Subject: RE: ejbs and sql server
>
>
>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>
>inside WEB-INF and they work?
>
>mike
>
>
>
>
>
>
> >From: "Tam, Michael" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> >Subject: RE: ejbs and sql server
> >Date: Fri, 28 Feb 2003 15:01:10 -0500
> >
> >Well, you should try search example online i.e. through google.  EJB is
>a
> >standard and should work with any DBMS (usually ;) ). Once you find an
> >example and it should work on your choice of DBMS.
> >
> >-Original Message-
> >From: Michael Ni [mailto:[EMAIL PROTECTED]
> >Sent: Friday, February 28, 2003 11:28 AM
> >To: [EMAIL PROTECTED]
> >Subject: ejbs and sql server
> >
> >
> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>I
> >have different queries that i want to run but i want to make my
>connection
> >and queries in a EJB so i dont have to retype it in my JSP pages every
>time
> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
> >
> >mike
> >
> >
> >
> >
> >
> >_
> >The new MSN 8: advanced junk mail protection and 2 months FREE*
> >http://join.msn.com/?page=features/junkmail
> >
> >
> >-
> >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]
>
>
>_
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>
>-
>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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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

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



Re: RE: ejbs and sql server

2003-02-28 Thread Vernon Wu

Do you know there is a huge difference between EJB and Java Bean?

Many have responsed correctly to your wrong question. Please do know what you ask for 
next time!

 
28/02/2003 1:43:54 PM, "Michael Ni" <[EMAIL PROTECTED]> wrote:

>http://128.91.107.144:8080/examples/jsp/index.html
>
>in the tomcat examples there is an example date as shown in the url above.  
>that date calls a class from web-apps/classes/date/JspCalendar.  they claim 
>this is use of a jsp page making an instance of a ejb (java bean).  how come 
>they didn't have to set up additional software?  but everyone is saying you 
>need to install additional software so that tomcat can use ejbs?
>
>mike ni
>
>
>
>
>
>
>>From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>Subject: RE: ejbs and sql server
>>Date: Fri, 28 Feb 2003 13:23:04 -0700
>>
>>Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
>>Later, J
>>
>>-Original Message-
>>From: Filip Hanik [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 1:24 PM
>>To: Tomcat Users List
>>Subject: RE: ejbs and sql server
>>
>>nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org
>>
>>Filip
>>
>>-Original Message-
>>From: Michael Ni [mailto:[EMAIL PROTECTED]
>>Sent: Friday, February 28, 2003 12:21 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: ejbs and sql server
>>
>>
>>im unclear how EJBs work with tomkat.  do we just put all the classfiles
>>
>>inside WEB-INF and they work?
>>
>>mike
>>
>>
>>
>>
>>
>>
>> >From: "Tam, Michael" <[EMAIL PROTECTED]>
>> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>> >Subject: RE: ejbs and sql server
>> >Date: Fri, 28 Feb 2003 15:01:10 -0500
>> >
>> >Well, you should try search example online i.e. through google.  EJB is
>>a
>> >standard and should work with any DBMS (usually ;) ). Once you find an
>> >example and it should work on your choice of DBMS.
>> >
>> >-Original Message-
>> >From: Michael Ni [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, February 28, 2003 11:28 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: ejbs and sql server
>> >
>> >
>> >Hi does anyone have examples of EJBs that connect to SQL Server 2000?
>>I
>> >have different queries that i want to run but i want to make my
>>connection
>> >and queries in a EJB so i dont have to retype it in my JSP pages every
>>time
>> >i need it.  Also does anyone have examples of JSP pages calling EJBs?
>> >
>> >mike
>> >
>> >
>> >
>> >
>> >
>> >_
>> >The new MSN 8: advanced junk mail protection and 2 months FREE*
>> >http://join.msn.com/?page=features/junkmail
>> >
>> >
>> >-
>> >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]
>>
>>
>>_
>>Add photos to your messages with MSN 8. Get 2 months FREE*.
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>-
>>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]
>
>
>_
>Add photos to your messages with MSN 8. Get 2 months FREE*.  
>http://join.msn.com/?page=features/featuredemail
>
>
>-
>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: ejbs and sql server

2003-02-28 Thread Michael Ni
http://128.91.107.144:8080/examples/jsp/index.html

in the tomcat examples there is an example date as shown in the url above.  
that date calls a class from web-apps/classes/date/JspCalendar.  they claim 
this is use of a jsp page making an instance of a ejb (java bean).  how come 
they didn't have to set up additional software?  but everyone is saying you 
need to install additional software so that tomcat can use ejbs?

mike ni






From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: RE: ejbs and sql server
Date: Fri, 28 Feb 2003 13:23:04 -0700
Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
Later, J
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:24 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server
nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org

Filip

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server
im unclear how EJBs work with tomkat.  do we just put all the classfiles

inside WEB-INF and they work?

mike





>From: "Tam, Michael" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: ejbs and sql server
>Date: Fri, 28 Feb 2003 15:01:10 -0500
>
>Well, you should try search example online i.e. through google.  EJB is
a
>standard and should work with any DBMS (usually ;) ). Once you find an
>example and it should work on your choice of DBMS.
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 11:28 AM
>To: [EMAIL PROTECTED]
>Subject: ejbs and sql server
>
>
>Hi does anyone have examples of EJBs that connect to SQL Server 2000?
I
>have different queries that i want to run but i want to make my
connection
>and queries in a EJB so i dont have to retype it in my JSP pages every
time
>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]
_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
-
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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


AJP Connector - Broken Pipe Error

2003-02-28 Thread Raja Sekhar
HI,

I have configured my apache server to work with Tomcat engine. But I am continuosly 
seeing this error in the log file.

Can some one help me out at the earliest???

Regards,

..Raj


2003-02-28 13:24:35 Ajp13Processor[8009][42] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:96)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:484)

2003-02-28 13:24:36 Ajp13Processor[8009][183] Stopping background thread
2003-02-28 13:24:41 Ajp13Processor[8009][182] Stopping background thread
2003-02-28 13:24:44 Ajp13Processor[8009][181] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:96)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:484)





Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

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



Apache/mod_webapp, allowing symlinking

2003-02-28 Thread Tansley, Robert
Hi, it's this old symlink chestnut again.  For Tomcat standalone I have 'allow 
symlinking' turned on like this, within the default configuration:



   


  



This works, but if I put it in the 'Tomcat-Apache' service for mod_webapp, it doesn't 
work.  The apache_log.-MM-DD.txt log shows that the .jar's etc are being picked 
up, but on attempting to access a page, I get a 'class not found' error (a Filter), 
even though the class is in a jar mentioned previously in the log.

It seems like the 'allow linking' property isn't being picked up, even though nothing 
is mentioned to this effect in the log.  Does anyone have it working with Apache and 
mod_webapp?


  
  






  
  

  
  

  
  


  

  

  




 Robert Tansley / Hewlett-Packard Laboratories / (+1) 617 551 7624

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



Need a really free jdbc-odbc driver

2003-02-28 Thread jakarta-pipon
Does anyone know any bridge class 4?


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



RE: Can execute jsp tomcat examples servlets examples run ok

2003-02-28 Thread Jeremy Whitlock
Julio,
I remember this happening to me.  Make sure your classpath is
correct.  That is the cause of 90% of all problems.  I'll post mine:

.;C:\Apache Group\Apache Tomcat
4.0\common\lib\servlet.jar;C:\Apache;C:\Apache\Jeremy;C:\Java2SEDK\bin;C
:\Apache
Group\jakarta-ant-1.5.1\lib;C:\Java\java_xml_pack-summer-02_01\jaxp-1.2_
01\xalan.jar;C:\Java\java_xml_pack-summer-02_01\jaxp-1.2_01\jaxp-api.jar
;C:\Apache Group\Apache Tomcat
4.0\common\lib\xerces.jar;C:\Java2EEDK\lib\j2ee.jar

Hope this helps, Jeremy

-Original Message-
From: Julio César Mejia Vergara [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 1:34 PM
To: Tomcat Users List
Subject: Can execute jsp tomcat examples servlets examples run ok

Hello,

I got the servlets examples working but the jsp examples are giving me 
trouble and dont want to execute , i get a 404 Not Found when i try to 
access all the .jsp examples.
Here are my server.xml, workers.properties and httpd.conf
configurations.
Path to the files:
/opt/jakarta-tomcat-4.1.18/conf/server.xml
/opt/jakarta-tomcat-4.1.18/conf/jk/workers.properties
/usr/local/apache/conf/httpd.conf

Any suggestions

Julio

 Tomcat 4.1.18 server.xml configuration --


  

  
  








  
factory
 
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  
  








  
  


  
  
  

  
  
  
  
  
  
 
usernamesa
password
driverClassName
  org.hsql.jdbcDriver
url
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  


  



  



- Tomcat 4.1.18 workers.properties -
workers.tomcat_home=/opt/jakarta-tomcat-4.1.18
workers.java_home=/usr/j2se
ps=/
worker.list=testWorker1
worker.testWorker1.port=8009
worker.testWorker1.host=localhost
worker.testWorker1.type=ajp13

-- Apache 2.0.39 httpd.conf configuration for Tomcat

# ColdFusion MX JRun Settings
LoadModule jrun_module 
/opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so

JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ssl false
JRunConfig Ignoresuffixmap true
JRunConfig Serverstore 
/opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51010
#JRunConfig Errorurl 
AddHandler jrun-handler .cfm .cfc .jsp .cfml .jws



LoadModule jk_module modules/mod_jk.so

JkWorkersFile /opt/jakarta-tomcat-4.1.18/conf/jk/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel debug

JkMount /examples/* testWorker1

Alias /examples/ "/opt/jakarta-tomcat-4.1.18/webapps/examples/"


   Options Indexes FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all



   AllowOverride None
   Deny From All




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



Can execute jsp tomcat examples servlets examples run ok

2003-02-28 Thread Julio César Mejia Vergara
Hello,

I got the servlets examples working but the jsp examples are giving me 
trouble and dont want to execute , i get a 404 Not Found when i try to 
access all the .jsp examples.
Here are my server.xml, workers.properties and httpd.conf configurations.
Path to the files:
/opt/jakarta-tomcat-4.1.18/conf/server.xml
/opt/jakarta-tomcat-4.1.18/conf/jk/workers.properties
/usr/local/apache/conf/httpd.conf

Any suggestions

Julio

 Tomcat 4.1.18 server.xml configuration --


   debug="0"/>
 
   debug="0"/>

 
 
   
   
   
   
   
   
 
   factory
   org.apache.catalina.users.MemoryUserDatabaseFactory
 
 
   pathname
   conf/tomcat-users.xml
 
   
 
 
   
   
   
   
   
   
 
 
   
   
 
 
 
   
 
 
 
 
 
 
   usernamesa
   password
   driverClassName
 org.hsql.jdbcDriver
   url
 jdbc:HypersonicSQL:database
 
 
 
   
 mail.smtp.host
 localhost
   
 
 
   
 

   

 



- Tomcat 4.1.18 workers.properties -
workers.tomcat_home=/opt/jakarta-tomcat-4.1.18
workers.java_home=/usr/j2se
ps=/
worker.list=testWorker1
worker.testWorker1.port=8009
worker.testWorker1.host=localhost
worker.testWorker1.type=ajp13
-- Apache 2.0.39 httpd.conf configuration for Tomcat

# ColdFusion MX JRun Settings
LoadModule jrun_module 
/opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so

   JRunConfig Verbose false
   JRunConfig Apialloc false
   JRunConfig Ssl false
   JRunConfig Ignoresuffixmap true
   JRunConfig Serverstore 
/opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store
   JRunConfig Bootstrap 127.0.0.1:51010
   #JRunConfig Errorurl 
   AddHandler jrun-handler .cfm .cfc .jsp .cfml .jws


LoadModule jk_module modules/mod_jk.so

JkWorkersFile /opt/jakarta-tomcat-4.1.18/conf/jk/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel debug
JkMount /examples/* testWorker1

Alias /examples/ "/opt/jakarta-tomcat-4.1.18/webapps/examples/"


  Options Indexes FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from all


  AllowOverride None
  Deny From All



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


RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

That's it, but your mod_jk.conf file doesn't look right.  

"Host" in server.xml = virtual host

For every virtual host you want Tomcat to server content for, you need a
 container with an appropriate name.

If you're still having problems after that, the best thing would be for you
to post your mod_jk.conf file (don't copy and paste, but attach the actual
file), along with workers.properties and server.xml.  The mod_jk.conf file
you are getting from the ApacheConfig class in server.xml doesn't look like
anything I have seen before.

John

> -Original Message-
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 3:18 PM
> To: Tomcat Users List
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> Thanks for your email
> 
> in httpd.conf
> 
> I have 
> 
>   LoadModule jk_module modules/mod_jk.so
> 
> to load mod_jk.so
> 
> Because for my default host apache-tomcat works seem fine.
> in order to let apache-tomcat workd for host2 what else should i make
> change beside adding  to server.xml?
> 
> Thanks.
> 
> 
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > Also, if you are using the mod_jk.conf style, the only 
> thing in httpd.conf
> > should be:
> > 
> > Include /usr/local/tomcat/conf/auto/mod_jk.conf
> > 
> > Also, are you loading the mod_jk.so module in httpd.conf?
> > 
> > John
> > 
> > > -Original Message-
> > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 2:54 PM
> > > To: Tomcat Users List
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > my previous email should be" I did NOT create mod_jk.conf 
> by hand."
> > > because i do not know how to creat mod_jk.conf by hand.
> > > 
> > > 
> > > 
> > > On Fri, 28 Feb 2003, Turner, John wrote:
> > > 
> > > > 
> > > > Take out the lines that look like this:
> > > > 
> > > > JkMount /someURL ajp13
> > > > 
> > > > The typical setup is something like this:
> > > > 
> > > > JkMount /*.jsp ajp13
> > > > JkMount /servlet/* ajp13
> > > > 
> > > > John
> > > > 
> > > > > -Original Message-
> > > > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > > > Sent: Friday, February 28, 2003 2:36 PM
> > > > > To: Tomcat Users List
> > > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > > 
> > > > > 
> > > > > I did create it by hand.
> > > > > 
> > > > > I just delete mod_jk.conf and restart tomcat and 
> > > mod_jk.conf has same
> > > > > thing inside as before.
> > > > > In httpd.conf
> > > > > I have 
> > > > > 
> > > > > Include /usr/local/tomcat/conf/auto/mod_jk.conf
> > > > > 
> > > > > 
> > > > >JkWorkersFile 
> "/usr/local/tomcat/conf/jk/workers.properties"
> > > > >JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> > > > >JkLogLevel debug
> > > > >JkMount /examples ajp13
> > > > >JkMount /examples/* ajp13
> > > > > 
> > > > >
> > > > > 
> > > > > 
> > > > > Any more advices? Thanks
> > > > > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: ejbs and sql server

2003-02-28 Thread Erik Price
Another one (might be easier to set up) is OpenEJB.org
http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html
Erik

Filip Hanik wrote:
nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org

Filip

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server
im unclear how EJBs work with tomkat.  do we just put all the classfiles 
inside WEB-INF and they work?

mike







From: "Tam, Michael" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: ejbs and sql server
Date: Fri, 28 Feb 2003 15:01:10 -0500
Well, you should try search example online i.e. through google.  EJB is a
standard and should work with any DBMS (usually ;) ). Once you find an
example and it should work on your choice of DBMS.
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: ejbs and sql server
Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I
have different queries that i want to run but i want to make my connection
and queries in a EJB so i dont have to retype it in my JSP pages every time
i need it.  Also does anyone have examples of JSP pages calling EJBs?
mike





_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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



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


RE: ejbs and sql server

2003-02-28 Thread Jeremy Whitlock
Or look at OpenEJB.  It's easy to setup.  http://openejb.sourceforge.net
Later, J

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 1:24 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server

nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org

Filip

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server


im unclear how EJBs work with tomkat.  do we just put all the classfiles

inside WEB-INF and they work?

mike






>From: "Tam, Michael" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: ejbs and sql server
>Date: Fri, 28 Feb 2003 15:01:10 -0500
>
>Well, you should try search example online i.e. through google.  EJB is
a
>standard and should work with any DBMS (usually ;) ). Once you find an
>example and it should work on your choice of DBMS.
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 11:28 AM
>To: [EMAIL PROTECTED]
>Subject: ejbs and sql server
>
>
>Hi does anyone have examples of EJBs that connect to SQL Server 2000?
I
>have different queries that i want to run but i want to make my
connection
>and queries in a EJB so i dont have to retype it in my JSP pages every
time
>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



Classes are not loaded from WEB-INF/classes when debugging...

2003-02-28 Thread Craig R
Hello,
I am running into a problem with classloading as I try to run 2 web-
application through a debugger.  The two projects have overlapping 
copies of the same class files (ie, both projects use Class A).  
The problem is that when Tomcat (4.0.6) is run through my debugger,
the WEB-INF/classes are not loaded by org.apache.catalina.loader.
WebappClassLoader.  They are apparently loaded by the system classloader.
So my Class A instance is shared between my 2 web-apps when in 
fact they should each have their own instance.  Run outside the debugger,
the WebappClassloader does its job & both web-apps get their unique 
copies of class A.  Here is what Class A has to say about who's loading 
it:

Outside the debugger:
-
Class A's ClassLoader's class is [class org.apache.catalina.loader.
WebappClassLoader]
ClassLoader's parent class is [class org.apache.catalina.loader.StandardClassLoader]
ClassLoader's parent class is [class org.apache.catalina.loader.StandardClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$AppClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]

Inside the debugger:

[EMAIL PROTECTED] ClassLoader's class is [class sun.misc.Launcher$AppClassLoader]
ClassLoader's parent class is [class sun.misc.Launcher$ExtClassLoader]

Is there a way that I can prevent the WEB-INF classes from being 
loaded by the System classloader?  I know this was part of the servlet 
spec as the Tomcat documentation notes:

"The web application class loader diverges from the default Java 
2 delegation model (in accordance with the recommendations in the 
Servlet Specification, version 2.3, section 9.6). When a request 
to load a class from the web application's WebappX class loader is 
processed, this class loader will look in the local repositories 
first, instead of delegating before looking."

So why isn't WebbappClassLoader loading the WEB-INF/classes when 
debugging?  Thanks in advance for your help!

Craig








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



Admin tool for Tomcat not working.

2003-02-28 Thread Mufaddal Khumri
Hi

I have a user defined as admin having 2 roles: 1. admin, 2 manager.

I can access the tomcat - manager utility thru the browser, but am 
unable to access the admin utility.

When i try to goto http://localhost:8080/admin it says  - Access to the 
specified resource () has been forbidden.

Am i missing something ?

thanks.

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


RE: ejbs and sql server

2003-02-28 Thread Filip Hanik
nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org

Filip

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: RE: ejbs and sql server


im unclear how EJBs work with tomkat.  do we just put all the classfiles 
inside WEB-INF and they work?

mike






>From: "Tam, Michael" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: ejbs and sql server
>Date: Fri, 28 Feb 2003 15:01:10 -0500
>
>Well, you should try search example online i.e. through google.  EJB is a
>standard and should work with any DBMS (usually ;) ). Once you find an
>example and it should work on your choice of DBMS.
>
>-Original Message-
>From: Michael Ni [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 11:28 AM
>To: [EMAIL PROTECTED]
>Subject: ejbs and sql server
>
>
>Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I
>have different queries that i want to run but i want to make my connection
>and queries in a EJB so i dont have to retype it in my JSP pages every time
>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


-
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: Problem with double deployment

2003-02-28 Thread Scott, Sean
I have the autoDeploy set to false in my server.xml file

  

I tried to look at /ROOT and I recieve :

HTTP Status 404 - /ROOT/
-
type Status report
message /ROOT/
description The requested resource (/ROOT/) is not available.


However, when I go to the manager ( http://localhost/manager/html/list )
It displays 3 contexts:
/(mapped to myapp)
/manager ( manager app )
/myapp (mapped to myapp)

I am using version 4.1.18

-sean




-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:14 PM
To: Tomcat Users List
Subject: RE: Problem with double deployment


take a look at how the ROOT context is configured. If you goto 
http://localhost:8080/ROOT/ you will not see anything.

One of the differences is that ROOT is not a WAR, and also look into the
autoDeploy WAR files property, since this will cause war files to deploy
automatically.

Filip

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:13 PM
To: 'Tomcat Users List'
Subject: Problem with double deployment


I have a problem where if I put a WAR file in the webapps directory and try
to assign it to the default context in the server.xml file the app is
deployed 2 times. Once at the default context, and the other at the war
name.

My server.xml contains


When tomcat starts up, my app is deploy 2 times:
at http://localhost
and http://localhost/myapp

If I set the path="/myapp" in server.xml, the app only deploys one time. Any
ideas?

-sean

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


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

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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
Thanks for your email

in httpd.conf

I have 

  LoadModule jk_module modules/mod_jk.so

to load mod_jk.so

Because for my default host apache-tomcat works seem fine.
in order to let apache-tomcat workd for host2 what else should i make
change beside adding  to server.xml?

Thanks.



On Fri, 28 Feb 2003, Turner, John wrote:

> 
> Also, if you are using the mod_jk.conf style, the only thing in httpd.conf
> should be:
> 
> Include /usr/local/tomcat/conf/auto/mod_jk.conf
> 
> Also, are you loading the mod_jk.so module in httpd.conf?
> 
> John
> 
> > -Original Message-
> > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 28, 2003 2:54 PM
> > To: Tomcat Users List
> > Subject: RE: how to get apache-tomcat virtual host work?
> > 
> > 
> > my previous email should be" I did NOT create mod_jk.conf by hand."
> > because i do not know how to creat mod_jk.conf by hand.
> > 
> > 
> > 
> > On Fri, 28 Feb 2003, Turner, John wrote:
> > 
> > > 
> > > Take out the lines that look like this:
> > > 
> > > JkMount /someURL ajp13
> > > 
> > > The typical setup is something like this:
> > > 
> > > JkMount /*.jsp ajp13
> > > JkMount /servlet/* ajp13
> > > 
> > > John
> > > 
> > > > -Original Message-
> > > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, February 28, 2003 2:36 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > 
> > > > 
> > > > I did create it by hand.
> > > > 
> > > > I just delete mod_jk.conf and restart tomcat and 
> > mod_jk.conf has same
> > > > thing inside as before.
> > > > In httpd.conf
> > > > I have 
> > > > 
> > > > Include /usr/local/tomcat/conf/auto/mod_jk.conf
> > > > 
> > > > 
> > > >JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> > > >JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> > > >JkLogLevel debug
> > > >JkMount /examples ajp13
> > > >JkMount /examples/* ajp13
> > > > 
> > > >
> > > > 
> > > > 
> > > > Any more advices? Thanks
> > > > 
> 
> -
> 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: ejbs and sql server

2003-02-28 Thread Michael Ni
im unclear how EJBs work with tomkat.  do we just put all the classfiles 
inside WEB-INF and they work?

mike






From: "Tam, Michael" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: 'Tomcat Users List' <[EMAIL PROTECTED]>
Subject: RE: ejbs and sql server
Date: Fri, 28 Feb 2003 15:01:10 -0500
Well, you should try search example online i.e. through google.  EJB is a
standard and should work with any DBMS (usually ;) ). Once you find an
example and it should work on your choice of DBMS.
-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: ejbs and sql server
Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I
have different queries that i want to run but i want to make my connection
and queries in a EJB so i dont have to retype it in my JSP pages every time
i need it.  Also does anyone have examples of JSP pages calling EJBs?
mike





_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
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]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: Problem with double deployment

2003-02-28 Thread Filip Hanik
take a look at how the ROOT context is configured. If you goto 
http://localhost:8080/ROOT/ you will not see anything.

One of the differences is that ROOT is not a WAR, and also look into the autoDeploy 
WAR files property, since this will cause war files to deploy automatically.

Filip

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 12:13 PM
To: 'Tomcat Users List'
Subject: Problem with double deployment


I have a problem where if I put a WAR file in the webapps directory and try
to assign it to the default context in the server.xml file the app is
deployed 2 times. Once at the default context, and the other at the war
name.

My server.xml contains


When tomcat starts up, my app is deploy 2 times:
at http://localhost
and http://localhost/myapp

If I set the path="/myapp" in server.xml, the app only deploys one time. Any
ideas?

-sean

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


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



Problem with double deployment

2003-02-28 Thread Scott, Sean
I have a problem where if I put a WAR file in the webapps directory and try
to assign it to the default context in the server.xml file the app is
deployed 2 times. Once at the default context, and the other at the war
name.

My server.xml contains


When tomcat starts up, my app is deploy 2 times:
at http://localhost
and http://localhost/myapp

If I set the path="/myapp" in server.xml, the app only deploys one time. Any
ideas?

-sean

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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Also, if you are using the mod_jk.conf style, the only thing in httpd.conf
should be:

Include /usr/local/tomcat/conf/auto/mod_jk.conf

Also, are you loading the mod_jk.so module in httpd.conf?

John

> -Original Message-
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:54 PM
> To: Tomcat Users List
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> my previous email should be" I did NOT create mod_jk.conf by hand."
> because i do not know how to creat mod_jk.conf by hand.
> 
> 
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > Take out the lines that look like this:
> > 
> > JkMount /someURL ajp13
> > 
> > The typical setup is something like this:
> > 
> > JkMount /*.jsp ajp13
> > JkMount /servlet/* ajp13
> > 
> > John
> > 
> > > -Original Message-
> > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 2:36 PM
> > > To: Tomcat Users List
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > I did create it by hand.
> > > 
> > > I just delete mod_jk.conf and restart tomcat and 
> mod_jk.conf has same
> > > thing inside as before.
> > > In httpd.conf
> > > I have 
> > > 
> > > Include /usr/local/tomcat/conf/auto/mod_jk.conf
> > > 
> > > 
> > >JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> > >JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> > >JkLogLevel debug
> > >JkMount /examples ajp13
> > >JkMount /examples/* ajp13
> > > 
> > >
> > > 
> > > 
> > > Any more advices? Thanks
> > > 

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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

OK, then the Listener directives you have in server.xml are not correct.

Here is how mod_jk.conf looks, from a completely default Tomcat install
(localhost is the only virtual host in this case), with the addition of the
two Listener elements in server.xml:

http://www.johnturner.com/howto/mod_jk_conf.html

If yours doesn't look like that, I would review server.xml and verify that
my Listener directives/elements are positioned correctly and are complete,
as described in the "Final Configuration" section of my RH 7.x HOWTO:

http://www.johnturner.com/howto/rh72-howto.html

John

> -Original Message-
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:54 PM
> To: Tomcat Users List
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> my previous email should be" I did NOT create mod_jk.conf by hand."
> because i do not know how to creat mod_jk.conf by hand.
> 
> 
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > Take out the lines that look like this:
> > 
> > JkMount /someURL ajp13
> > 
> > The typical setup is something like this:
> > 
> > JkMount /*.jsp ajp13
> > JkMount /servlet/* ajp13
> > 
> > John
> > 
> > > -Original Message-
> > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 2:36 PM
> > > To: Tomcat Users List
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > I did create it by hand.
> > > 
> > > I just delete mod_jk.conf and restart tomcat and 
> mod_jk.conf has same
> > > thing inside as before.
> > > In httpd.conf
> > > I have 
> > > 
> > > Include /usr/local/tomcat/conf/auto/mod_jk.conf
> > > 
> > > 
> > >JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> > >JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> > >JkLogLevel debug
> > >JkMount /examples ajp13
> > >JkMount /examples/* ajp13
> > > 
> > >
> > > 
> > > 
> > > Any more advices? Thanks
> > > 
> 
> -
> 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: ejbs and sql server

2003-02-28 Thread Tam, Michael
Well, you should try search example online i.e. through google.  EJB is a
standard and should work with any DBMS (usually ;) ). Once you find an
example and it should work on your choice of DBMS.

-Original Message-
From: Michael Ni [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: ejbs and sql server


Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
have different queries that i want to run but i want to make my connection 
and queries in a EJB so i dont have to retype it in my JSP pages every time 
i need it.  Also does anyone have examples of JSP pages calling EJBs?

mike





_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Objects in JSP PLEASE HELP.

2003-02-28 Thread Jason Johnston
>>> [EMAIL PROTECTED] 02/27/03 02:56PM >>>
Can you show us the errors that were reported when the JSP failed to
compile?  Full stacktraces are best.

-Jake
 
 
Yes, here they are.  I guess my real problem is that I'm not sure how
to reference the object from the page.
All the errors and source code are below.  Thanks.
 
*
***  tomcat log
*
 
2003-02-28 09:37:58 ApplicationDispatcher[/boastuff] Servlet.service()
for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
 
An error occurred at line: 87 in the jsp file: /editor.jsp
 
Generated servlet error:
C:\tomcat\work\localhost\boastuff\editor$jsp.java:97: Undefined
variable or class name: content
  out.print(content.getAction());
^
1 error
 
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
 at boa.iadmin.callEditor(iadmin.java:337)
 at boa.iadmin.submit(iadmin.java:173)
 at boa.iadmin.processRequest(iadmin.java:397)
 at boa.iadmin.doGet(iadmin.java:428)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)
 
 
 

 Partial JSP source  - editor.jsp
*
 
 



 
BOA Content Editor

 

 

  // line
87
Title:
 
 
***
  Source for placecontent tag

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
my previous email should be" I did NOT create mod_jk.conf by hand."
because i do not know how to creat mod_jk.conf by hand.



On Fri, 28 Feb 2003, Turner, John wrote:

> 
> Take out the lines that look like this:
> 
> JkMount /someURL ajp13
> 
> The typical setup is something like this:
> 
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
> 
> John
> 
> > -Original Message-
> > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 28, 2003 2:36 PM
> > To: Tomcat Users List
> > Subject: RE: how to get apache-tomcat virtual host work?
> > 
> > 
> > I did create it by hand.
> > 
> > I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
> > thing inside as before.
> > In httpd.conf
> > I have 
> > 
> > Include /usr/local/tomcat/conf/auto/mod_jk.conf
> > 
> > 
> >JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
> >JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
> >JkLogLevel debug
> >JkMount /examples ajp13
> >JkMount /examples/* ajp13
> > 
> >
> > 
> > 
> > Any more advices? Thanks
> > 
> > On Fri, 28 Feb 2003, Turner, John wrote:
> > 
> > > 
> > > Is that something you created by hand?  That's not output 
> > from ApacheConfig.
> > > Are there entries in httpd.conf for things like JkWorkersFile, etc.?
> > > 
> > > John
> > > 
> > > > -Original Message-
> > > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, February 28, 2003 12:58 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > 
> > > > 
> > > > John,
> > > > Thank you very much for your response.
> > > > 
> > > > after i chang host2.com to www.host2.com and restart 
> > tomacat apache
> > > > 
> > > > My mod_jk.conf is like:
> > > > 
> > ***
> > > > 
> > > > ServerName www.host2.com
> > > > 
> > > > JkMount /servlets ajp13
> > > > JkMount /servlets/* ajp13
> > > > 
> > > > JkMount /manager ajp13
> > > > JkMount /manager/* ajp13
> > > > 
> > > > 
> > > > 
> > > > ServerName www.host1.com
> > > > 
> > > > JkMount /webdav ajp13
> > > > JkMount /webdav/* ajp13
> > > > 
> > > > JkMount /mlogin ajp13
> > > > JkMount /mlogin/* ajp13
> > > > 
> > > > JkMount /login ajp13
> > > > JkMount /login/* ajp13
> > > > 
> > > > JkMount /examples ajp13
> > > > JkMount /examples/* ajp13
> > > > 
> > > > JkMount /tomcat-docs ajp13
> > > > JkMount /tomcat-docs/* ajp13
> > > > 
> > > > JkMount /manager ajp13
> > > > JkMount /manager/* ajp13
> > > > 
> > > > 
> > 
> > > > 
> > > >  But it still not working.
> > > > 
> > > > Thanks for any futher suggestion.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > On Fri, 28 Feb 2003, Turner, John wrote:
> > > > 
> > > > > 
> > > > > What are the contents of mod_jk.conf?
> > > > > 
> > > > > Did you restart Apache so that it could pick up the changes?
> > > > > 
> > > > > Is there a VirtualHost container in mod_jk.conf for 
> > www.host2.com?
> > > > > 
> > > > > In your Host container in server.xml, you list the name as 
> > > > "host2.com", not
> > > > > "www.host2.com".   Is this a typo?  The two are different.  
> > > > Either change it
> > > > > to "www.host2.com" or use  within the Host 
> > container to alias
> > > > > www.host2.com to host2.com.
> > > > > 
> > > > > John
> > > > > 
> > > > > > -Original Message-
> > > > > > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Friday, February 28, 2003 11:36 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > > > 
> > > > > > 
> > > > > > John,
> > > > > > 
> > > > > > where is your reply ?
> > > > > > 
> > > > > > how to get apache-tomcat virtual host work? is an easy
> > > > > > question as long as you are using Tomcat 3.2.3 or 
> > Tomcat 3.3.1.
> > > > > > 
> > > > > > Although I'm working very successfully with virtual hosts 
> > > > > > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to 
> > get virtual 
> > > > > > hosts running with Tomcat 4.
> > > > > > 
> > > > > > Only the default virtual host is running. It doesn't matter
> > > > > > which virtual host I'm using.
> > > > > > 
> > > > > > I'm not alone and still working on it.
> > > > > > 
> > > > > > --Dave
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > Is this a glitch?  Did my first reply to this post get lost?
> > > > > > 
> > > > > > John
> > > > > > 
> > > > > > 
> > > > > > > I have redhat linux 7.3 
> > > > > > >  
> > > > > > >  i have two virtual host in my machine www.host1.com and
> > > > > > www.host2.com
> > > > > > >  www.host1.com is the default one.
> > > > > > >  I have installed apache-tomcat on my machine
> > > > > > >  apache-tomcat runs fine with the www.host1.com  one.
> > > > > > >  i mean both http://www.h

RE: ejbs and sql server

2003-02-28 Thread Phillip Qin
This is not a problem. If I know the answer, I'd love to post.

I think the real problem is some one posts questions without having looking
through the archive or without having going through the Tomcat document.

I am not a contractor of your project. If you ask "how do I do this", I will
definitely not answer your question. If you say "I did this, something
wrong, can you help me?", I will definitely help you out.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 2:47 PM
To: Tomcat Users List
Subject: RE: ejbs and sql server

the problem with this list, is that most people only post questions, and
rarely any replies.
The people who respond, are few in numbers, hence we would like to encourage
everyone to to look at this mailing list as a forum (give and take). Ask a
question, answer a question!

Filip


-Original Message-
From: Robert Csiki [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: ejbs and sql server


At least he got an answer :) ... I put a valid question about 3 hours ago
and nothing :((

Robert

-Original Message-
From: Vernon Wu [mailto:[EMAIL PROTECTED]
Sent: February 28, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: ejbs and sql server



It doesn't seem to be a right mail list for your question.


28/02/2003 11:28:05 AM, "Michael Ni" <[EMAIL PROTECTED]> wrote:

>Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
>have different queries that i want to run but i want to make my connection 
>and queries in a EJB so i dont have to retype it in my JSP pages every time

>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*  
>http://join.msn.com/?page=features/junkmail
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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

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


Re: RE: ejbs and sql server

2003-02-28 Thread Vernon Wu

Neither did I.


28/02/2003 11:41:53 AM, Robert Csiki <[EMAIL PROTECTED]> wrote:





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



RE: ejbs and sql server

2003-02-28 Thread Filip Hanik
the problem with this list, is that most people only post questions, and rarely any 
replies.
The people who respond, are few in numbers, hence we would like to encourage everyone 
to to look at this mailing list as a forum (give and take). Ask a question, answer a 
question!

Filip


-Original Message-
From: Robert Csiki [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:42 AM
To: 'Tomcat Users List'
Subject: RE: ejbs and sql server


At least he got an answer :) ... I put a valid question about 3 hours ago
and nothing :((

Robert

-Original Message-
From: Vernon Wu [mailto:[EMAIL PROTECTED]
Sent: February 28, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: ejbs and sql server



It doesn't seem to be a right mail list for your question.


28/02/2003 11:28:05 AM, "Michael Ni" <[EMAIL PROTECTED]> wrote:

>Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
>have different queries that i want to run but i want to make my connection 
>and queries in a EJB so i dont have to retype it in my JSP pages every time

>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*  
>http://join.msn.com/?page=features/junkmail
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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

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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Take out the lines that look like this:

JkMount /someURL ajp13

The typical setup is something like this:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

John

> -Original Message-
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:36 PM
> To: Tomcat Users List
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> I did create it by hand.
> 
> I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
> thing inside as before.
> In httpd.conf
> I have 
> 
> Include /usr/local/tomcat/conf/auto/mod_jk.conf
> 
> 
>JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
>JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
>JkLogLevel debug
>JkMount /examples ajp13
>JkMount /examples/* ajp13
> 
>
> 
> 
> Any more advices? Thanks
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > Is that something you created by hand?  That's not output 
> from ApacheConfig.
> > Are there entries in httpd.conf for things like JkWorkersFile, etc.?
> > 
> > John
> > 
> > > -Original Message-
> > > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 12:58 PM
> > > To: Tomcat Users List
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > John,
> > > Thank you very much for your response.
> > > 
> > > after i chang host2.com to www.host2.com and restart 
> tomacat apache
> > > 
> > > My mod_jk.conf is like:
> > > 
> ***
> > > 
> > > ServerName www.host2.com
> > > 
> > > JkMount /servlets ajp13
> > > JkMount /servlets/* ajp13
> > > 
> > > JkMount /manager ajp13
> > > JkMount /manager/* ajp13
> > > 
> > > 
> > > 
> > > ServerName www.host1.com
> > > 
> > > JkMount /webdav ajp13
> > > JkMount /webdav/* ajp13
> > > 
> > > JkMount /mlogin ajp13
> > > JkMount /mlogin/* ajp13
> > > 
> > > JkMount /login ajp13
> > > JkMount /login/* ajp13
> > > 
> > > JkMount /examples ajp13
> > > JkMount /examples/* ajp13
> > > 
> > > JkMount /tomcat-docs ajp13
> > > JkMount /tomcat-docs/* ajp13
> > > 
> > > JkMount /manager ajp13
> > > JkMount /manager/* ajp13
> > > 
> > > 
> 
> > > 
> > >  But it still not working.
> > > 
> > > Thanks for any futher suggestion.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > On Fri, 28 Feb 2003, Turner, John wrote:
> > > 
> > > > 
> > > > What are the contents of mod_jk.conf?
> > > > 
> > > > Did you restart Apache so that it could pick up the changes?
> > > > 
> > > > Is there a VirtualHost container in mod_jk.conf for 
> www.host2.com?
> > > > 
> > > > In your Host container in server.xml, you list the name as 
> > > "host2.com", not
> > > > "www.host2.com".   Is this a typo?  The two are different.  
> > > Either change it
> > > > to "www.host2.com" or use  within the Host 
> container to alias
> > > > www.host2.com to host2.com.
> > > > 
> > > > John
> > > > 
> > > > > -Original Message-
> > > > > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > > > > Sent: Friday, February 28, 2003 11:36 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > > 
> > > > > 
> > > > > John,
> > > > > 
> > > > > where is your reply ?
> > > > > 
> > > > > how to get apache-tomcat virtual host work? is an easy
> > > > > question as long as you are using Tomcat 3.2.3 or 
> Tomcat 3.3.1.
> > > > > 
> > > > > Although I'm working very successfully with virtual hosts 
> > > > > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to 
> get virtual 
> > > > > hosts running with Tomcat 4.
> > > > > 
> > > > > Only the default virtual host is running. It doesn't matter
> > > > > which virtual host I'm using.
> > > > > 
> > > > > I'm not alone and still working on it.
> > > > > 
> > > > > --Dave
> > > > > 
> > > > >  
> > > > > 
> > > > > Is this a glitch?  Did my first reply to this post get lost?
> > > > > 
> > > > > John
> > > > > 
> > > > > 
> > > > > > I have redhat linux 7.3 
> > > > > >  
> > > > > >  i have two virtual host in my machine www.host1.com and
> > > > > www.host2.com
> > > > > >  www.host1.com is the default one.
> > > > > >  I have installed apache-tomcat on my machine
> > > > > >  apache-tomcat runs fine with the www.host1.com  one.
> > > > > >  i mean both http://www.host1.com:8080/examples and 
> > > > > > http://www.host1.com/examples  come to same 
> > > > > > result which is
> > > > > >  good.
> > > > > >  i want www.host2.com work same way as 
> www.host1.com in term 
> > > > > > of running
> > > > > >  apache-tomcat i did following to server.xml
> > > > > >   
> > > > > >  
> > > > > >  I add  dirctive like this
> > > > > >  
> > > > > > 
> **
> > > > > > *
> > > > > >appBase="/hom

RE: ejbs and sql server

2003-02-28 Thread Robert Csiki
At least he got an answer :) ... I put a valid question about 3 hours ago
and nothing :((

Robert

-Original Message-
From: Vernon Wu [mailto:[EMAIL PROTECTED]
Sent: February 28, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: ejbs and sql server



It doesn't seem to be a right mail list for your question.


28/02/2003 11:28:05 AM, "Michael Ni" <[EMAIL PROTECTED]> wrote:

>Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
>have different queries that i want to run but i want to make my connection 
>and queries in a EJB so i dont have to retype it in my JSP pages every time

>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*  
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
I did create it by hand.

I just delete mod_jk.conf and restart tomcat and mod_jk.conf has same
thing inside as before.
In httpd.conf
I have 

Include /usr/local/tomcat/conf/auto/mod_jk.conf


   JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
   JkLogFile "/usr/local/tomcat/logs/mod_jk.log"
   JkLogLevel debug
   JkMount /examples ajp13
   JkMount /examples/* ajp13

   


Any more advices? Thanks

On Fri, 28 Feb 2003, Turner, John wrote:

> 
> Is that something you created by hand?  That's not output from ApacheConfig.
> Are there entries in httpd.conf for things like JkWorkersFile, etc.?
> 
> John
> 
> > -Original Message-
> > From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 28, 2003 12:58 PM
> > To: Tomcat Users List
> > Subject: RE: how to get apache-tomcat virtual host work?
> > 
> > 
> > John,
> > Thank you very much for your response.
> > 
> > after i chang host2.com to www.host2.com and restart tomacat apache
> > 
> > My mod_jk.conf is like:
> > ***
> > 
> > ServerName www.host2.com
> > 
> > JkMount /servlets ajp13
> > JkMount /servlets/* ajp13
> > 
> > JkMount /manager ajp13
> > JkMount /manager/* ajp13
> > 
> > 
> > 
> > ServerName www.host1.com
> > 
> > JkMount /webdav ajp13
> > JkMount /webdav/* ajp13
> > 
> > JkMount /mlogin ajp13
> > JkMount /mlogin/* ajp13
> > 
> > JkMount /login ajp13
> > JkMount /login/* ajp13
> > 
> > JkMount /examples ajp13
> > JkMount /examples/* ajp13
> > 
> > JkMount /tomcat-docs ajp13
> > JkMount /tomcat-docs/* ajp13
> > 
> > JkMount /manager ajp13
> > JkMount /manager/* ajp13
> > 
> > 
> > 
> >  But it still not working.
> > 
> > Thanks for any futher suggestion.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Fri, 28 Feb 2003, Turner, John wrote:
> > 
> > > 
> > > What are the contents of mod_jk.conf?
> > > 
> > > Did you restart Apache so that it could pick up the changes?
> > > 
> > > Is there a VirtualHost container in mod_jk.conf for www.host2.com?
> > > 
> > > In your Host container in server.xml, you list the name as 
> > "host2.com", not
> > > "www.host2.com".   Is this a typo?  The two are different.  
> > Either change it
> > > to "www.host2.com" or use  within the Host container to alias
> > > www.host2.com to host2.com.
> > > 
> > > John
> > > 
> > > > -Original Message-
> > > > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, February 28, 2003 11:36 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: how to get apache-tomcat virtual host work?
> > > > 
> > > > 
> > > > John,
> > > > 
> > > > where is your reply ?
> > > > 
> > > > how to get apache-tomcat virtual host work? is an easy
> > > > question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
> > > > 
> > > > Although I'm working very successfully with virtual hosts 
> > > > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
> > > > hosts running with Tomcat 4.
> > > > 
> > > > Only the default virtual host is running. It doesn't matter
> > > > which virtual host I'm using.
> > > > 
> > > > I'm not alone and still working on it.
> > > > 
> > > > --Dave
> > > > 
> > > >  
> > > > 
> > > > Is this a glitch?  Did my first reply to this post get lost?
> > > > 
> > > > John
> > > > 
> > > > 
> > > > > I have redhat linux 7.3 
> > > > >  
> > > > >  i have two virtual host in my machine www.host1.com and
> > > > www.host2.com
> > > > >  www.host1.com is the default one.
> > > > >  I have installed apache-tomcat on my machine
> > > > >  apache-tomcat runs fine with the www.host1.com  one.
> > > > >  i mean both http://www.host1.com:8080/examples and 
> > > > > http://www.host1.com/examples  come to same 
> > > > > result which is
> > > > >  good.
> > > > >  i want www.host2.com work same way as www.host1.com in term 
> > > > > of running
> > > > >  apache-tomcat i did following to server.xml
> > > > >   
> > > > >  
> > > > >  I add  dirctive like this
> > > > >  
> > > > > **
> > > > > *
> > > > >> > > >unpackWARs="true">
> > > > > 
> > > > > > > > >   
> > className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > > > > append="true"  />
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > className="org.apache.catalina.valves.AccessLogValve"
> > > > >  directory="logs"  
> > prefix="localhost_access_log."
> > > > >  suffix=".txt"
> > > > >  pattern="common"/>
> > > > > 
> > > > > 
> > > > >  > className="org.apache.catalina.logger.FileLogger"
> > > > >  directory="logs"  prefix="localhost_log." 
> > > > > suffix=".txt"
> > > > >

Re: ejbs and sql server

2003-02-28 Thread Vernon Wu

It doesn't seem to be a right mail list for your question.


28/02/2003 11:28:05 AM, "Michael Ni" <[EMAIL PROTECTED]> wrote:

>Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
>have different queries that i want to run but i want to make my connection 
>and queries in a EJB so i dont have to retype it in my JSP pages every time 
>i need it.  Also does anyone have examples of JSP pages calling EJBs?
>
>mike
>
>
>
>
>
>_
>The new MSN 8: advanced junk mail protection and 2 months FREE*  
>http://join.msn.com/?page=features/junkmail
>
>
>-
>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]



ejbs and sql server

2003-02-28 Thread Michael Ni
Hi does anyone have examples of EJBs that connect to SQL Server 2000?  I 
have different queries that i want to run but i want to make my connection 
and queries in a EJB so i dont have to retype it in my JSP pages every time 
i need it.  Also does anyone have examples of JSP pages calling EJBs?

mike





_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Hostmaster of the day
Dear Xiongfei Wang,

this httpd.conf entry seems to be wrong :

JkMount /servlets ajp13
JkMount /servlets/* ajp13

Correct entry should be :

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

--Dave


> John,
> Thank you very much for your response.
> 
> after i chang host2.com to www.host2.com and restart tomacat apache
> 
> My mod_jk.conf is like:
> ***
> 
> ServerName www.host2.com
> 
> JkMount /servlets ajp13
> JkMount /servlets/* ajp13
> 
> JkMount /manager ajp13
> JkMount /manager/* ajp13
> 
> 
> 
> ServerName www.host1.com
> 
> JkMount /webdav ajp13
> JkMount /webdav/* ajp13
> 
> JkMount /mlogin ajp13
> JkMount /mlogin/* ajp13
> 
> JkMount /login ajp13
> JkMount /login/* ajp13
> 
> JkMount /examples ajp13
> JkMount /examples/* ajp13
> 
> JkMount /tomcat-docs ajp13
> JkMount /tomcat-docs/* ajp13
> 
> JkMount /manager ajp13
> JkMount /manager/* ajp13
> 
> 
> 
>  But it still not working.
> 
> Thanks for any futher suggestion.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > What are the contents of mod_jk.conf?
> > 
> > Did you restart Apache so that it could pick up the changes?
> > 
> > Is there a VirtualHost container in mod_jk.conf for www.host2.com?
> > 
> > In your Host container in server.xml, you list the name as
"host2.com", not
> > "www.host2.com".   Is this a typo?  The two are different.
Either change it
> > to "www.host2.com" or use  within the Host container to
alias
> > www.host2.com to host2.com.
> > 
> > John
> > 
> > > -Original Message-
> > > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 11:36 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > John,
> > > 
> > > where is your reply ?
> > > 
> > > how to get apache-tomcat virtual host work? is an easy
> > > question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
> > > 
> > > Although I'm working very successfully with virtual hosts 
> > > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
> > > hosts running with Tomcat 4.
> > > 
> > > Only the default virtual host is running. It doesn't matter
> > > which virtual host I'm using.
> > > 
> > > I'm not alone and still working on it.
> > > 
> > > --Dave
> > > 
> > >  
> > > 
> > > Is this a glitch?  Did my first reply to this post get lost?
> > > 
> > > John
> > > 
> > > 
> > > > I have redhat linux 7.3 
> > > >  
> > > >  i have two virtual host in my machine www.host1.com and
> > > www.host2.com
> > > >  www.host1.com is the default one.
> > > >  I have installed apache-tomcat on my machine
> > > >  apache-tomcat runs fine with the www.host1.com  one.
> > > >  i mean both http://www.host1.com:8080/examples and 
> > > > http://www.host1.com/examples  come to same 
> > > > result which is
> > > >  good.
> > > >  i want www.host2.com work same way as www.host1.com in term 
> > > > of running
> > > >  apache-tomcat i did following to server.xml
> > > >   
> > > >  
> > > >  I add  dirctive like this
> > > >  
> > > > **
> > > > *
> > > >> > >unpackWARs="true">
> > > > 
> > > > > > >
className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > > > append="true"  />
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  > > >  directory="logs"
prefix="localhost_access_log."
> > > >  suffix=".txt"
> > > >  pattern="common"/>
> > > > 
> > > > 
> > > >  > > >  directory="logs"  prefix="localhost_log." 
> > > > suffix=".txt"
> > > > timestamp="true"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   > > > docBase="/home/www/zhujp98/servlets"
> > > >  debug="0"
> > > > reloadable="true"/>
> > > >  
> > > > 
> > > > **
> > > > 
> > > > 
> > > > after that I can access servlets using 
> > > http://www.host2.com:8080/servlets
> > > 
> > > but fails when i use http://www.host2.com/servlets
> > > 
> > > it seems that apache did not connect to tomcat in terms of
> > > www.host2.com
> > > 
> > > how can i fix this problem?
> > > Thanks
> > > 
> > > j.p 
> > > 
> > > 
> > >
-
> > > 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: Problem with AJP 1.3 Connector

2003-02-28 Thread Raja Sekhar
Hi Dennis,

Thanks for that response. This is the typcial client setup what we have. Now the worse 
part of this is, Apache is just doing a request management. All the actual process is 
done in Tomcat only. Can you please let me know how do we switch on the incremental 
garbage collector on??

..Raj


--

On Fri, 28 Feb 2003 11:00:03  
 Dennis Cartier wrote:
>Hi Raj,
>
>I just realized I did not answer your original question. That huge pause, I
>would expect it would be garbage collection. You likely have lots of memory
>in your tomcat box and it is taking a long time to garbage collect it.
>
>If you switch to the incremental garbage collector (-Xincgc), you will not
>see that huge pause (if that is  the cause), but the trade off will be lower
>overall throughput as the GC runs more often.
>
>Dennis
>
>-Original Message-
>From: Raja Sekhar [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 28, 2003 10:11 AM
>To: [EMAIL PROTECTED]
>Subject: Problem with AJP 1.3 Connector
>
>
>Hi,
>
>I have six Apache webservers in my front-end and one Tomcat server in my
>backend. All these 6 apache servers connect to single tomcat engine using
>AJP Connector.
>
>Each apache server is configured in such a way that it accepts 150 client
>requests at a time. In tomcat server.xml, the AJP min processors is set to
>120 and max processors to 1200.
>Now the problem is, sometimes the users dont get any response on the website
>for 15-20 mins. All the requests dont have any response. But after sometime
>again everything is normal. So the assumption I take is apache is sending
>requests to tomcat, but because of the huge load, tomcat might be queueing
>the requests.
>
>So can any please say me what should be the parameters I set for tomcat to
>remove this problem ??? This is a very urgent production problem so any
>immediate help would be highly appreciated.
>
>Thanks & Regards,
>
>..Raj
>
>
>Need a new email address that people can remember
>Check out the new EudoraMail at
>http://www.eudoramail.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

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



cant access tomcat admin utility

2003-02-28 Thread Mufaddal Khumri
Hi

I have a user defined as admin having admin, manager roles. I can 
access the tomcat - manager utility thru the browser but am unable to 
access the admin utility. When i try to goto 
http://localhost:8080/admin it says  - Access to the specified resource 
() has been forbidden.

am i missing something ?

thanks.

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


Any changes on listener cofiguration for TC4.1?

2003-02-28 Thread Vernon Wu

I am "updating" my project from TC4.0 to 4.1 once again this morning. For some reason, 
the sessionCreated method of 
HttpSessionListener  is not called at all. The whole application is blocked as a 
result. 

Any configuration needs to be changed or something else?

Thanks for your input.

Vernon



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



RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Karr, David
The JSPC tool does exactly that, it generates .java files.  You have to
compile them in your build step.  You also need to make sure that your
JSPC tool generates a "web.xml" excerpt that can be semi-automatically
or automatically (by JSPC) merged into your main "web.xml" file.  The
"web.xml" excerpt contains the servlet mappings for the generated
servlets.  If you don't include this, your JSP pages will still be
recompiled again when they are used at runtime.  The best test to make
sure you've done everything right in precompiling JSPs is to not include
the JSP pages in the WAR file.

> -Original Message-
> From: Molof, Barry [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 10:07 AM
> To: Tomcat Users List
> Subject: RE: Compile JSP on Tomcat Startup
> Importance: High
> 
> Can someone PLEASE help me?  This is an urgent issue.
> 
> Thanks
> 
> -Original Message-
> From: Molof, Barry
> Sent: Friday, February 28, 2003 10:02 AM
> To: Tomcat Users List
> Subject: RE: Compile JSP on Tomcat Startup
> 
> I tried jspc and all it did was convert .jsp to .java, instead of
> .class.  I'm looking for a solution that handles the conversion of
.jsp
> to .java to .class files during Tomcat 3.3.1a startup.
> 
> Can anyone else help?
> 
> Thanks
> 
> -Original Message-
> From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:07 AM
> To: Tomcat Users List
> Subject: Re: Compile JSP on Tomcat Startup
> 
> I think that you would use jspc (JSP compiler) that comes with Tomcat
> distribution. It's materialized in jsp.bat[sh] in
> $TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
> more
> info
> 
> regards,
> c.
> 
> At 04:07 PM 2/25/2003 -0500, you wrote:
> >How can I compile all of my JSPs when I start Tomcat?  The version I
am
> >using is 3.3.1a.  Any help would be great.
> >
> >Thanks.
> >Barry
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Robert Csiki
I'm looking for (almost) the same solution, but it seems like it is not
possible to do that.
After obtaining .java files from JSPs, you can easily use a compiler for
obtaining .class files, but that's not the only issue you will have. Please
read my questions (10-20 e-mails below) and you'll se why.

I'm sorry for you but let's hope somebody will light us up...

Robert

-Original Message-
From: Molof, Barry [mailto:[EMAIL PROTECTED]
Sent: February 28, 2003 1:07 PM
To: Tomcat Users List
Subject: RE: Compile JSP on Tomcat Startup
Importance: High


Can someone PLEASE help me?  This is an urgent issue.

Thanks

-Original Message-
From: Molof, Barry 
Sent: Friday, February 28, 2003 10:02 AM
To: Tomcat Users List
Subject: RE: Compile JSP on Tomcat Startup

I tried jspc and all it did was convert .jsp to .java, instead of
.class.  I'm looking for a solution that handles the conversion of .jsp
to .java to .class files during Tomcat 3.3.1a startup.  

Can anyone else help?

Thanks

-Original Message-
From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 3:07 AM
To: Tomcat Users List
Subject: Re: Compile JSP on Tomcat Startup

I think that you would use jspc (JSP compiler) that comes with Tomcat 
distribution. It's materialized in jsp.bat[sh] in
$TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
more 
info

regards,
c.

At 04:07 PM 2/25/2003 -0500, you wrote:
>How can I compile all of my JSPs when I start Tomcat?  The version I am
>using is 3.3.1a.  Any help would be great.
>
>Thanks.
>Barry


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


Error while shutdown

2003-02-28 Thread Edson Alves Pereira
Does anyone known how to solve this error?

Catalina.stop: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1189

With best wishes
Edson Alves Pereira


RE: setting up Tomcat 4.1

2003-02-28 Thread Tam, Michael
Did you set JAVA_HOME in your environment variable?
i.e.  JAVA_HOME=C:\j2sdk1.4.1

-Original Message-
From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:41 AM
To: [EMAIL PROTECTED]
Subject: setting up Tomcat 4.1


I have been trying to setup Tomcat 4.1 I have entered all class and other
paths. When I run Startup it goes through a whole set of operations then
finishes with "can not find -Djava.endorsed.dirs="
I someone can help I'd appreciate it. If you need a log of the startup
operations I would create one if I knew how, so if someone can tell me I'd
appreciates that also.
I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
sp3 with all security and other patches.
I have Sun's Java j2sdk1.4.1

--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried 



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



About "Direct SSL" with Tomcat as Stand Alone web Server for tomcat SSL experts

2003-02-28 Thread stev sutherland
Hello Tomcat SSL Experts


I read the official documentation on using Tomcat with
SSL Support 

I decided to use your "Direct SSL" solution since we
are running Tomcat 3.2.3 as a stand alone product.
I was wondering if you know about a related bug in
which sometimes (a 1:15 ratio) the page comes up "not
found". 

I noticed this problem happens only after I implement
the "Direct SSL" solution (which involves recompiling
webserver.jar with ANT for SSL support ).

Do know what this problem might be related to?

This problem occurs at a 1:15 ratio when we access the
server via both https and http

(My guess is  a - webserver.jar bug resulting from my
recompilation of webserver.jar with ANT for security
support.  But I could be wrong  )

 ---
By the way here are the full set of instructions that
we used to implement the SSL solution with Tomcat
after recompiling the webserver.jar file with ANT .
---
DIRECTIONS FOR SETTING UP SSL WITH TOMCAT/PORTAL
===

PREPARE THE PORTAL SERVER
---

1. ADD SECURITY JAR FILES TO TOMCAT LIB DIRECTORY
---
first put the following jar files in C:\Program
Files\folder1\folder2\tomcat\lib
-- jcert.jar 
-- jnet.jar
-- jsse.jar 
-- webserver.jar 

also place these files in %JAVA_HOME%\jre\lib\ext

Add %JAVA_HOME%\jre\lib\ext\jsse.jar to the CLASSPATH
env variable

You can download the first three security jar files
from the java web site. 
webserver.jar is special because we had to re-compile
this jar file using ANT and the 3 jar files. 
As a result of using ANT, webserver.jar now has
special security options that makes SSL possible. 
We can simply send you our webserver.jar file so that
you will not have to rebuild it with ANT. 


2. PREPARE SERVER.XML 
---
Go to C:\Program
Files\folder1\folder2\tomcat\conf\server.xml and
uncomment the server.xml options as seen below.











3. ADD JSSE, JNET, JCERT.JAR FILE TO TOMCAT CLASSPATH
--
SET
TOMCAT_JAR=%TOMCAT_LIB%\jasper.jar;%TOMCAT_LIB%\servlet.jar;%TOMCAT_LIB%\webserver.jar;%TOMCAT_LIB%\jsse.jar;%TOMCAT_LIB%\jnet.jar;%TOMCAT_LIB%\jcert.jar


4. ADD THE SECURITY PROVIDER TO THE JAVA.SECURITY
PROPERTIES FILE


 Edit %JAVA_HOME%/jre/lib/security/java.security
 Add:

security.provider.2=com.sun.net.ssl.internal.ssl.Provider


5. PREPARE YOUR CSR WHICH YOU WILL SEND 

* Generate key: 
* Use the attached cmd file genkey
genkey 

* Generate CSR: 
certgen 

THIS IS WHAT THE DOS OUTPUT SHOULD LOOK LIKE  

C:\>keytool -genkey -alias alias
-keysize 1024 -validity 365 -keyalg RSA -keystore
c:\
Enter keystore password:  changeit
What is your first and last name?
  [Unknown]:  
What is the name of your organizational unit?
  [Unknown]:  
What is the name of your organization?
  [Unknown]:  XXX
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]:  XX
Is  correct?
  [no]:  y

Enter key password for 
(RETURN if same as keystore password): 
changeit

C:\>keytool -certreq -alias alias -file
c:\.csr -keystore 
Enter keystore password:  changeit



6. GET THE SECURE SERVER ID FROM VERISIGN
--
You will need to get a Secure Server ID from Verisign
which you can get free for 14 days.
STEP #1: Go to https://www.verisign.com/
STEP #2: Click on "Get SSL Site Security >>"
STEP #3: You will see a box entitled "Enable
e-commerce with Commerce Site Services"
STEP #4: Click Try 

STEP #5: Fill out the form with your name, company
name etc.  

STEP #6: Click Continue

STEP #7: Following the Instructions. 
 STEP 1 of 5 ask you to Generate a CSR for
that machine.
You may have generated the CSR in the previous step.
  

STEP#8: Copy and paste your CSR contents into the
textarea that they provide.
Your CSR will be stored in your root directory.
Example:  C:\>STEPHENSCSR3.csr

They will email you the Test Server ID aka certificate
in 1 hour. You will use it in the next step. 

STEP#9: Download the browser certificate
(getcacert.cer) file from the emailed faq hyperlink.

STEP#10: You will install this in the test browsers
AND the keystore that you created above.

INSTALLING IT INTO THE BROWSER
 
The reason that you install the certificate 
(getcacert.cer)  into browser is so that you can view
your trial SSL encrypted web page.

1. To install it, just right click on the big E for
internet explorer.
2. left click on prope

RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Edson Alves Pereira
Have you ever tried Ant and Jasper, they are the tools that Tomcat
use to create JSP files and compile then.

> --
> De:   Molof, Barry[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  sexta-feira, 28 de fevereiro de 2003 15:07
> Para: Tomcat Users List
> Assunto:  RE: Compile JSP on Tomcat Startup
> Prioridade:   Alta
> 
> Can someone PLEASE help me?  This is an urgent issue.
> 
> Thanks
> 
> -Original Message-
> From: Molof, Barry 
> Sent: Friday, February 28, 2003 10:02 AM
> To: Tomcat Users List
> Subject: RE: Compile JSP on Tomcat Startup
> 
> I tried jspc and all it did was convert .jsp to .java, instead of
> .class.  I'm looking for a solution that handles the conversion of .jsp
> to .java to .class files during Tomcat 3.3.1a startup.  
> 
> Can anyone else help?
> 
> Thanks
> 
> -Original Message-
> From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 26, 2003 3:07 AM
> To: Tomcat Users List
> Subject: Re: Compile JSP on Tomcat Startup
> 
> I think that you would use jspc (JSP compiler) that comes with Tomcat 
> distribution. It's materialized in jsp.bat[sh] in
> $TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
> more 
> info
> 
> regards,
> c.
> 
> At 04:07 PM 2/25/2003 -0500, you wrote:
> >How can I compile all of my JSPs when I start Tomcat?  The version I am
> >using is 3.3.1a.  Any help would be great.
> >
> >Thanks.
> >Barry
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Molof, Barry
Can someone PLEASE help me?  This is an urgent issue.

Thanks

-Original Message-
From: Molof, Barry 
Sent: Friday, February 28, 2003 10:02 AM
To: Tomcat Users List
Subject: RE: Compile JSP on Tomcat Startup

I tried jspc and all it did was convert .jsp to .java, instead of
.class.  I'm looking for a solution that handles the conversion of .jsp
to .java to .class files during Tomcat 3.3.1a startup.  

Can anyone else help?

Thanks

-Original Message-
From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 3:07 AM
To: Tomcat Users List
Subject: Re: Compile JSP on Tomcat Startup

I think that you would use jspc (JSP compiler) that comes with Tomcat 
distribution. It's materialized in jsp.bat[sh] in
$TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
more 
info

regards,
c.

At 04:07 PM 2/25/2003 -0500, you wrote:
>How can I compile all of my JSPs when I start Tomcat?  The version I am
>using is 3.3.1a.  Any help would be great.
>
>Thanks.
>Barry


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



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



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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Is that something you created by hand?  That's not output from ApacheConfig.
Are there entries in httpd.conf for things like JkWorkersFile, etc.?

John

> -Original Message-
> From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 12:58 PM
> To: Tomcat Users List
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> John,
> Thank you very much for your response.
> 
> after i chang host2.com to www.host2.com and restart tomacat apache
> 
> My mod_jk.conf is like:
> ***
> 
> ServerName www.host2.com
> 
> JkMount /servlets ajp13
> JkMount /servlets/* ajp13
> 
> JkMount /manager ajp13
> JkMount /manager/* ajp13
> 
> 
> 
> ServerName www.host1.com
> 
> JkMount /webdav ajp13
> JkMount /webdav/* ajp13
> 
> JkMount /mlogin ajp13
> JkMount /mlogin/* ajp13
> 
> JkMount /login ajp13
> JkMount /login/* ajp13
> 
> JkMount /examples ajp13
> JkMount /examples/* ajp13
> 
> JkMount /tomcat-docs ajp13
> JkMount /tomcat-docs/* ajp13
> 
> JkMount /manager ajp13
> JkMount /manager/* ajp13
> 
> 
> 
>  But it still not working.
> 
> Thanks for any futher suggestion.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Fri, 28 Feb 2003, Turner, John wrote:
> 
> > 
> > What are the contents of mod_jk.conf?
> > 
> > Did you restart Apache so that it could pick up the changes?
> > 
> > Is there a VirtualHost container in mod_jk.conf for www.host2.com?
> > 
> > In your Host container in server.xml, you list the name as 
> "host2.com", not
> > "www.host2.com".   Is this a typo?  The two are different.  
> Either change it
> > to "www.host2.com" or use  within the Host container to alias
> > www.host2.com to host2.com.
> > 
> > John
> > 
> > > -Original Message-
> > > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, February 28, 2003 11:36 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: how to get apache-tomcat virtual host work?
> > > 
> > > 
> > > John,
> > > 
> > > where is your reply ?
> > > 
> > > how to get apache-tomcat virtual host work? is an easy
> > > question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
> > > 
> > > Although I'm working very successfully with virtual hosts 
> > > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
> > > hosts running with Tomcat 4.
> > > 
> > > Only the default virtual host is running. It doesn't matter
> > > which virtual host I'm using.
> > > 
> > > I'm not alone and still working on it.
> > > 
> > > --Dave
> > > 
> > >  
> > > 
> > > Is this a glitch?  Did my first reply to this post get lost?
> > > 
> > > John
> > > 
> > > 
> > > > I have redhat linux 7.3 
> > > >  
> > > >  i have two virtual host in my machine www.host1.com and
> > > www.host2.com
> > > >  www.host1.com is the default one.
> > > >  I have installed apache-tomcat on my machine
> > > >  apache-tomcat runs fine with the www.host1.com  one.
> > > >  i mean both http://www.host1.com:8080/examples and 
> > > > http://www.host1.com/examples  come to same 
> > > > result which is
> > > >  good.
> > > >  i want www.host2.com work same way as www.host1.com in term 
> > > > of running
> > > >  apache-tomcat i did following to server.xml
> > > >   
> > > >  
> > > >  I add  dirctive like this
> > > >  
> > > > **
> > > > *
> > > >> > >unpackWARs="true">
> > > > 
> > > > > > >   
> className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > > > append="true"  />
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  className="org.apache.catalina.valves.AccessLogValve"
> > > >  directory="logs"  
> prefix="localhost_access_log."
> > > >  suffix=".txt"
> > > >  pattern="common"/>
> > > > 
> > > > 
> > > >  className="org.apache.catalina.logger.FileLogger"
> > > >  directory="logs"  prefix="localhost_log." 
> > > > suffix=".txt"
> > > > timestamp="true"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   > > > docBase="/home/www/zhujp98/servlets"
> > > >  debug="0"
> > > > reloadable="true"/>
> > > >  
> > > > 
> > > > **
> > > > 
> > > > 
> > > > after that I can access servlets using 
> > > http://www.host2.com:8080/servlets
> > > 
> > > but fails when i use http://www.host2.com/servlets
> > > 
> > > it seems that apache did not connect to tomcat in terms of
> > > www.host2.com
> > > 
> > > how can i fix this problem?
> > > Thanks
> > > 
> > > j.p 
> > > 
> > > 
> > > 
> ---

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
John,
Thank you very much for your response.

after i chang host2.com to www.host2.com and restart tomacat apache

My mod_jk.conf is like:
***

ServerName www.host2.com

JkMount /servlets ajp13
JkMount /servlets/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13



ServerName www.host1.com

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /mlogin ajp13
JkMount /mlogin/* ajp13

JkMount /login ajp13
JkMount /login/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13



 But it still not working.

Thanks for any futher suggestion.









On Fri, 28 Feb 2003, Turner, John wrote:

> 
> What are the contents of mod_jk.conf?
> 
> Did you restart Apache so that it could pick up the changes?
> 
> Is there a VirtualHost container in mod_jk.conf for www.host2.com?
> 
> In your Host container in server.xml, you list the name as "host2.com", not
> "www.host2.com".   Is this a typo?  The two are different.  Either change it
> to "www.host2.com" or use  within the Host container to alias
> www.host2.com to host2.com.
> 
> John
> 
> > -Original Message-
> > From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 28, 2003 11:36 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: how to get apache-tomcat virtual host work?
> > 
> > 
> > John,
> > 
> > where is your reply ?
> > 
> > how to get apache-tomcat virtual host work? is an easy
> > question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
> > 
> > Although I'm working very successfully with virtual hosts 
> > and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
> > hosts running with Tomcat 4.
> > 
> > Only the default virtual host is running. It doesn't matter
> > which virtual host I'm using.
> > 
> > I'm not alone and still working on it.
> > 
> > --Dave
> > 
> >  
> > 
> > Is this a glitch?  Did my first reply to this post get lost?
> > 
> > John
> > 
> > 
> > > I have redhat linux 7.3 
> > >  
> > >  i have two virtual host in my machine www.host1.com and
> > www.host2.com
> > >  www.host1.com is the default one.
> > >  I have installed apache-tomcat on my machine
> > >  apache-tomcat runs fine with the www.host1.com  one.
> > >  i mean both http://www.host1.com:8080/examples and 
> > > http://www.host1.com/examples  come to same 
> > > result which is
> > >  good.
> > >  i want www.host2.com work same way as www.host1.com in term 
> > > of running
> > >  apache-tomcat i did following to server.xml
> > >   
> > >  
> > >  I add  dirctive like this
> > >  
> > > **
> > > *
> > >> >unpackWARs="true">
> > > 
> > > > >   className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > > append="true"  />
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > >  directory="logs"  prefix="localhost_access_log."
> > >  suffix=".txt"
> > >  pattern="common"/>
> > > 
> > > 
> > >  > >  directory="logs"  prefix="localhost_log." 
> > > suffix=".txt"
> > > timestamp="true"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >   > > docBase="/home/www/zhujp98/servlets"
> > >  debug="0"
> > > reloadable="true"/>
> > >  
> > > 
> > > **
> > > 
> > > 
> > > after that I can access servlets using 
> > http://www.host2.com:8080/servlets
> > 
> > but fails when i use http://www.host2.com/servlets
> > 
> > it seems that apache did not connect to tomcat in terms of
> > www.host2.com
> > 
> > how can i fix this problem?
> > Thanks
> > 
> > j.p 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTE

RE: reference material

2003-02-28 Thread Phillip Qin
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html


Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: reference material

Look through the archives. On Dec 18, John Turner wrote a pretty good post
on the various connectors.

Regards,

Will Hartung
([EMAIL PROTECTED])

- Original Message -
From: "Deepa Raja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 3:33 AM
Subject: reference material


Could someone mail me a link about where I could find information that
compares different type of connectors.
i could not trace the archives of this group.

Thanks in advance
Deepa





-
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: reference material

2003-02-28 Thread Will Hartung
Look through the archives. On Dec 18, John Turner wrote a pretty good post
on the various connectors.

Regards,

Will Hartung
([EMAIL PROTECTED])

- Original Message -
From: "Deepa Raja" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 3:33 AM
Subject: reference material


Could someone mail me a link about where I could find information that
compares different type of connectors.
i could not trace the archives of this group.

Thanks in advance
Deepa





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



Streaming files from Tomcat thru JK and IIS: No Headers (?)

2003-02-28 Thread Jeff Corliss
I'm having a problem with my IIS/Tomcat integration
using the JK connector.  Regular pages and servlet
mapped extensions work fine, but when I try to send
files using the ServletOutputStream, it does not work
properly when going thru IIS<->JK<->Tomcat.  I wind up
getting the content returned to the browser with
absolutely no headers (at least from the perspective
of doing a "View Source" on the returned "page").  I
am setting headers including content type, length, and
disposition.  Also, if I go directly to Tomcat using
its port #, the files come down the wire with the
headers and all and the appropriate plug-ins get
called by the browser, etc.  

Anyone know a solution for this?

Thanks,
JC


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
I gave up. Instead, I use ant to create a webapps/myapp dir and copy all
stuff to that directory. Craig should be the right person to answer this
question.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Prathap [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:29 AM
To: Tomcat Users List
Subject: Re: Tomcat WAR expansion

Hi
I am getting this trace.. Can you figure it out??

2003-02-28 21:55:02 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\test\Tomcat41\work\Standalone\localhost\webdav
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding of random number
generator has been completed
2003-02-28 21:55:02 StandardWrapper[/webdav:default]: Loading container
servlet default
2003-02-28 21:55:02 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2003-02-28 21:55:02 StandardContext[/test]: Resources start failed:
2003-02-28 21:55:02 StandardContext[/test]: Context startup failed due to
previous errors
2003-02-28 21:55:02 StandardContext[/test]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/test] has not been started
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
 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:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Regards,
Pratt
- Original Message -
From: "Phillip Qin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 9:55 PM
Subject: RE: Tomcat WAR expansion


> I saw some error messages and my app war is not expanded. Did you see them
> in your log?
>
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
> current available=false
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
> Resources
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start failed:
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring
non-privileged
> default Loader
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
> Manager
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
> container startup
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed
due
> to previous errors
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during cleanup
> after start failed
> LifecycleException:  Container StandardContext[/lciponline] has not been
> started
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 21)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> at
>
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
> java:529)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
> at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
> at
> org.apache.commons.digester.Digester.endElement(Digester.java:1036)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
> a:585)
> at
>
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
> :647)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
> mentFragmentScannerImpl.java:1008)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
> ntFragmentScannerI

setting up Tomcat 4.1

2003-02-28 Thread Curtis Seyfried
I have been trying to setup Tomcat 4.1 I have entered all class and other
paths. When I run Startup it goes through a whole set of operations then
finishes with "can not find -Djava.endorsed.dirs="
I someone can help I'd appreciate it. If you need a log of the startup
operations I would create one if I knew how, so if someone can tell me I'd
appreciates that also.
I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
sp3 with all security and other patches.
I have Sun's Java j2sdk1.4.1
--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried 



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


RE: Parasite string length added in the message body

2003-02-28 Thread Mike Jackson
I've noticed that also, but I don't have clue why.  I had only noticed the
trailing zero, not the leading.  But this is with Oracle's XSQL servlet, so
it's not even my code

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Raphael Bousquet [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 9:30 AM
> To: [EMAIL PROTECTED]
> Subject: Parasite string length added in the message body
>
>
> Does someone know why Tomcat (version 4.1.18 Linux and Windows) adds the
> string length in the message body?
>
> Here is what I receive from Tomcat:
> --
> HTTP/1.1 200 OK
> Content-Type: text/xml
> Transfer-Encoding: chunked
> Date: Fri, 28 Feb 2003 16:59:22 GMT
> Server: Apache Coyote/1.0
> Connection: close
>
> 56
> 
> 
> Mike
> 
>
> 0
>
> --
> as you can see the message body contains a '56' and a '0', and I
> don't know
> where they come from? 56 is the size of the string "" in
> hex.
>
> Here is the code of my servlet:
> --
> package testservlet;
>
> import java.io.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
>
> public class Reply
>   extends HttpServlet
>   implements SingleThreadModel
> {
>   private static final String CONTENT_TYPE = "text/xml";
>
>   //Process the HTTP Get request
>   public void doGet(HttpServletRequest request,
> HttpServletResponse response)
>   throws ServletException, IOException
>   {
>   //partner identifier
>   response.setContentType(CONTENT_TYPE);
>   PrintWriter out = response.getWriter();
>   out.println("");
>   out.println("");
>   out.println("Mike");
>   out.println("");
>   out.flush();
>   out.close();
>   }
> }
> --
>
> It is very simple and there is no sign of any string length being
> written in
> the output stream.
>
> Is this normal? If I am missing something I would really appreciate your
> input. Thanks
>
>
> -
> 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]



Parasite string length added in the message body

2003-02-28 Thread Raphael Bousquet
Does someone know why Tomcat (version 4.1.18 Linux and Windows) adds the
string length in the message body?

Here is what I receive from Tomcat:
--
HTTP/1.1 200 OK
Content-Type: text/xml
Transfer-Encoding: chunked
Date: Fri, 28 Feb 2003 16:59:22 GMT
Server: Apache Coyote/1.0
Connection: close

56


Mike


0

--
as you can see the message body contains a '56' and a '0', and I don't know
where they come from? 56 is the size of the string "" in
hex.

Here is the code of my servlet:
--
package testservlet;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Reply
extends HttpServlet
implements SingleThreadModel
{
private static final String CONTENT_TYPE = "text/xml";

//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
//partner identifier
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("");
out.println("");
out.println("Mike");
out.println("");
out.flush();
out.close();
}
}
--

It is very simple and there is no sign of any string length being written in
the output stream.

Is this normal? If I am missing something I would really appreciate your
input. Thanks


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



Where to put a custom Realm?

2003-02-28 Thread Yajun Liu
Hi,

I'm implementing a custom Realm which shares an UserManager with the rest of 
application. I put the customer Realm in the WAR file and tomcat could not find it at 
startup time. What is the best practice to solve this problem?

Thanks.

--Yajun

Jakarta Tomcat on Solaris

2003-02-28 Thread Oleksiy Podopryhora
Hi there,
I am configuring a Jakarta Tomcat on Solaris for our students. Since I 
have no experience with subject I decided to ask for your help and 
advice in order to avoid unnecessary mistakes. I have installed Tomcat 
on the port 8080. On our system everybody has an account so I added 
listener:



our users can put their JSP stuff into their public_html directory. Also 
I added



because I would like Catalina automatically reload the web application 
if a change is detected.

but it does not work ;-( and it's not convinient to restart a whole 
server after making simple change to the script.

How can I put log files in the user's public_html directories, so users 
can see errors that belong to their scripts only? What shell I configure 
as well? What can be useful?

Please advice.

Thanks to all





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


Tomcat/RMI and Spaces in Filenames

2003-02-28 Thread Bodycombe, Andrew
I am having a problem with Tomcat 4.1.18 running on Windows NT 4, and JDK
1.4

I have a servlet accessing a remote server via RMI, and the RMI calls fail
with an UnmarshallException, 
but only when the tomcat install directory contains spaces. e.g. C:\Program
Files\Apache Group\Tomcat 4.1\,
the default install directory.

I enclose the stack trace:

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.net.MalformedURLException: no protocol: Files/Apache
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.net.MalformedURLException: no protocol: Files/Apache
java.net.MalformedURLException: no protocol: Files/Apache
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:240)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx
y.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at
uk.co.siemenscomms.eng.j2ee.model.GazetteerManager.getStreet(GazetteerManage
r.java:103)
at
uk.co.siemenscomms.eng.j2ee.action.MoreDetailsAction.perform(MoreDetailsActi
on.java:90)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
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(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:479)


In this case, the servlet is accessing an EJB on a remote machine when the
exception occurs,
but the same happens when accessing an RMI server on the same machine, in a
different VM.

Note the "Files/A

RE: Running outside of localhost

2003-02-28 Thread Turner, John

Basically, everywhere you see "localhost", change it to "my.domain.com". ;)
The alternative, or if you have more than one virtual host, is to copy the
entire localhost Host container in server.xml, and change "localhost" to
"my.domain.com".  This will preserve the localhost configuration.  

John

> -Original Message-
> From: Chris Fowler [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:47 AM
> To: [EMAIL PROTECTED]
> Subject: Running outside of localhost
> 
> 
> Hi all,
> 
> I am a complete newbie to tomcat and apache. I have followed John's
> excellent Windows 2000/XP - Apache + JK + Tomcat HOWTO and all works
> well. AS sugested I have used localhost throughout the installation.
> What do I need to do so I can serve .jsp's to clients outside my
> machine. For example if I use:
> 
> http://localhost/examples/jsp/index.html
> 
> All works well. But if I replace local host with machine_name.domain I
> get a 404 error. This is probably a really dumb question to 
> ask, but can
> somebody point me in the right direction.
> 
> Thanks,
> 
> 
> 
> -
> 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]



conflict with tomcat's commons-logging and webapp's commons-logging

2003-02-28 Thread Kirby Vandivort
Hello,

I am running Tomcat 4.1.18, and after a while (a few hours) of accessing 
a webapp that is using struts 1.1 rc 1 everything hangs and I have to 
restart tomcat.  I'm accessing the webapp via https.

catalina.out has an exception that looks like the following:




org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
 at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
 at org.apache.tomcat.util.log.Log.log(Log.java:198)
 at org.apache.tomcat.util.log.Log.log(Log.java:192)
 at org.apache.tomcat.util.log.Log.log(Log.java:174)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:484)



I surmise that there is a conflict between the commons-logging that
tomcat has in server/lib and the commons-logging that struts comes
with.  How can I resolve this?  I would like to leave commons-logging
in the webapp so that it is complete if possible, although I suspect
that it might not be, and I'll be forced to package different versions
of my webapp depending on whether the end-installer is using tomcat or
not.

I've searched the groups and can't seem to find anything that really
addresses this issue, though I've probably just missed it.

Thanks!


-- 

Kirby Vandivort  Theoretical and Computational Biophysics 
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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



Re: help with SSI directives on tomcat 4.1.12

2003-02-28 Thread Becky Phaneuf

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html

-B



>>> [EMAIL PROTECTED] 02/27/03 06:55PM >>>
Hello all
I am using the following SSI directive in a .shtml file in the
ROOT directory:


OutputServlet1 is a servlet class that just prints "helllo."
(some plain text). I have a println in doGet which wud not print.

It shows in the browser as "[an error occurred while processing
this directive]".

Even if I use any other directive I have the same problem.

Please advise
thanks
Mahesh



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



Running outside of localhost

2003-02-28 Thread Chris Fowler
Hi all,

I am a complete newbie to tomcat and apache. I have followed John's
excellent Windows 2000/XP - Apache + JK + Tomcat HOWTO and all works
well. AS sugested I have used localhost throughout the installation.
What do I need to do so I can serve .jsp's to clients outside my
machine. For example if I use:

http://localhost/examples/jsp/index.html

All works well. But if I replace local host with machine_name.domain I
get a 404 error. This is probably a really dumb question to ask, but can
somebody point me in the right direction.

Thanks,



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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

What are the contents of mod_jk.conf?

Did you restart Apache so that it could pick up the changes?

Is there a VirtualHost container in mod_jk.conf for www.host2.com?

In your Host container in server.xml, you list the name as "host2.com", not
"www.host2.com".   Is this a typo?  The two are different.  Either change it
to "www.host2.com" or use  within the Host container to alias
www.host2.com to host2.com.

John

> -Original Message-
> From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:36 AM
> To: [EMAIL PROTECTED]
> Subject: RE: how to get apache-tomcat virtual host work?
> 
> 
> John,
> 
> where is your reply ?
> 
> how to get apache-tomcat virtual host work? is an easy
> question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
> 
> Although I'm working very successfully with virtual hosts 
> and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
> hosts running with Tomcat 4.
> 
> Only the default virtual host is running. It doesn't matter
> which virtual host I'm using.
> 
> I'm not alone and still working on it.
> 
> --Dave
> 
>  
> 
> Is this a glitch?  Did my first reply to this post get lost?
> 
> John
> 
> 
> > I have redhat linux 7.3 
> >  
> >  i have two virtual host in my machine www.host1.com and
> www.host2.com
> >  www.host1.com is the default one.
> >  I have installed apache-tomcat on my machine
> >  apache-tomcat runs fine with the www.host1.com  one.
> >  i mean both http://www.host1.com:8080/examples and 
> > http://www.host1.com/examples  come to same 
> > result which is
> >  good.
> >  i want www.host2.com work same way as www.host1.com in term 
> > of running
> >  apache-tomcat i did following to server.xml
> >   
> >  
> >  I add  dirctive like this
> >  
> > **
> > *
> >>unpackWARs="true">
> > 
> > >   className="org.apache.ajp.tomcat4.config.ApacheConfig"
> > append="true"  />
> > 
> > 
> > 
> > 
> > 
> >  >  directory="logs"  prefix="localhost_access_log."
> >  suffix=".txt"
> >  pattern="common"/>
> > 
> > 
> >  >  directory="logs"  prefix="localhost_log." 
> > suffix=".txt"
> > timestamp="true"/>
> > 
> > 
> > 
> > 
> > 
> > 
> >   > docBase="/home/www/zhujp98/servlets"
> >  debug="0"
> > reloadable="true"/>
> >  
> > 
> > **
> > 
> > 
> > after that I can access servlets using 
> http://www.host2.com:8080/servlets
> 
> but fails when i use http://www.host2.com/servlets
> 
> it seems that apache did not connect to tomcat in terms of
> www.host2.com
> 
> how can i fix this problem?
> Thanks
> 
> j.p 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: Two Realms for client authentication

2003-02-28 Thread Donald Ball
On 2/28/2003 at 5:25 PM Gil wrote:

>Can I use two Realms for client authentication?? I would like to define a 
>set of servlets that uses a Realm and another set of sevlets that uses 
>another Realm. Can I make this??

In the same webapp? I don't think so. I think you have a few choices:

1. split the servlets into two webapps, each which its own Realm. annoying
and pedantic.

2. Write your own Realm which acts as a front-end to the two real Realms
and dispatches authentication requests to one or the other based on some
criteria... don't know if Realms get enough information to make this
decision though.

3. you might check out the securityfilter project:

http://securityfilter.sourceforge.net/

they're trying to mitigate some of the portability problems associated with
CMS by bundling the security into the webapps themselves. interesting
approach, might work for you.

- donald


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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Hostmaster of the day
John,

where is your reply ?

how to get apache-tomcat virtual host work? is an easy
question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.

Although I'm working very successfully with virtual hosts 
and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
hosts running with Tomcat 4.

Only the default virtual host is running. It doesn't matter
which virtual host I'm using.

I'm not alone and still working on it.

--Dave

 

Is this a glitch?  Did my first reply to this post get lost?

John


> I have redhat linux 7.3 
>  
>  i have two virtual host in my machine www.host1.com and
www.host2.com
>  www.host1.com is the default one.
>  I have installed apache-tomcat on my machine
>  apache-tomcat runs fine with the www.host1.com  one.
>  i mean both http://www.host1.com:8080/examples and 
> http://www.host1.com/examples  come to same 
> result which is
>  good.
>  i want www.host2.com work same way as www.host1.com in term 
> of running
>  apache-tomcat i did following to server.xml
>   
>  
>  I add  dirctive like this
>  
> **
> *
>   unpackWARs="true">
> 
>   className="org.apache.ajp.tomcat4.config.ApacheConfig"
> append="true"  />
> 
> 
> 
> 
> 
>   directory="logs"  prefix="localhost_access_log."
>  suffix=".txt"
>  pattern="common"/>
> 
> 
>   directory="logs"  prefix="localhost_log." 
> suffix=".txt"
> timestamp="true"/>
> 
> 
> 
> 
> 
> 
>   docBase="/home/www/zhujp98/servlets"
>  debug="0"
> reloadable="true"/>
>  
> 
> **
> 
> 
> after that I can access servlets using 
http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of
www.host2.com

how can i fix this problem?
Thanks

j.p 


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


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

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


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



RE: mod_jk

2003-02-28 Thread Turner, John

Nope, in my opinion you made the right choice.  That's how I do it; I never
use the Apache that comes with RH.  The HOWTO covers installing the JDK,
installing Apache from source (2.0.44), installing Tomcat 4.1.18 from
binary, and installing and configuring the JK connector (mod_jk.so).

John

> -Original Message-
> From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:28 AM
> To: 'Tomcat Users List'
> Subject: RE: mod_jk
> 
> 
> John,
>   Thanks for your help.  Do you think that since I didn't install
> apache via Red Hat installer that the document might not work for me?
> They use an older version of Apache.  Thanks, Jeremy
> 
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 28, 2003 9:25 AM
> To: 'Tomcat Users List'
> Subject: RE: mod_jk
> 
> 
> Yes, .44 is module compatible with .43.   For more info, 
> check out my RH
> HOWTO for Apache + JK + Tomcat:
> 
> http://www.johnturner.com/howto
> 
> John
> 
> > -Original Message-
> > From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 28, 2003 11:11 AM
> > To: Tomcat
> > Subject: mod_jk
> > 
> > 
> > Tomcat-List,
> > I have just built a new Red Hat machine and I 
> > installed
> > it with no preinstalled Web Server or Databases so that I 
> > could install
> > them myself.  I have Apache 2.0.44 and I wanted to integrate 
> > Tomcat.  I
> > downloaded mod_jk-2.0.43 and I need to know if it will work 
> > with Apache
> > 2.0.44.  Thanks,
> >  
> > Jeremy Whitlock --- MCP/MCSA
> > IT Manager for Star Precision, Inc.
> > Phone:  (970) 535-4795
> > Metro:  (303) 926-0559
> > Fax:  (970) 535-0780
> > Metro Fax:  (303) 926-0559
> > http://www.starprecision.com 
> >  
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: mod_jk

2003-02-28 Thread Jeremy Whitlock
Phillip,
Just the answer I was looking for.  Thanks a lot, Jeremy

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:34 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk

I see many problems when you include apache in your Red hat
installation. If
you make a clean build, John's document should perfectly meet your
requirement.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:28 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk

John,
Thanks for your help.  Do you think that since I didn't install
apache via Red Hat installer that the document might not work for me?
They use an older version of Apache.  Thanks, Jeremy

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:25 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk


Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

> -Original Message-
> From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:11 AM
> To: Tomcat
> Subject: mod_jk
> 
> 
> Tomcat-List,
> I have just built a new Red Hat machine and I 
> installed
> it with no preinstalled Web Server or Databases so that I 
> could install
> them myself.  I have Apache 2.0.44 and I wanted to integrate 
> Tomcat.  I
> downloaded mod_jk-2.0.43 and I need to know if it will work 
> with Apache
> 2.0.44.  Thanks,
>  
> Jeremy Whitlock --- MCP/MCSA
> IT Manager for Star Precision, Inc.
> Phone:  (970) 535-4795
> Metro:  (303) 926-0559
> Fax:  (970) 535-0780
> Metro Fax:  (303) 926-0559
> http://www.starprecision.com 
>  
> 

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



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


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



RE: mod_jk

2003-02-28 Thread Phillip Qin
I see many problems when you include apache in your Red hat installation. If
you make a clean build, John's document should perfectly meet your
requirement.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:28 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk

John,
Thanks for your help.  Do you think that since I didn't install
apache via Red Hat installer that the document might not work for me?
They use an older version of Apache.  Thanks, Jeremy

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:25 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk


Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

> -Original Message-
> From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:11 AM
> To: Tomcat
> Subject: mod_jk
> 
> 
> Tomcat-List,
> I have just built a new Red Hat machine and I 
> installed
> it with no preinstalled Web Server or Databases so that I 
> could install
> them myself.  I have Apache 2.0.44 and I wanted to integrate 
> Tomcat.  I
> downloaded mod_jk-2.0.43 and I need to know if it will work 
> with Apache
> 2.0.44.  Thanks,
>  
> Jeremy Whitlock --- MCP/MCSA
> IT Manager for Star Precision, Inc.
> Phone:  (970) 535-4795
> Metro:  (303) 926-0559
> Fax:  (970) 535-0780
> Metro Fax:  (303) 926-0559
> http://www.starprecision.com 
>  
> 

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



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


Re: Tomcat WAR expansion

2003-02-28 Thread Prathap
Hi
I am getting this trace.. Can you figure it out??

2003-02-28 21:55:02 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\test\Tomcat41\work\Standalone\localhost\webdav
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding of random number
generator has been completed
2003-02-28 21:55:02 StandardWrapper[/webdav:default]: Loading container
servlet default
2003-02-28 21:55:02 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2003-02-28 21:55:02 StandardContext[/test]: Resources start failed:
2003-02-28 21:55:02 StandardContext[/test]: Context startup failed due to
previous errors
2003-02-28 21:55:02 StandardContext[/test]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/test] has not been started
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
 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:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Regards,
Pratt
- Original Message -
From: "Phillip Qin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 9:55 PM
Subject: RE: Tomcat WAR expansion


> I saw some error messages and my app war is not expanded. Did you see them
> in your log?
>
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
> current available=false
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
> Resources
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start failed:
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring
non-privileged
> default Loader
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
> Manager
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
> container startup
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed
due
> to previous errors
> 2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during cleanup
> after start failed
> LifecycleException:  Container StandardContext[/lciponline] has not been
> started
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
> at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
> 21)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> at
>
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
> java:529)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
> at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
> at
> org.apache.commons.digester.Digester.endElement(Digester.java:1036)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
> a:585)
> at
>
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
> :647)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
> mentFragmentScannerImpl.java:1008)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
> her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
> at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
> ntFragmentScannerImpl.java:329)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
> at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
> at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
> 5)
> at org.apache.commons.digester.Digester.parse(Digester.java:1514)
> at
>
org.a

RE: mod_jk

2003-02-28 Thread Jeremy Whitlock
John,
Thanks for your help.  Do you think that since I didn't install
apache via Red Hat installer that the document might not work for me?
They use an older version of Apache.  Thanks, Jeremy

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:25 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk


Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

> -Original Message-
> From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:11 AM
> To: Tomcat
> Subject: mod_jk
> 
> 
> Tomcat-List,
> I have just built a new Red Hat machine and I 
> installed
> it with no preinstalled Web Server or Databases so that I 
> could install
> them myself.  I have Apache 2.0.44 and I wanted to integrate 
> Tomcat.  I
> downloaded mod_jk-2.0.43 and I need to know if it will work 
> with Apache
> 2.0.44.  Thanks,
>  
> Jeremy Whitlock --- MCP/MCSA
> IT Manager for Star Precision, Inc.
> Phone:  (970) 535-4795
> Metro:  (303) 926-0559
> Fax:  (970) 535-0780
> Metro Fax:  (303) 926-0559
> http://www.starprecision.com 
>  
> 

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



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



Two Realms for client authentication

2003-02-28 Thread Gil
Hi.

Can I use two Realms for client authentication?? I would like to define a 
set of servlets that uses a Realm and another set of sevlets that uses 
another Realm. Can I make this??

Regards. 

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


RE: mod_jk

2003-02-28 Thread Turner, John

Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

> -Original Message-
> From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 11:11 AM
> To: Tomcat
> Subject: mod_jk
> 
> 
> Tomcat-List,
> I have just built a new Red Hat machine and I 
> installed
> it with no preinstalled Web Server or Databases so that I 
> could install
> them myself.  I have Apache 2.0.44 and I wanted to integrate 
> Tomcat.  I
> downloaded mod_jk-2.0.43 and I need to know if it will work 
> with Apache
> 2.0.44.  Thanks,
>  
> Jeremy Whitlock --- MCP/MCSA
> IT Manager for Star Precision, Inc.
> Phone:  (970) 535-4795
> Metro:  (303) 926-0559
> Fax:  (970) 535-0780
> Metro Fax:  (303) 926-0559
> http://www.starprecision.com 
>  
> 

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



RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
I saw some error messages and my app war is not expanded. Did you see them
in your log?

2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
current available=false
2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
Resources
2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start failed:
2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring non-privileged
default Loader
2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
Manager
2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
container startup
2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed due
to previous errors
2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/lciponline] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
a:585)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
:647)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1008)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:335)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
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: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(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Prathap [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:07 AM
To: Tomcat Users List
Subject: Re: Tomcat WAR expansion

Hi,
My Problem is why it

RE: Tomcat 4.1.18 - Scalability Issue ?

2003-02-28 Thread Peter Lin

Coyote is referring to CoyoteConnector. Remy and I
discuss these topics in the book with examples, so
hopefully when it comes out, it will help.

peter

--- "Chakravarthy, Sundar" <[EMAIL PROTECTED]>
wrote:
> Thanks Peter. 
> 
> When you say Coyote processors you mean threads ?
> Right ?
> 
> I may have a few more questions after I conduct the
> test with Jmeter.
> Don't change your channel!
> 
> 
> 
> > >
>
className="org.apache.coyote.tomcat4.CoyoteConnector"
> >port="8009" minProcessors="5"
> > maxProcessors="75"
> >enableLookups="true"
> > redirectPort="8443"
> >acceptCount="10" debug="0"
> > connectionTimeout="0"
> >useURIValidationHack="false"
> >
>
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> > />
> > 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: Tomcat WAR expansion

2003-02-28 Thread Shapira, Yoav

Howdy,

>So unpackWars is just a nice feature provided by Tomcat?

Exactly.

As to the original question for this thread: sorry for hijacking your
thread.  I just felt the statement that WARs must be exploded was so
flagrantly wrong that it had to be addressed.  I don't know the answer
to your original question as to why it's not unpacking your specific
WAR.

Yoav Shapira
Millennium ChemInformatics



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]



Default Context

2003-02-28 Thread Prathap
Hi,

 Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.

 For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
 If load-on-startup is removed, it is working fine if the servlet is
accessed manually.

 Can anybody help me out?

 I am using Tomcat4.1.18 version.

 Thanks and Regards,
Pratt.




mod_jk

2003-02-28 Thread Jeremy Whitlock
Tomcat-List,
I have just built a new Red Hat machine and I installed
it with no preinstalled Web Server or Databases so that I could install
them myself.  I have Apache 2.0.44 and I wanted to integrate Tomcat.  I
downloaded mod_jk-2.0.43 and I need to know if it will work with Apache
2.0.44.  Thanks,
 
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com 
 


Pre-compiling JSPs

2003-02-28 Thread Robert Csiki
I'd like to re-formulate this using a shorter form, maybe I'll get some
feedback...

Q: How to pre-compile all the JSPs from my web application, in such way
Tomcat WILL recognize and use them (I'm talking about the .class files) at
runtime, WITHOUT re-compiling them?

Thanks a lot in advance,
Robert

-Original Message-
From: Robert Csiki [mailto:[EMAIL PROTECTED]
Sent: February 28, 2003 9:59 AM
To: 'Tomcat Users List'
Subject: Pre-compiling JSPs


Hi there,
 
I'm trying to pre-compile all the JSPs before deploying and running my web
app
(for fast initial invocation purposes) under Tomcat 4.0.x app server.
 
I've found both jspc.bat tool from Tomcat/bin and Ant's JspC task (that are
doing the same thing) are generating outputs (that is, .java and then .class
files) that are not recognized at runtime by Tomcat's servlet engine.

And that's because of 2 issues:
 
 1. The .java and .class filenames are not mangled by the above tools; the
Jasper compiler does that for generating unique filenames
 2.  The package name is set accordingly by the above tools on all .java
classes (ex. for /system/login/login.jsp source, a Java one called
login.java is created and the package name is system.login); Jasper sets the
hardcoded org.apache.jsp package for all .java classes generated from JSPs
(bug?).

However, if you look into the Tomcat sources (at least on the 4.0.x level
code), you'll notice there are 2 distinct contexts for compiling the JSPs:
one used at runtime (JSPCompiler.java), the second one used by jspc and Ant
task (CommandLineCompiler.java). They are not the same. The command line
compiler doesn't mangle the generated Java sources names and it also sets
the package differently. And that's enough to prevent the compiled classes
being recognized at runtime.

Didn't understand exactly why 2 contexts?
 
Any idea about how to handle this problem?
 
Thank you,
Robert Csiki


Re: Tomcat WAR expansion

2003-02-28 Thread Prathap
Hi,
My Problem is why it is not expanded even the unpackWARS is set to true,
any idea?

Thanks



- Original Message -
From: "Scott, Sean" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 9:39 PM
Subject: RE: Tomcat WAR expansion


> I can't speak for Pratt, but my WAR runs fine without being expanded.
> (4.1.18)
>
> -Original Message-
> From: Phillip Qin [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 9:02 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat WAR expansion
>
>
> War is different from jar. WAR has to be expanded in order to run.
>
>
> Regards,
>
>
> PQ
>
> "This Guy Thinks He Knows Everything"
> "This Guy Thinks He Knows What He Is Doing"
>
> -Original Message-
> From: Scott, Sean [mailto:[EMAIL PROTECTED]
> Sent: February 28, 2003 11:02 AM
> To: 'Tomcat Users List'
> Subject: RE: Tomcat WAR expansion
>
> I am seeing this behavior too, but I am not sure of the benefit of
expanding
> the WAR. Does it run faster?
>
> -sean
>
> -Original Message-
> From: Tomcat [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:55 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat WAR expansion
>
>
>
>  Hi,
>
>  When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
> is not expanding the WAR if server.xml contains the Context entry related
to
>  this, If i remove the Context entry it is expanding.
>
>  Is there any configuration required to expand the WAR by keeping the
> Context entry in the server.xml?
>
>  I am using Tomcat 4.1.18 version.
>
>  Thanks and Regards,
>  Pratt
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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



RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
So unpackWars is just a nice feature provided by Tomcat?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:08 AM
To: Tomcat Users List
Subject: RE: Tomcat WAR expansion


Howdy,

>WAR has to be expanded in order to run.

Absolutely wrong.

In fact, the ability to run an exploded (as opposed to a packed) WAR is
completely up to the container implementation.  The servlet
specification only requires the container to run packed WAR archives.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


RE: Tomcat WAR expansion

2003-02-28 Thread Shapira, Yoav

Howdy,

>WAR has to be expanded in order to run.

Absolutely wrong.

In fact, the ability to run an exploded (as opposed to a packed) WAR is
completely up to the container implementation.  The servlet
specification only requires the container to run packed WAR archives.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat WAR expansion

2003-02-28 Thread Scott, Sean
I can't speak for Pratt, but my WAR runs fine without being expanded.
(4.1.18)

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion


War is different from jar. WAR has to be expanded in order to run.

 
Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion

I am seeing this behavior too, but I am not sure of the benefit of expanding
the WAR. Does it run faster?

-sean

-Original Message-
From: Tomcat [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:55 AM
To: [EMAIL PROTECTED]
Subject: Tomcat WAR expansion



 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


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

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

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



Re: NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

2003-02-28 Thread Georges Roux
Sorry, the problem was: I don't have commons-pool.jar

org/apache/commons/pool/impl/GenericObjectPool

thanks anyway.

Tomcat wrote:

Hi,

Try by extracting the pgjdbc2.jar and place it in the common\classes. It
should locate the classes.
Pratt.



- Original Message -
From: "Georges Roux" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 4:37 PM
Subject: NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool
 

Hi,

When I try to set up a PostgreSQL Datasource for connection Pooling I ve
this Exception:
2003-02-27 02:00:27 StandardContext[/PhotoBaseManager]: Servlet
/PhotoBaseManager threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet
PostgresqlClient threw exception
  at
   

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:96
2)
 

  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
  at
   

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 

  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  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: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(DelegatingMethodAccessorImpl
.java:25)
 

  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool
  at
   

org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDataSo
urceFactory.java:121)
 

  at

   

org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
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 PostgresqlClient.init(PostgresqlClient.java:37)
  at
   

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 

  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
  at
   

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 

  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  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: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(DelegatingMethodAccessorImpl
.java:25)
 

  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
I have commons-dbcp.jar and pgjdbc2.jar in common/lib

in server.xml
  
  
   

factoryorg.apache.commons.dbcp.BasicDataSourc
eFactory
 

   

driverClassNameorg.postgresql.Driver<
/parameter>
 

   

driverNamejdbc:postgresql://192.168.123.3:543
2/BasePhoto
 

usernametomcat4

passwordjava4

maxActive100

   

maxIdle30
 

maxWait1
  
in my web.xml

  
  PostgreSQL Datasource
  jdbc/postgresql
  javax.sql.DataSource
  Container

Someone Have an idea?
Thanks in advanced
Georges

+==+

RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
My Tomcat used to expand my app war automatically. As soon as I added JNDI
stuff (resource) to my context, it stopped expanding my app war and threw
exception. I guess it looks for the resource before it expands my war.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion

I am seeing this behavior too, but I am not sure of the benefit of expanding
the WAR. Does it run faster?

-sean

-Original Message-
From: Tomcat [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:55 AM
To: [EMAIL PROTECTED]
Subject: Tomcat WAR expansion



 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


-
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 4.1.18 - Scalability Issue ?

2003-02-28 Thread Ralph Einfeldt
If all processors are busy, the acceptcount defines the length of 
the queue for requests that are waiting for the next free processor.

> -Original Message-
> From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 6:16 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.1.18 - Scalability Issue ?
> 
> 
> What is the difference between acceptCount and maxPrcessors ?
> 
>

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



  1   2   >