Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Glad it worked.  Maybe I'll summarize the process a little more clearly.

To change the configuration:
1. Change server.xml to your desired config.
2. Stop tomcat
3. Start tomcat
4. At this point tomcat generates a new tomcat-apache.conf
5. Test the new config using "apachectl configtest"
6. Restart apache using "apachectl graceful"
7. When apache restarts, it will reload its config, including the 
tomcat-apache.conf

hope this helps some ppl as well as you (o:

cheesr
dim


On Tue, 19 Jun 2001 17:34, you wrote:
> Dim,
>
> Very nice, this tip solved my problem.
> I've added the line  and now I can run
> root JSP file that are
> mapped to c\winnt.
>
> Actually, I've tried it before, but I was expecting to see the lines in the
> server.xml to be
> reflected in the tomcat-apache.conf file, as it was in other lines I have
> inserted to server.xml
> (for example:
> adding  to
> server.xml
> caused Tomcat to add ( in it's restart ) the following lines to
> tomcat-apache.conf:
>
>   Alias /MyJspDirectory "c:/winnt"
>   
>   Options Indexes FollowSymLinks
>   
>   ApJServMount /MyJspDirectory/servlet /MyJspDirectory
>   
>   AllowOverride None
>   deny from all
>   
>   
>   AllowOverride None
>   deny from all
>   
>   
>   AllowOverride None
>   deny from all
>   
>   
>   AllowOverride None
>   deny from all
>   
> )
>
> And since tomcat-apache.conf was not changed I didn't even try to check
> root JSPs.
>
> Although there is some anomaly here, it is working fine, thank you.
>
> ( Maybe the answer is in the tomcat-apache.conf line
> ApJServMount /servlet /ROOT
>  that force Apache to mount root JSPs to Tomcat root directory, and then
> Tomcat, according to it's
>  server.xml maps root files to c:\winnt )
>
> All the best,
> Eitan
>
> > -Original Message-
> > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 4:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP mapping
> >
> >
> > Eitan,
> >
> > Yep - editing tomcat-apache.conf by hand is a bad idea as it is
> > generated by tomcat every time it starts, which would explain why your
> > changes disappear (o:  I'm assuming that in your server.xml you have a
> > line  or something
> > similar?  If
> > you change the docbase in that to point to "c:/winnt", you should be
> > able to remove the context mapping you've put in atm and find that
> > http://foo/bar.jsp will work (as will
> > http://foo/servlet/myservletmapping).
> >
> > hope this does the trick
> > cheers
> > dim
> >
> > Eitan Ben Noach wrote:
> > > Thanks dim,
> > >
> > > I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> > >
> > > No meter what I've tried to do on the tomact-apache.conf
> >
> > and server.xml
> >
> > > files, Tomcat will not
> > > let me map root JSP files to a directory other then
> > > c:\jakarta-tomcat-3.2.3\webapps\root
> > >
> > > Is there any doc that defines the exact syntax of the ApJServMount
> > > directive?
> > > The user guide gives examples but does not specify the
> >
> > exact definition.
> >
> > > I've tried the following at the tomact-apache.conf:
> > >
> > > ApJServMount /  /MyJspDirectory
> > >
> > > and then in the server.xml define:
> > > 
> > >
> > > When restarting Tomcat the line "ApJServMount /
> >
> > /MyJspDirectory" at the
> >
> > > tomact-apache.conf had been removed!
> > >
> > > Trying the line:
> > > ApJServMount /servlet  /MyJspDirectory
> > >
> > > has the same results
> > >
> > > Eitan
> > >
> > > > -Original Message-
> > > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, June 18, 2001 4:05 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: JSP mapping
> > > >
> > > >
> > > > Eitan,
> > > >
> > > > Are you running standalone or with a web server?  Assuming you're
> > > > running standalone, and that there's not much else you're
> >
> > using tomcat
> >
> > > > for, all you need to do is remove the "/"MyJspDirectory" from the
> > > > context path and it should work fine.
> > > >
> > > > cheesr
> > > > dim
> > > >
> > > > Eitan Ben Noach wrote:
> > > > > HI,
> > > > >
> > > > > I want to map JSPs called by browser at the http server
> >
> > root, like
> >
> > > > > http://victoria.xx.yy/zz.jsp to be handled by JSP file that
> > > >
> > > > is located some
> > > >
> > > > > were else then
> > > > > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
> > > >
> > > > for example by
> > > >
> > > > > c:\winnt\zz.jsp.
> > > > >
> > > > > I've succeeded on configuring Tomcat to handle JSP files at
> > > >
> > > > the context path
> > > >
> > > > > /MyJspDirectory to be handled by JSP files at the c:\winnt
> > > >
> > > > directory by
> > > >
> > > > > changing the server.xml file by defining:
> > > > >   
> > > > >
> > > > > In that way the brow

Re: request and jsp:include

2001-06-18 Thread Antoni Reus

I get the error with flush="true" too.

- Original Message -
From: "Antoni Reus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 8:31 AM
Subject: Re: request and jsp:include


> It was an error while typing the email
>
> when I try this in imprimir.jsp:
>
> " />
>
> And call this
http://localhost:8080/imprimir.jsp?pagina=listado_clientes.jsp
>
> I got:
>
> org.apache.jasper.compiler.ParseException:
> E:\tomcat\webapps\ROOT\imprimir.jsp(9,50) atributo pagina no tiene valor
>
> (atributo pagina no tiene valor -> attribute 'pagina' has no value)
>
> - Original Message -
> From: "Jeff Kilbride" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 19, 2001 12:24 AM
> Subject: Re: request and jsp:include
>
>
> > You're missing an "=" in your jsp:include statement. Try this:
> >
> > " />
> >
> > You have it correct in your second example, which is why that one works.
> >
> > Thanks,
> > --jeff
> >
> > - Original Message -
> > From: "Antoni Reus" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 18, 2001 4:58 AM
> > Subject: request and jsp:include
> >
> >
> > > Hi, first of all I would like to excuse for my poor english.
> > >
> > > I'm using tomcat 3.2.2 in a Win NT 4
> > >
> > > I'm trying to do some kinda printing template, so calling de template
(
> > > imprimir.jsp )
> > > with a parameter for the page to show it whould display it in a
> > > printer friendly way.
> > >
> > > In imprimir.jsp is something like this:
> > >
> > > 
> > > ...
> > > ...
> > > " />
> > > ...
> > > ..
> > > 
> > >
> > > when I call localhost:8080/imprimir.jsp?pagina=listado.jsp
> > > I get a tomcat exception when parsing imprimir.jsp, saying that
> > > pagina has no value.
> > >
> > > But if I write imprimr.jsp  this way:
> > >
> > > 
> > > ...
> > > ...
> > > <%! String pagina = request.getParameter("pagina");
> > > %>
> > > 
> > > ...
> > > ..
> > > 
> > >
> > > it works!!
> > >
> > > Someone could explain this???
> > >
> >
>




RE: JSP mapping

2001-06-18 Thread Eitan Ben Noach

Dim,

Very nice, this tip solved my problem.
I've added the line  and now I can run
root JSP file that are 
mapped to c\winnt.

Actually, I've tried it before, but I was expecting to see the lines in the
server.xml to be
reflected in the tomcat-apache.conf file, as it was in other lines I have
inserted to server.xml
(for example:
adding  to
server.xml
caused Tomcat to add ( in it's restart ) the following lines to
tomcat-apache.conf:

Alias /MyJspDirectory "c:/winnt"

Options Indexes FollowSymLinks

ApJServMount /MyJspDirectory/servlet /MyJspDirectory 

AllowOverride None
deny from all


AllowOverride None
deny from all


AllowOverride None
deny from all


AllowOverride None
deny from all

)

And since tomcat-apache.conf was not changed I didn't even try to check root
JSPs.
 
Although there is some anomaly here, it is working fine, thank you.

( Maybe the answer is in the tomcat-apache.conf line  
ApJServMount /servlet /ROOT
 that force Apache to mount root JSPs to Tomcat root directory, and then
Tomcat, according to it's
 server.xml maps root files to c:\winnt )

All the best,
Eitan


> -Original Message-
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP mapping
> 
> 
> Eitan,
> 
> Yep - editing tomcat-apache.conf by hand is a bad idea as it is
> generated by tomcat every time it starts, which would explain why your
> changes disappear (o:  I'm assuming that in your server.xml you have a
> line  or something 
> similar?  If
> you change the docbase in that to point to "c:/winnt", you should be
> able to remove the context mapping you've put in atm and find that
> http://foo/bar.jsp will work (as will
> http://foo/servlet/myservletmapping).
> 
> hope this does the trick
> cheers
> dim
> 
> Eitan Ben Noach wrote:
> > 
> > Thanks dim,
> > 
> > I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> > 
> > No meter what I've tried to do on the tomact-apache.conf 
> and server.xml
> > files, Tomcat will not
> > let me map root JSP files to a directory other then
> > c:\jakarta-tomcat-3.2.3\webapps\root
> > 
> > Is there any doc that defines the exact syntax of the ApJServMount
> > directive?
> > The user guide gives examples but does not specify the 
> exact definition.
> > 
> > I've tried the following at the tomact-apache.conf:
> > 
> > ApJServMount /  /MyJspDirectory
> > 
> > and then in the server.xml define:
> > 
> > 
> > When restarting Tomcat the line "ApJServMount /  
> /MyJspDirectory" at the
> > tomact-apache.conf had been removed!
> > 
> > Trying the line:
> > ApJServMount /servlet  /MyJspDirectory
> > 
> > has the same results
> > 
> > Eitan
> > 
> > > -Original Message-
> > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, June 18, 2001 4:05 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: JSP mapping
> > >
> > >
> > > Eitan,
> > >
> > > Are you running standalone or with a web server?  Assuming you're
> > > running standalone, and that there's not much else you're 
> using tomcat
> > > for, all you need to do is remove the "/"MyJspDirectory" from the
> > > context path and it should work fine.
> > >
> > > cheesr
> > > dim
> > >
> > > Eitan Ben Noach wrote:
> > > >
> > > > HI,
> > > >
> > > > I want to map JSPs called by browser at the http server 
> root, like
> > > > http://victoria.xx.yy/zz.jsp to be handled by JSP file that
> > > is located some
> > > > were else then
> > > > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
> > > for example by
> > > > c:\winnt\zz.jsp.
> > > >
> > > > I've succeeded on configuring Tomcat to handle JSP files at
> > > the context path
> > > > /MyJspDirectory to be handled by JSP files at the c:\winnt
> > > directory by
> > > > changing the server.xml file by defining:
> > > >   
> > > >
> > > > In that way the browser link
> > > http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > > > handles by  c:\winnt\zz.jsp.
> > > > How can I do the same for the link 
> http://victoria.xx.yy/zz.jsp ?
> > > >
> > > > It seems that it should be solved through the
> > > "ApJServMount" and  "Alias"
> > > > directives as well as the server.xml ( and maybe web.xml ),
> > > > but how?
> > > >
> > > > Thanks
> > > > -
> > > > Eitan Ben-Noach
> > > > Proficiency, Ltd.
> > > >
> > > > Tel: +972.2.548.0287
> > > > Fax: +972.2.586.3871
> > > > email: [EMAIL PROTECTED]
> > > >
> > > > The Intelligence in Engineering Supply Chain Collaboration
> > > > 
> > > >
> > > > > - Original Message -
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 2:13 PM
> > > > > Subject: Re: Vs: Vs: mod_webapp.s

Re: request and jsp:include

2001-06-18 Thread Antoni Reus

It was an error while typing the email

when I try this in imprimir.jsp:

" />

And call this http://localhost:8080/imprimir.jsp?pagina=listado_clientes.jsp

I got:

org.apache.jasper.compiler.ParseException:
E:\tomcat\webapps\ROOT\imprimir.jsp(9,50) atributo pagina no tiene valor

(atributo pagina no tiene valor -> attribute 'pagina' has no value)

- Original Message -
From: "Jeff Kilbride" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 12:24 AM
Subject: Re: request and jsp:include


> You're missing an "=" in your jsp:include statement. Try this:
>
> " />
>
> You have it correct in your second example, which is why that one works.
>
> Thanks,
> --jeff
>
> - Original Message -
> From: "Antoni Reus" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 4:58 AM
> Subject: request and jsp:include
>
>
> > Hi, first of all I would like to excuse for my poor english.
> >
> > I'm using tomcat 3.2.2 in a Win NT 4
> >
> > I'm trying to do some kinda printing template, so calling de template (
> > imprimir.jsp )
> > with a parameter for the page to show it whould display it in a
> > printer friendly way.
> >
> > In imprimir.jsp is something like this:
> >
> > 
> > ...
> > ...
> > " />
> > ...
> > ..
> > 
> >
> > when I call localhost:8080/imprimir.jsp?pagina=listado.jsp
> > I get a tomcat exception when parsing imprimir.jsp, saying that
> > pagina has no value.
> >
> > But if I write imprimr.jsp  this way:
> >
> > 
> > ...
> > ...
> > <%! String pagina = request.getParameter("pagina");
> > %>
> > 
> > ...
> > ..
> > 
> >
> > it works!!
> >
> > Someone could explain this???
> >
>




RE: AJP12 or AJP13?

2001-06-18 Thread Alexander Demidovich

But be careful..

AJP13 doesn't pass any extensions to http
protocol, for example - webdav

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 3:27 AM
> To: [EMAIL PROTECTED]
> Subject: AJP12 or AJP13?
> 
> 
> Hi,
> I am new to tomcat. I am not sure which protocol should be set in 
> my server.xml,
> AJP12 or AJP13?  How to know which protocol is supported in my box? 
> My platform is GNU/Linux Debian(unstable) and
> apache 1.3.19
> tomcat 3.2.2
> libapache-mod-j k3.2.2
> 
> Thanks so much in advance.
> 
> Regards,
> 
> --Wen
> [EMAIL PROTECTED]

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




problem installing catalina

2001-06-18 Thread nevertocollege

hi 
  i have downloaded and configured catalina for winnt
  the examples files sre running perfect
  my jsp are not getting recognized
  i created a directory in webapps and put my jsps in
it
  i get page not found error

  The environment variables,java_home and
catalina_home are set
  and when i run the catalina.bat it just flashes 
  there is an unrecognized command in that file
  so please give me a solution immediately

Regards
Thiaga

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



problem installing catalina

2001-06-18 Thread nevertocollege

hi 
  i have downloaded and configured catalina for winnt
  the examples files sre running perfect
  my jsp are not getting recognized
  i created a directory in webapps and put my jsps in
it
  i get page not found error

  The environment variables,java_home and
catalina_home are set
  and when i run the catalina.bat it just flashes 
  there is an unrecognized command in that file
  so please give me a solution immediately

Regards
Thiaga

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



Problems installing catalina

2001-06-18 Thread Thiagarajan

hi 
  i have downloaded and configured catalina for winnt
  the examples files sre running perfect
  my jsp are not getting recognized
  i created a directory in webapps and put my jsps in it
  i get page not found error

  The environment variables,java_home and catalina_home are set
  and when i run the catalina.bat it just flashes 
  there is an unrecognized command in that file
  so please give me a solution immediately

Regards
Thiaga


Get free email and a permanent address at http://www.netaddress.com/?N=1



Invalid command 'WebAppMount'

2001-06-18 Thread Jari Salmela

Hi,

I get this message when I try to startup apache:
"Invalid command 'WebAppMount', perhaps mis-spelled or defined by a module not 
included in the server configuration"

If I comment out WebAppMount line then Apache starts.
WebAppConnection line works, but WebAppMount line doesn´t, this don´t make any sense 
for me.
Have anyone of you faced this kind of problem? I have RH Linux 7.1, Apache 1.3.19 and 
Tomcat 4b5.

-jari




problems installing tomcat4

2001-06-18 Thread Thiagarajan

Hi
  
  I downloaded Tomcat 4 for winnt and configured it.
  The example jsp's are running perfect.
  But my jsp page is not getting displayed
  I created a directory inside webapps directory
  and put my jsp files there
  i am getting page not found error
  please tell me what to do
  I have set the environment variables too

  The catalina.bat file does not execute.It just flashes off
  
  Please reply

Regards

Thiagu


Get free email and a permanent address at http://www.netaddress.com/?N=1



xtags: Unable to load class

2001-06-18 Thread William C. Robertson



-Original Message-
From: William C. Robertson [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 4:37 PM
To: [EMAIL PROTECTED]
Subject: xtags: Unable to load class


Has anyone else had a problem with taglibs?  I have everything configured
correctly (pretty sure) and I get the following error when using any of the
tomcat taglibs (except for the example tagliv which can with tomcat and
works fine):

Error: 500
Location: /examples/init_onlyImports.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
/usr/local/jakarta-tomcat-3.2.2/webapps/examples/init_onlyImports.jsp(4,0)
Unable to load class org.apache.taglibs.xtags.tags.ParseTag
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
Compiled Code)

I hope the problem is obvious to someone.  Thanks..




Help!! "Tomcat-3.2.2 Out of Memory Error"

2001-06-18 Thread Thomas S

Hello,

Please help me

Config:- Apache-1.3.14 +Tomcat 3.2.2 with mod_jk and Sun JDK 1.3 in RH-Linux 
7.0

I am getting out of memory error in the tomcat tc logs. Tomcat servers 
servlets and jsp with jdbc connections. This problem seems to be periodic 
after 12-13 hrs of tomcat restart.  We are using Dell Webapps server with 1G 
memory installed.

I could notice a free memory of ~200MB when tomcat spits this error.  I have 
gone through the tomcat mailing list, tried setting  -Xms8m -Xmx64m as tomcat 
options, but vain.

After this error, tomcat is not able to serve any sevlets,  and not able to 
controle the jdbc connection, hence the jdbc connection goes out of control , 
results spawning n. no of connections to database.


Is this a caching over flow problem? or JVM problem?


Thanks in Advance

Thomas
Systems Engineer

Error:

---
2001-06-19 08:11:53 - Ctx( /xxx ): Exception in: R( /xxx + /servlet/xxx + 
null) - java.lang.OutOfMemoryError
<>
 
2001-06-19 08:14:20 - Ctx( /xxx ): Exception in: R( /xxx+ /servlet/xxx + 
null) - java.lang.OutOfMemoryError
<>
 
2001-06-19 08:15:55 - Ctx( /xx ): Exception in: R( /xx + /servlets/xxx + 
null) - java.lang.OutOfMemoryError
<>

--



Re: AJP12 or AJP13?

2001-06-18 Thread Monitor


   Hello all,

   Where can I find the information/definition of APJ12/APJ13?
   Many thanks.

   Monitor

__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/



Re: Apache Default Document is .jsp?

2001-06-18 Thread Dmitri Colebatch

I would have thought that if you change the DirectoryIndex instruction (I 
think thats it) in the httpd.conf to use index.jsp first, and you have 
mounted *.jsp to go to tomcat then it should work.  haven't done it myself 
though.

cheers
dim

On Tue, 19 Jun 2001 10:40, you wrote:
> Hello,
>
> I'm getting ready to setup tomcat and Apache on seperate machines.  Before
> getting started on that project, on my development machine, I set the
> default "DocumentRoot" for apache to a different directory (for static
> content) than my webapp (which will eventually sit on a different machine).
>
> I'd like to have my "login.jsp" be my default document, but was only able
> to get it to work by putting a "dummy" login.jsp in the HTML directory...
> Otherwise, Apache would just show a normal index of the directory...
>
> Is this the only way to get this to work?  Or am I missing somthing?  BTW,
> I'm on Tomcat 3.2.1 and Apache 1.3.19...
>
> Thanks for any ideas.
>
> Cheers,
>
> Scott



Re: please help with mod_jk

2001-06-18 Thread Dmitri Colebatch

You'll need to put the same virtual host in the server.xml as in your 
httpd.conf.

cheers
dim

On Tue, 19 Jun 2001 10:24, you wrote:
> Hi,
>
> I'm having the following problem:
>
> I am running Apache (on Linux) , tomcat and mod_jk
>
> I have a virtual host and the entry for this virtual host in httpd.conf is
> the following:
> ---
>--- NameVirtualHost 192.168.100.145
>
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /usr/local/apache/html/test
> DirectoryIndex index.html
> ServerName test1.myserver.com
> CustomLog /var/log/httpd/access_log common
> JkMount /*.jsp ajp12
> JkMount /servlets/* ajp12
> 
> ---
>--
>
> In /usr/local/tomcat/webapps  I have a directory test with WEB-INF
> subdirectory
>
> In server.xml I have the following entry:
> --
> 
>  docBase="/usr/local/tomcat/webapps/test" />
>  docBase="/usr/local/tomcat/webapps/sam/WEB-INF/classes" />
> 
> --
>
> I have put my servlets in /usr/local/tomcat/webapps/sam/WEB-INF/classes 
> and my HTML files are in: /usr/local/apache/html/test
>
> When I start Apache and Tomcat and try to call a servlet from the servlet
> directory (e.g. http://test1.myserver.com/servlets/name_of_the_servlet)  I
> get ERROR 404 - File not found
>
>
> I know I'm doing something wrong - but I really don't know what. Please
> help
>
> Nick


Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 




Re: access log for Tomcat

2001-06-18 Thread Neil Conway

On Mon, Jun 18, 2001 at 07:08:51AM -0400, Randy Layman wrote:
>   There isn't a module for Tomcat that does this that I know of (and
> nothing built into Tomcat, regardless of what Luba says), although it should
> be fairly easy to do - you need to write a RequestInterceptor that just
> logs, not intercepts, the requests.

I think I heard Tomcat 4.0 will ship with a pre-setup access log
facility.

Cheers,

Neil




Re: AJP12 or AJP13?

2001-06-18 Thread Neil Conway

On Tue, Jun 19, 2001 at 10:27:05AM +0900, [EMAIL PROTECTED] wrote:
> I am new to tomcat. I am not sure which protocol should be set in my server.xml,
> AJP12 or AJP13?  How to know which protocol is supported in my box? 

You need AJP12 to shutdown Apache/Tomcat, but AJP13 is the better
protocol for general purpose use. So I'd say enable both of them
(although you may as well cut down on the number of threads the
PoolTcpConnector for AJP12 uses, since you're rarely be using them).

There are docs on how to do this @ the Tomcat site.

Cheers,

Neil




Re: newbie: Installing Servlets

2001-06-18 Thread Daniel Koo

Hi there,

once you're comfortable with the basics I suggest you have a look
at the Jakarta Ant project, and the docs in the ROOT webapp in
the basics of using it: ant reduces the amount of work you have
to do moving/copying files into and out of directories.

dan

On Mon, Jun 18, 2001 at 06:47:48PM +0100, LeRoi wrote:
> Yup!  That worked.  Part of the problem for me is that the book I'm using to
> learn Java was written just before the Java web server was released to
> Jakarta.
> 
> Innyway, you've saved me from lots of work until I need to.  I'm I've been
> reading the documentation on deploying an application.  For a newbie, it's a
> bit overwhelming right now just to test a simple example.
> 
> Cheer mate!
> LeRoi
> 
> -Original Message-
> From: Francis Callo [mailto:[EMAIL PROTECTED]]
> Sent: 18 June 2001 18:06
> To: [EMAIL PROTECTED]
> Subject: Re: newbie: Installing Servlets
> 
> Hi,
> if you have a servlet named "HelloWorld"i believe you
> have to put your classes on
> "webapps/examples/WEB-INF/classes/" and access it with
> URL
> "http://localhost:8080/examples/servlet/HelloWorld";
> Let me know if it works. ;)
> 
> GUD LUK
> Francis
> 
> --- LeRoi <[EMAIL PROTECTED]> wrote:
> > Hello!
> >
> > Now that I have Tomcat up and running, it's time
> > that I starting doing some
> > real work.  Following a simple example in the book
> > I'm using it says that
> > servlets are installed in the subdirectory
> > "webapps\WEB-INF\servlets".  I
> > put my class there (under "examples" directory of
> > Tomcat) and shut down
> > Tomcat and re-started it.  Below is the code for
> > textbook example:
> >
> > // Fig. 19.5:  HTTPGetServlet.java
> > // Creating and sending a page to the client
> > import javax.servlet.*;
> > import javax.servlet.http.*;
> > import java.io.*;
> >
> > public class HTTPGetServlet extends HttpServlet {
> >   public void doGet(HttpServletRequest request,
> >  HttpServletResponse
> > response)
> >   throws ServletException, IOException
> >   {
> >   PrintWriter output;
> >
> >   response.setContentType("text/html");  // content
> > type
> >   output = response.getWriter();  // get writer
> >
> >   // create and send HTML page to client
> >   StringBuffer buf = new StringBuffer();
> >   buf.append("\n");
> >   buf.append("A simple Servlet Example\n");
> >   buf.append("\n");
> >   buf.append("Welcome to Servlets!\n");
> >   buf.append("");
> >   output.println(buf.toString());
> >   output.close();  // close PrintWriter stream
> >   }
> > }
> >
> > 
> > 
> >   
> >   
> >   Servlet HTTP GET Example
> >   
> >   
> >   
> >>
> >
> ACTION="http://localhost:8080/servlets/HTTPGetServlet";
> >   METHOD="GET">
> >   Click the button to have the servlet send
> > an HTML document
> >   
> >   
> >   
> > 
> >
> > Well, it didn't work.  My question is, in order to
> > install this simple
> > servlet does that mean I have to go through all the
> > steps as given in the
> > documentation for "Developing Applications with
> > Tomcat"?
> >
> > Cheers and many thanx in advance,
> > LeRoi
> >
> >
> 
> 
> __
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/

-- 
<[EMAIL PROTECTED]>
Computer Science and Engineering, UNSW



AJP12 or AJP13?

2001-06-18 Thread wen

Hi,
I am new to tomcat. I am not sure which protocol should be set in my server.xml,
AJP12 or AJP13?  How to know which protocol is supported in my box? 
My platform is GNU/Linux Debian(unstable) and
apache 1.3.19
tomcat 3.2.2
libapache-mod-j k3.2.2

Thanks so much in advance.

Regards,

--Wen
[EMAIL PROTECTED]




Re: Apache Default Document is .jsp?

2001-06-18 Thread Jason Koeninger

Dig through the documentation on mod_rewrite and/or 
look at the Redirect command for Apache.  One or both 
of those two should be capable of accomplishing what 
you want.  

Best Regards,

Jason Koeninger
J&J Computer Consulting
http://www.jjcc.com

On Mon, 18 Jun 2001 17:40:02 -0700, Scott Jones wrote:

>Hello,
>
>I'm getting ready to setup tomcat and Apache on seperate machines.  Before
>getting started on that project, on my development machine, I set the
>default "DocumentRoot" for apache to a different directory (for static
>content) than my webapp (which will eventually sit on a different machine).
>
>I'd like to have my "login.jsp" be my default document, but was only able to
>get it to work by putting a "dummy" login.jsp in the HTML directory...
>Otherwise, Apache would just show a normal index of the directory...
>
>Is this the only way to get this to work?  Or am I missing somthing?  BTW,
>I'm on Tomcat 3.2.1 and Apache 1.3.19...
>
>Thanks for any ideas.
>
>Cheers,
>
>Scott
>






Apache Default Document is .jsp?

2001-06-18 Thread Scott Jones

Hello,

I'm getting ready to setup tomcat and Apache on seperate machines.  Before
getting started on that project, on my development machine, I set the
default "DocumentRoot" for apache to a different directory (for static
content) than my webapp (which will eventually sit on a different machine).

I'd like to have my "login.jsp" be my default document, but was only able to
get it to work by putting a "dummy" login.jsp in the HTML directory...
Otherwise, Apache would just show a normal index of the directory...

Is this the only way to get this to work?  Or am I missing somthing?  BTW,
I'm on Tomcat 3.2.1 and Apache 1.3.19...

Thanks for any ideas.

Cheers,

Scott




please help with mod_jk

2001-06-18 Thread Nick Stoianov




Hi,
 
I'm having the following problem:
 
I am running Apache (on Linux) , tomcat and 
mod_jk
 
I have a virtual host and the entry for this 
virtual host in httpd.conf is the following:
--
NameVirtualHost 192.168.100.145
 
ServerAdmin 
mymail@myserver.comDocumentRoot 
/usr/local/apache/html/testDirectoryIndex index.htmlServerName 
test1.myserver.comCustomLog /var/log/httpd/access_log commonJkMount 
/*.jsp ajp12JkMount /servlets/* 
ajp12-
 
In /usr/local/tomcat/webapps  I have a 
directory test with WEB-INF subdirectory
 
In server.xml I have the following 
entry:
--
docBase="/usr/local/tomcat/webapps/test" 
/>docBase="/usr/local/tomcat/webapps/sam/WEB-INF/classes" 
/>--
 
I have put my servlets in 
/usr/local/tomcat/webapps/sam/WEB-INF/classes  and my HTML files are 
in:
/usr/local/apache/html/test
 
When I start Apache and Tomcat and try to call a 
servlet from the servlet directory (e.g. http://test1.myserver.com/servlets/name_of_the_servlet)  
I get ERROR 404 - File not found
 
 
I know I'm doing something wrong - but I really 
don't know what. Please help
 
Nick


Authentication help

2001-06-18 Thread Mike Alba



Hi,
 
  I was wondering if someone could help me 
with authentication.
I have set up my tomcat-user.xml file and in my 
web.xml
in my $TOMCAT_HOME/conf directory I 
have
 
  
    
Protected    
/ROOT    
/ROOT/jsp 
    
GET    
POST  
  
    
test  
    
    
  
    
BASIC  
  
    
Default  
    
    
  
test    
 
 
Am I missing something here or do I need to have it 
in each web.xml file
in each of my application directories. Currently I 
am getting no login
window at all?
 
Thanks in advance for your help!!
 
Mike
 
 


404 error with Apache and mod_jk

2001-06-18 Thread Nick Stoianov



Hi,
 
I'm having the following problem:
 
I am running Apache (on Linux) , tomcat and 
mod_jk
 
I have a virtual host and the entry for this 
virtual host in httpd.conf is the following:
--
NameVirtualHost 192.168.100.145
 
ServerAdmin 
mymail@myserver.comDocumentRoot 
/usr/local/apache/html/testDirectoryIndex index.htmlServerName 
test1.myserver.comCustomLog /var/log/httpd/access_log commonJkMount 
/*.jsp ajp12JkMount /servlets/* 
ajp12-
 
In /usr/local/tomcat/webapps  I have a 
directory test with WEB-INF subdirectory
 
In server.xml I have the following 
entry:
--
docBase="/usr/local/tomcat/webapps/sam" 
/>docBase="/usr/local/tomcat/webapps/sam/WEB-INF/classes" 
/>--
 
I have put my servlets in 
/usr/local/tomcat/webapps/sam/WEB-INF/classes  and my HTML files are 
in:
/usr/local/apache/html/test
 
When I start Apache and Tomcat and try to call a 
servlet from the servlet directory (e.g. http://test1.myserver.com/servlets/name_of_the_servlet)  
I get ERROR 404 - File not found
 
 
I know I'm doing something wrong - but I really 
don't know what. Please help
 
Nick


xtags: Unable to load class

2001-06-18 Thread William C. Robertson

Has anyone else had a problem with taglibs?  I have everything configured
correctly (pretty sure) and I get the following error when using any of the
tomcat taglibs (except for the example tagliv which can with tomcat and
works fine):

Error: 500
Location: /examples/init_onlyImports.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
/usr/local/jakarta-tomcat-3.2.2/webapps/examples/init_onlyImports.jsp(4,0)
Unable to load class org.apache.taglibs.xtags.tags.ParseTag
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
Compiled Code)

I hope the problem is obvious to someone.  Thanks..




Re: request and jsp:include

2001-06-18 Thread Jeff Kilbride

You're missing an "=" in your jsp:include statement. Try this:

" />

You have it correct in your second example, which is why that one works.

Thanks,
--jeff

- Original Message - 
From: "Antoni Reus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 4:58 AM
Subject: request and jsp:include


> Hi, first of all I would like to excuse for my poor english.
> 
> I'm using tomcat 3.2.2 in a Win NT 4
> 
> I'm trying to do some kinda printing template, so calling de template (
> imprimir.jsp )
> with a parameter for the page to show it whould display it in a
> printer friendly way.
> 
> In imprimir.jsp is something like this:
> 
> 
> ...
> ...
> " />
> ...
> ..
> 
> 
> when I call localhost:8080/imprimir.jsp?pagina=listado.jsp
> I get a tomcat exception when parsing imprimir.jsp, saying that
> pagina has no value.
> 
> But if I write imprimr.jsp  this way:
> 
> 
> ...
> ...
> <%! String pagina = request.getParameter("pagina");
> %>
> 
> ...
> ..
> 
> 
> it works!!
> 
> Someone could explain this???
> 




Re: webapp question / problem...

2001-06-18 Thread Dmitri Colebatch

I'm assuming you're using one of the autogenerated apache conf files and that 
you have linked to it (Include) in your httpd.conf file (of course you have - 
otherwise servlets wouldn't work).  The only thing I could think of, although 
I'm guessing this is too obviously ot be the case, is that for some unknown 
reason your tomcat-apache.conf or mod_jk.conf-auto file doesn't mount *.jsp.  
Again - I'm assuming you've checked this, and that you've also bounced apache 
to let it reload the config after restarting tomcat (remember that apache 
will read the file on startup, and if you restart tomcat, the file will 
change, but apache wont reload it)...

anyway, I dont know I've been any use there - but they're all my ideas, sorry

cheers
dim

On Tue, 19 Jun 2001 08:45, you wrote:
> Yes. I have both the standalone and the tomcat-APache service defined in my
> server.xml file. The jsps/servlet work fine on the standalone service. The
> interesting part is that the servlets work (servlets defined in my
> web.xml). But the jsp's dont'.
>
> Any ideas' ?
>
> - Original Message -
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 2:56 PM
> Subject: Re: webapp question / problem...
>
> > Do the jsps work if you go to tomcat directly?
> >
> > Vivek Bhaskaran wrote:
> > > Hey guys.. I have been looking at the archives and trying to figure out
>
> this
>
> > > problem for some time now -  I was wondering of any one of you guys
>
> faced
>
> > > the same problem and what the solution to this is :-
> > >
> > > I have TC4.beta3 and apache 1.3.20. The webapp connector is
>
> installed as
>
> > > apxs and things work fine and the application is mounted. I can access
>
> all
>
> > > the Servlets that I have defined - And the output of the Servlets come
>
> thru
>
> > > to the browser. However when I access jsp pages the output does not
> > > come through. I know that the jsp pages are being compiled  - but after
> > > the
>
> jsp
>
> > > pages are compiled - No html is pumped to the browser. No I am a little
>
> bit
>
> > > baffled and was wondering if any one of you guys experienced the same
> > > problem ???
> > >
> > > Even if you do not have the same problem can anyone give me some
> > > pointers that I can look towards.
> > >
> > > Thanks guys...
> > > -vivek



Jakarta NT Service and -security

2001-06-18 Thread Scot Marburger

I'm trying to use Jakarta NT Service to launch Tomcat at system 
startup. I've written a servlet that runs under JDK 1.3.1 that will 
run fine if Tomcat is launched from a command prompt using the 
startup.bat batch file with the -security option:
startup -security

The servlet reads a configuration file from the directory in which it 
resides, does socket I/O with another machine on the network, and 
also communicates via RMI with a third computer.

The servlet throws security exceptions if Tomcat is launched without 
the -security option.

My challenge is to alter the wrapper.properties file to cause the 
-security option to be invoked when Tomcat is launched as an NT 
service.

I've tried modifying the wrapper.properties file as follows, but no luck:
wrapper.security=-Djava.security.manager 
-Djava.security.policy=$(wraper.tomcat_home)\conf\tomcat.policy

and then

wrapper.cmd_line=$(wrapper.javabin) $(wrapper.security) -classpath ...

My guess is I'm making a syntax error in setting up the command line. 
Or, stepping back a bit further, why is the servlet throwing security 
exceptions without the -security option (maybe because of the 
JKD1.3.1 security manager and file/socket I/O)?

My guess is that this is a fairly straight forward thing to try to 
do, but the docs in the jakarta-tomcat download don't seem to address 
it.

Thanks in advance for any help,

Scot
--
Scot Marburger
Information Systems & Services 8945-1
Sandia National Laboratories/California
Email:[EMAIL PROTECTED]  



Re: webapp question / problem...

2001-06-18 Thread Vivek Bhaskaran

Yes. I have both the standalone and the tomcat-APache service defined in my
server.xml file. The jsps/servlet work fine on the standalone service. The
interesting part is that the servlets work (servlets defined in my web.xml).
But the jsp's dont'.

Any ideas' ?

- Original Message -
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 2:56 PM
Subject: Re: webapp question / problem...


> Do the jsps work if you go to tomcat directly?
>
> Vivek Bhaskaran wrote:
> >
> > Hey guys.. I have been looking at the archives and trying to figure out
this
> > problem for some time now -  I was wondering of any one of you guys
faced
> > the same problem and what the solution to this is :-
> >
> > I have TC4.beta3 and apache 1.3.20. The webapp connector is
installed as
> > apxs and things work fine and the application is mounted. I can access
all
> > the Servlets that I have defined - And the output of the Servlets come
thru
> > to the browser. However when I access jsp pages the output does not come
> > through. I know that the jsp pages are being compiled  - but after the
jsp
> > pages are compiled - No html is pumped to the browser. No I am a little
bit
> > baffled and was wondering if any one of you guys experienced the same
> > problem ???
> >
> > Even if you do not have the same problem can anyone give me some
> > pointers that I can look towards.
> >
> > Thanks guys...
> > -vivek




Re: How can I make tomcat to instantiate a class

2001-06-18 Thread Luba Powell

Thank you !

- Original Message -
From: "Boris Niyazov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 5:53 PM
Subject: Re: How can I make tomcat to instantiate a class


> We use a database connection pool class which is a servlet that we start
on
> tomcat boot using the following in the application's web.xml. You may want
to do
> something like this:
>
> 
> 
>conn_pool
> 
> 
>your_servlet
> 
> 
> poolConf
> path_to_config_file
> 
> 
>  1
> 
> 
>
>
> hth
> *
> * Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
> * Systems Manager  Email: [EMAIL PROTECTED] *
> * Columbia Law School  URL: http://www.law.columbia.edu *
> *
>
>
>
> >This is what I suggest you do:
> >
> >Create Gateway class (login class) that metes out Session
> >objects to callers via getMySession() method.
> >Inside this method I would deserialize the bean object from the file
and
> >added it as an attribute inside the session.
> >
> >It is a common technique for passing Connection and Thread
> >Pool objects within the session.
> >
> >Or simple change scope to session:
> >
> >
> >But I realize that programming with tags is very limited.
> >
> >Hope this helps.
> >R/Luba
> >
> >- Original Message -
> >From: "Debashis Ghosh" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, June 14, 2001 2:29 PM
> >Subject: Re: How can I make tomcat to instantiate a class
> >
> >
> >> Hi Luba,
> >> Thanks for this . But actually my problem was to instantiate a class
when
> >> tomcat boots up...so that i can use that object across sessions.Can u
> >suggest
> >> something towarsd this.
> >> Thanks
> >> debashis
> >> On Thursday 14 June 2001 08:18 am, you wrote:
> >> > JSP will do it for you.  Example:
> >> >
> >> > 
> >> > 
> >> >
> >> > <%@ page language="java" %>
> >> > <%@ page import="javabean.Counter" %>
> >> >
> >> > 
> >> >
> >> > 
> >> >
> >> > <%
> >> >  out.println("Count from scriplet = " + counter.getCount());
> >> > %>
> >> >
> >> > 
> >> >
> >> > Count from jsp:getProperty=
> >> >  
> >> >
> >> > 
> >> > 
> >> >
> >> >
> >> > - Original Message -
> >> > From: "Debashis Ghosh" <[EMAIL PROTECTED]>
> >> > To: <[EMAIL PROTECTED]>
> >> > Sent: Wednesday, June 13, 2001 9:57 PM
> >> > Subject: How can I make tomcat to instantiate a class
> >> >
> >> > > Hi,
> >> > > Can anyone suggest How can I make tomcat to instantiate a class so
> >that i
> >> >
> >> > can
> >> >
> >> > > access it from my
> >> > > jsp or servlet as an application level variable.Basically i want to
> >> > > instatiate one connection pool class so
> >> > > that i can access it from my servlet to get an connection object
out
> >of
> >> >
> >> > it.
> >> >
> >> > > On Wednesday 13 June 2001 06:47 pm, you wrote:
> >> > > > Below is good advice. If the login page does not
> >> > > > come up (btw, what happens does it just take you
> >> > > > direct to the protected resource?) the first place I would
> >> > > > look is the tomcat config files. So basically I would
> >> > > > double-check server.xml and the web-xml for your app.
> >> > > > If you are sure they are correct and you still have a problem
> >> > > > you might want to try posting the relevant sections to the list.
> >> > > >
> >> > > > If you do get JDBCRealm working with tomcat standalone then
> >> > > > to integrate with apache you need to add
> >> > > >
> >> > > > JkMount /examples/jsp/security/login/j_security_check ajp13
> >> > > > (or ajp12 if using mod_jserv) to httpd.conf to tell apache
> >> > > > to delegate the handling of this bit of magic to tomcat.
> >> > > >
> >> > > > andrew
> >> > > >
> >> > > > On Wed, 13 Jun 2001, you wrote:
> >> > > > > > Mark, I appreciate your help.   I have tried
> >> > > > > > to adapt the examples and I believe I have everything
> >> > > > > > in place.  However, apache just wont bring the login
> >> > > > > > form when I try to access a protected resource.
> >> > > > > > Would you have any idea where to look at for this problem?
> >> > > > >
> >> > > > > You might want to check and see if you can get a
> >> > > > > JDBCRealm to work with tomcat standalone(i.e. accessing
> >> > > > > you site as http://localhost:8080/... directly).
> >> > > > > If this doesn't work get this working first and
> >> > > > > that's a good place to start from.  Once you have
> >> > > > > JDBCRealm working correctly then you can deal with
> >> > > > > making sure it works when passed through apache.
> >> > > > >
> >> > > > >
> >> > > > > ---
> >> > > > > Michael Wentzel
> >> > > > > Software Developer
> >> > > > > Software As We Think - http://www.aswethink.com
> >
>




Re: How to avoid messages spamming?

2001-06-18 Thread Boris Niyazov

Configure tomcat to log into a file. In your server.xml specify the log file, 
for ex:



Messages will be redirected to tomcat.log 

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



>
>Hi listmates,
>
>when i use tomcat on linux/slackware, startup/shutdown and error
>messages appear on all consoles, even if I used >/dev/null everywhere in
>tomcat.sh :( how can redirect them to null or to a log file?
>
>Thanks in advance :)
>
>
>
>-- 
>~
>Mario Libraro
>Progettazione & Sviluppo
>~
>Fulltrading S.p.A.
>
>amm.:  50121 Firenze - Viale Matteotti, 9
>sede:  00153 Roma - Via Rosazza, 58
>cell.: +39 338 9753 962
>   +39 347 5205 752
>tel.:  +39 066 573 170
>fax:   +39 066 573 529
>email: [EMAIL PROTECTED]
>   [EMAIL PROTECTED]
>web:   www.fulltrading.it
>~
>
>"Grande disordine sotto il cielo...
>...la situazione è ottima"
>
>Mao Tse-Tung

 




Re: How can I make tomcat to instantiate a class

2001-06-18 Thread Boris Niyazov

We use a database connection pool class which is a servlet that we start on 
tomcat boot using the following in the application's web.xml. You may want to do 
something like this:



   conn_pool


   your_servlet


poolConf
path_to_config_file


 1



 
hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 



>This is what I suggest you do:
>
>Create Gateway class (login class) that metes out Session
>objects to callers via getMySession() method.
>Inside this method I would deserialize the bean object from the file and
>added it as an attribute inside the session.
>
>It is a common technique for passing Connection and Thread
>Pool objects within the session.
>
>Or simple change scope to session:
>
>
>But I realize that programming with tags is very limited.
>
>Hope this helps.
>R/Luba
>
>- Original Message -
>From: "Debashis Ghosh" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, June 14, 2001 2:29 PM
>Subject: Re: How can I make tomcat to instantiate a class
>
>
>> Hi Luba,
>> Thanks for this . But actually my problem was to instantiate a class when
>> tomcat boots up...so that i can use that object across sessions.Can u
>suggest
>> something towarsd this.
>> Thanks
>> debashis
>> On Thursday 14 June 2001 08:18 am, you wrote:
>> > JSP will do it for you.  Example:
>> >
>> > 
>> > 
>> >
>> > <%@ page language="java" %>
>> > <%@ page import="javabean.Counter" %>
>> >
>> > 
>> >
>> > 
>> >
>> > <%
>> >  out.println("Count from scriplet = " + counter.getCount());
>> > %>
>> >
>> > 
>> >
>> > Count from jsp:getProperty=
>> >  
>> >
>> > 
>> > 
>> >
>> >
>> > - Original Message -
>> > From: "Debashis Ghosh" <[EMAIL PROTECTED]>
>> > To: <[EMAIL PROTECTED]>
>> > Sent: Wednesday, June 13, 2001 9:57 PM
>> > Subject: How can I make tomcat to instantiate a class
>> >
>> > > Hi,
>> > > Can anyone suggest How can I make tomcat to instantiate a class so
>that i
>> >
>> > can
>> >
>> > > access it from my
>> > > jsp or servlet as an application level variable.Basically i want to
>> > > instatiate one connection pool class so
>> > > that i can access it from my servlet to get an connection object out
>of
>> >
>> > it.
>> >
>> > > On Wednesday 13 June 2001 06:47 pm, you wrote:
>> > > > Below is good advice. If the login page does not
>> > > > come up (btw, what happens does it just take you
>> > > > direct to the protected resource?) the first place I would
>> > > > look is the tomcat config files. So basically I would
>> > > > double-check server.xml and the web-xml for your app.
>> > > > If you are sure they are correct and you still have a problem
>> > > > you might want to try posting the relevant sections to the list.
>> > > >
>> > > > If you do get JDBCRealm working with tomcat standalone then
>> > > > to integrate with apache you need to add
>> > > >
>> > > > JkMount /examples/jsp/security/login/j_security_check ajp13
>> > > > (or ajp12 if using mod_jserv) to httpd.conf to tell apache
>> > > > to delegate the handling of this bit of magic to tomcat.
>> > > >
>> > > > andrew
>> > > >
>> > > > On Wed, 13 Jun 2001, you wrote:
>> > > > > > Mark, I appreciate your help.   I have tried
>> > > > > > to adapt the examples and I believe I have everything
>> > > > > > in place.  However, apache just wont bring the login
>> > > > > > form when I try to access a protected resource.
>> > > > > > Would you have any idea where to look at for this problem?
>> > > > >
>> > > > > You might want to check and see if you can get a
>> > > > > JDBCRealm to work with tomcat standalone(i.e. accessing
>> > > > > you site as http://localhost:8080/... directly).
>> > > > > If this doesn't work get this working first and
>> > > > > that's a good place to start from.  Once you have
>> > > > > JDBCRealm working correctly then you can deal with
>> > > > > making sure it works when passed through apache.
>> > > > >
>> > > > >
>> > > > > ---
>> > > > > Michael Wentzel
>> > > > > Software Developer
>> > > > > Software As We Think - http://www.aswethink.com
>




Re: webapp question / problem...

2001-06-18 Thread Dmitri Colebatch

Do the jsps work if you go to tomcat directly?

Vivek Bhaskaran wrote:
> 
> Hey guys.. I have been looking at the archives and trying to figure out this
> problem for some time now -  I was wondering of any one of you guys faced
> the same problem and what the solution to this is :-
> 
> I have TC4.beta3 and apache 1.3.20. The webapp connector is installed as
> apxs and things work fine and the application is mounted. I can access all
> the Servlets that I have defined - And the output of the Servlets come thru
> to the browser. However when I access jsp pages the output does not come
> through. I know that the jsp pages are being compiled  - but after the jsp
> pages are compiled - No html is pumped to the browser. No I am a little bit
> baffled and was wondering if any one of you guys experienced the same
> problem ???
> 
> Even if you do not have the same problem can anyone give me some
> pointers that I can look towards.
> 
> Thanks guys...
> -vivek



Re: Finding the XML parser in Tomcat

2001-06-18 Thread Dmitri Colebatch

Eoin Woods wrote:
> To use Xerces in our servlets, we had to add "xerces.jar" to the front of
> the CLASSPATH in the tomcat.sh script.
Alternatively rename it to _xerces.jar and put it in the
$TOMCAT_HOME/lib directory.  That way you wont have to change your
tomcat.sh

cheers
dim

> 
> Eoin.
> -Original Message-
> From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 7:20 AM
> To: Tomcat (E-mail)
> Subject: Finding the XML parser in Tomcat
> 
> In my VisualAge Java development environemnt (jdk 1.2.2) I can say, for
> example,
> 
> Parser parser =
> ParserFactory.makeParser("org.apache.xerces.parsers.SAXParser");
> 
> but when I deploy to a standalone Tomcat environment, I get a class not
> found on the parser name, even tho I put the jar in Tomcat's WEB-INF\lib
> directory.
> 
> If I put the jar into jre\lib\ext, it is found, but having to put it there
> is more imposition on the user and requires extra work beyond normal web app
> deployment (just putting the WAR file in the webapps dir).
> Further, If I put the jar there, then programs that use the no parameter
> form
>Parser parser = ParserFactory.makeParser();
> then start to throw an error:
>   Null Pointer Exception: sax.parser is null
> This can break other applications!
> 
> Why will it not find the parser in the Tomcat WEB-INF\lib directory?
> Is this an XML, jdk, Tomcat issue or what?
> If I add the XML lib to jre\lib\ext, what/how system properties must be set?
> 
> Thanks,
> -- Frank
> 
> Frank Lawlor
> Athens Group, Inc.
> (512) 345-0600 x151
> Athens Group, an employee-owned consulting firm integrating technology
> strategy and software solutions.



Re: What are EJB

2001-06-18 Thread Luba Powell

thank you - no rush.  can wait until next week.
r/luba
- Original Message -
From: "Sam Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 4:54 PM
Subject: Re: What are EJB


> Hmm...I can certainly send you the config files Orcas uses to work with
> Tomcat. I'll try and dig them out (off site at the moment - back next
week).
> One way to communicate with an EJB container without any config problems
at
> all, is to use RMI.You bind an RMI object at your EJB container's machine,
> which will act as a proxy to the EJB (mine is in fact called
> CentralServerProxy). Your servlets then act as an RMI client. All you have
> to do to get this to work is run tomcat with a security manager (so you'll
> need java 2, and you have to uncomment the relevent line out of your
> server.xml), start an RMI security manager before retrieving the reference
> to the object, and tailor your tomcat.policy file to allow access (I ended
> up granting everything full permissions because I couldn't be bothered to
do
> it properly :-) ). The beauty of this approach is that:
> 1.)Tomcat doesn't have to be on the same machine as your EJB container as
> the communication is RMI (wouldn't be that secure though). It could even
> work over the web (RMI is simply a Java specific layer on Corba).
> 2.) You abstract the underlying EJB container. Different containers might
> require different configuration's for tomcat and the container itself to
get
> communication to work.
> I can go into more detail if you want (I have the code here). It doesn't
> take too long to setup, and you can easily protoype the system without an
> EJB container behind your Proxy RMI object - you could equally just use
JDBC
> to connect to MySql or something. Using servlets as an RMI client is
> outlines in the Servlet Programming book, in the odds and ends chapter I
> think (left my copy at the office!).
> Obviously you could use other communication mechanisms to abstract the
> communication - we also use 1024 bit encrypted secure pipes to communicate
> over the web between out central EJB server and client processes.
>
> sam
> - Original Message -
> From: "Luba Powell" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 5:31 PM
> Subject: Re: What are EJB
>
>
> > You think so?  I will give in another chance.
> > Can you send to me configurations for Tomcat/EJB?
> >
> > thank you.
>
>




Re: What are EJB

2001-06-18 Thread Sam Newman

Hmm...I can certainly send you the config files Orcas uses to work with
Tomcat. I'll try and dig them out (off site at the moment - back next week).
One way to communicate with an EJB container without any config problems at
all, is to use RMI.You bind an RMI object at your EJB container's machine,
which will act as a proxy to the EJB (mine is in fact called
CentralServerProxy). Your servlets then act as an RMI client. All you have
to do to get this to work is run tomcat with a security manager (so you'll
need java 2, and you have to uncomment the relevent line out of your
server.xml), start an RMI security manager before retrieving the reference
to the object, and tailor your tomcat.policy file to allow access (I ended
up granting everything full permissions because I couldn't be bothered to do
it properly :-) ). The beauty of this approach is that:
1.)Tomcat doesn't have to be on the same machine as your EJB container as
the communication is RMI (wouldn't be that secure though). It could even
work over the web (RMI is simply a Java specific layer on Corba).
2.) You abstract the underlying EJB container. Different containers might
require different configuration's for tomcat and the container itself to get
communication to work.
I can go into more detail if you want (I have the code here). It doesn't
take too long to setup, and you can easily protoype the system without an
EJB container behind your Proxy RMI object - you could equally just use JDBC
to connect to MySql or something. Using servlets as an RMI client is
outlines in the Servlet Programming book, in the odds and ends chapter I
think (left my copy at the office!).
Obviously you could use other communication mechanisms to abstract the
communication - we also use 1024 bit encrypted secure pipes to communicate
over the web between out central EJB server and client processes.

sam
- Original Message -
From: "Luba Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 5:31 PM
Subject: Re: What are EJB


> You think so?  I will give in another chance.
> Can you send to me configurations for Tomcat/EJB?
>
> thank you.





Unable to load class

2001-06-18 Thread William C. Robertson

I'm trying to use xtag, but my pages won't compile.  (There doesn't seem to
be anyone listening to the taglib mailing list so here I am).  If you are
experienced using tag librearies, please read of my situation to see whether
there is an obvious mistake I am making:

 * web.xml in WEB-INF has its taglib entry.

 * the xtag.tld is in WEB-INF and xtag.jar is in WEB-INF/lib.

The page will load with the <%@ taglib.. directive and no xtags in the body
(no suprise), but when I call a tag (), I get:

org.apache.jasper.compiler.CompileException:
/usr/local/jakarta-tomcat-3.2.2/webapps/examples/init_onlyImports.jsp(4,0)
Unable to load class org.apache.taglibs.xtags.tags.ParseTag.

This is the case for any of the xtag tags. I tried the datetime taglib too
and got the same error.  I get the error regardless of where I put the .jar
file.  I hope the problem is obvious to someone.  Thanks..




Gracefully Restarting Tomcat

2001-06-18 Thread Phillip Kuzma \(Support\)
 smime.p7m


webapp question / problem...

2001-06-18 Thread Vivek Bhaskaran

Hey guys.. I have been looking at the archives and trying to figure out this
problem for some time now -  I was wondering of any one of you guys faced
the same problem and what the solution to this is :-

I have TC4.beta3 and apache 1.3.20. The webapp connector is installed as
apxs and things work fine and the application is mounted. I can access all
the Servlets that I have defined - And the output of the Servlets come thru
to the browser. However when I access jsp pages the output does not come
through. I know that the jsp pages are being compiled  - but after the jsp
pages are compiled - No html is pumped to the browser. No I am a little bit
baffled and was wondering if any one of you guys experienced the same
problem ???

Even if you do not have the same problem can anyone give me some
pointers that I can look towards.

Thanks guys...
-vivek




RE: executing the servlet

2001-06-18 Thread Swart, James (Jim) ** CTR **

wowsers..  You read the docs?  I think as a general observation it would
help the responders to your comments if you were to provide information
containing what you have already done?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: executing the servlet


What do I put in the url to execute a servlet on a localhost machine. I am 
using jakarta as standalone.
Is it:  http://localhost/servletpage ?please help



RE: mail return

2001-06-18 Thread Swart, James (Jim) ** CTR **

if you are on your own mailserver, and listed as root/admin.. you are
probably getting a message from your own system... I used to get things like
that, and I traced them back to a cron job that was running that had no
output but mailed me anyway.  See what TIME it is getting the message and
see if a cron job matches it.  That would be my guess.

-Original Message-
From: Luba Powell [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 2:39 PM
To: [EMAIL PROTECTED]
Subject: mail return


Sometimes I get weird message:

<<
The original message was received at Fri, 15 Jun 2001 13:35:56 -0700 (PDT)
from localhost [127.0.0.1]
>>

Does anyone else receiving these? 



RE: root context

2001-06-18 Thread Filip Hanik

>is there any other way to configure the auto-unpacking of the wars
>(besides the "AutoSetup" entry)?
>it'd be nice to have the ability to specify auto-context adding and
>auto-unpacking of wars seperately..

well, you can write your own AutoSetup interceptor that does this.
 take a look at the doc
http://www.filip.net/tomcatbook/TomcatInterceptors.html
to get a better understanding how Tomcat works.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
>




RE: Session with IE

2001-06-18 Thread Keng Wong

I'm also having a problem with SingleSignOn (SSO) using 2 different webapps
on Tomcat 4. The cookie works with the jsp example within 1 webapp but the
SSO did not work. Log shows "SSO cookie is not present". The only cookie tht
gets set is the JSESSION cookie by the jsp app. Does anyone have any clues ?
Thanks.

-keng wong

> -Original Message-
> From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 11:02 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Session with IE
>
>
> Hola Jose Luis:
>
> I think you are having problems with cookies, is the only way i see it
> failing..
>
> Please access the http://localhost:8080/examples/jsp/security/ URL in
> your installed tomcat, and try to use the Cookies auth to see if works,
> if not, i'm almost sure the problem is on your browser ( check to see if
> it can store cookies )  , if not everything goes fine ( as it should ) ,
> the problem is on your app..so be carefull




Re: root context

2001-06-18 Thread Mike Erickson

thanks, I put the war in a new folder, changed the docbase of the
context and restarted.. it didn't work but I noticed that the war did
not automatically expand.. so I expanded the war manually, restarted and
it worked fine.. 

after reading through some more threads, I found that commenting out the
"AutoSetup" entry in server.xml will prevent the contexts of the wars in
the webapps folder from automatically being added.. so this would
prevent my second instance of the servlet from being created as well...
this solution seems to have the same problem though that it requires the
wars to be unpacked manually..

is there any other way to configure the auto-unpacking of the wars
(besides the "AutoSetup" entry)?
it'd be nice to have the ability to specify auto-context adding and
auto-unpacking of wars seperately..

Mike Erickson



 




RE: Running Tomcat under Win 2K - help!

2001-06-18 Thread Randy Layman


First, in your own best interest, don't post with HTML/RTF email
messages, it limits the number of people who can read your message, which
you don't want.

Second, I think a more telling problem is that you are getting
NoClassDef for the java executable.  Its like the script is trying to
execute Java and pass the path to Java as the class name (which would
explain the conversion of the . to a \).  I would suggest that you carefully
look over your environment variables.  I imagine that you will find that you
have somehow set CLASSPATH to be "%CLASSPATH% %JAVA_HOME%", which would
cause your problem.

Randy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 1:37 PM
To: [EMAIL PROTECTED]
Subject: Running Tomcat under Win 2K - help!


Hey all. I searched the archives and wasn't able to find any real good info
on running Tomcat under Win 2K. I understand that it should be run in
conjunction with Apache, but I can't even get it to run on it's own. I did
have it running when my box was running Win 98, but Win 2K seems to be a
little cranky/pickier about things.
 
Here's my setup:
Tomcat 3.2.2
Win 2K (service pack 1 and all updates)
JBuilder 4 Enterprise
JDK 1.3 (using the JDK that came with JBuilder for now)
Java add-ons: Neon Systems JDBC drivers
 
Environment variables:
*** 
SET PATH=".";C:\APPS\MISC\ULTRAE~1;C:\JBUILDER4\JDK1.3\bin
 
rem - Set Classpath
SET CLASSPATH="."
SET CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3"
SET CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3\bin"
SET CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\classes"
SET CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\lib"
SET CLASSPATH=%CLASSPATH%;"C:\Java\Neon\JDBC\scjd12.jar"
 
rem - Tomcat Java server information
SET TOMCAT_HOME="C:\Java\Tomcat"
SET JAVA_HOME="C:\Java\JBuilder4\jdk1.3"
***
 
Now when I open up a command prompt and start "c:\Java\Tomcat\bin\tomcat
run" I'll get an exception:
Exception in thread "main" java.lang.NoClassDefFoundError:
C:\Java\JBuilder4\jdk1/3\bin\java
 
If you look at the path, somehow the period in the jdk1.3 part of the path
is getting set to a backslash. This is the only obvious problem that I can
find. Has anybody got a work around for this on how to get Tomcat to run? 
 
thanks for the help!



RE: Session with IE

2001-06-18 Thread Ignacio J. Ortega

Hola Jose Luis:

I think you are having problems with cookies, is the only way i see it
failing..

Please access the http://localhost:8080/examples/jsp/security/ URL in
your installed tomcat, and try to use the Cookies auth to see if works,
if not, i'm almost sure the problem is on your browser ( check to see if
it can store cookies )  , if not everything goes fine ( as it should ) ,
the problem is on your app..so be carefull

Saludos ,
Ignacio J. Ortega

PS: Para un poquito de ayuda en Español, mira <
http://es.egroups.com/group/JUGAnd > o <
http://es.egroups.com/group/JUGAnd > quizas hay te podamos hechar una
mano..


> -Mensaje original-
> De: Jose Luis Rodriguez [mailto:[EMAIL PROTECTED]]
> Enviado el: lunes 18 de junio de 2001 14:24
> Para: [EMAIL PROTECTED]
> Asunto: Session with IE
> 
> 
> My developed employment is IIS 4.0, Tomcat 3.2.2 under Windows Nt 4.0.
> 
> I have a problem when I run mi application with IE 5.5, this lose the
> session inmediatly that I run another time. With Netscape Communicator
> that's Ok.
> 
> My application is in:
> webapps/jsp_jsp/inicio.html, procesar_inicio.jsp, inicio.jsp,
> responde.jsp
> webapps/jsp_jsp/Web-inf/classes/jsp_jsp/beans/ManejoDatos.class
> Only it show de session from a jsp to other jsp.
> 
> In SYSTEM32/LogFiles/W3SVC1 I see an error number 200 that say so:
> 12:04:51 197.100.1.12 GET /jsp_jsp/inicio.html 200
> 12:04:53 197.100.1.12 POST /jsp_jsp/procesar_inicio.jsp 200
> 12:04:53 197.100.1.12 GET /jsp_jsp/Inicio.jsp 200
> 12:04:55 197.100.1.12 GET /jsp_jsp/Responde.jsp 200
> 
> isapi.log is empty.
> 
> jasper.log:
> 2001-06-18 02:20:03 - JspEngine --> /procesar_inicio.jsp
> 2001-06-18 02:20:03 -   ServletPath: /procesar_inicio.jsp
> 2001-06-18 02:20:03 -  PathInfo: null
> 2001-06-18 02:20:03 -  RealPath:
> D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\procesar_inicio.jsp
> 2001-06-18 02:20:03 -RequestURI: /jsp_jsp/procesar_inicio.jsp
> 2001-06-18 02:20:03 -   QueryString: null
> 2001-06-18 02:20:03 -Request Params:
> 2001-06-18 02:20:03 -password = fghj
> 2001-06-18 02:20:03 -login = hjfgh
> 2001-06-18 02:20:03 - classpath according to the Servlet Engine es:
> D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
> 2001-06-18 02:20:03 - JspEngine --> /Responde.jsp
> 2001-06-18 02:20:03 -   ServletPath: /Responde.jsp
> 2001-06-18 02:20:03 -  PathInfo: null
> 2001-06-18 02:20:03 -  RealPath:
> D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Responde.jsp
> 2001-06-18 02:20:03 -RequestURI: /jsp_jsp/Responde.jsp
> 2001-06-18 02:20:03 -   QueryString: null
> 2001-06-18 02:20:03 -Request Params:
> 2001-06-18 02:20:03 -password = fghj
> 2001-06-18 02:20:03 -login = hjfgh
> 2001-06-18 02:20:03 - classpath according to the Servlet Engine es:
> D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
> 2001-06-18 02:20:05 - JspEngine --> /Inicio.jsp
> 2001-06-18 02:20:05 -   ServletPath: /Inicio.jsp
> 2001-06-18 02:20:05 -  PathInfo: null
> 2001-06-18 02:20:05 -  RealPath:
> D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Inicio.jsp
> 2001-06-18 02:20:05 -RequestURI: /jsp_jsp/Inicio.jsp
> 2001-06-18 02:20:05 -   QueryString: null
> 2001-06-18 02:20:05 -Request Params:
> 2001-06-18 02:20:05 - classpath according to the Servlet Engine es:
> D:\jakarta-tomcat-3.2.2\webapps\jsp_jsp\Web-inf\classes
> 
> 
> My configuration is:
> 
> uriworkermap.properties:
> 
> # Mount my application context to the ajp12 worker
> /jsp_jsp/*=ajp12
> 
> server.xml:
> 
>   docBase="webapps/jsp_jsp"
>  crossContext="true"
>  debug="0"
>  reloadable="true" >
> 
> 
> 
> workers.properties:
> 
> workers.tomcat_home=D:\jakarta-tomcat-3.2.2
> workers.java_home=D:\jdk1.2.2
> ps=\
> 
> worker.list=ajp12, ajp13
> 
> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
> worker.ajp12.lbfactor=1
> 
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> #worker.ajp13.cachesize
> 
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=ajp12, ajp13
> 
> worker.inprocess.type=jni
> 
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
> )jaxp.jar
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
> )parser.jar
> 
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
> )jasper.jar
> 
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
> )servlet.jar
> 
> worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps
> )webserver.jar
> 
> worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
> worker.inprocess.cmd_line=-config
> worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
> worker.inprocess.cmd_line=-home
> worker.inprocess.cmd_line=$(workers.tomcat_home)

RE: newbie: Installing Servlets

2001-06-18 Thread LeRoi

Yup!  That worked.  Part of the problem for me is that the book I'm using to
learn Java was written just before the Java web server was released to
Jakarta.

Innyway, you've saved me from lots of work until I need to.  I'm I've been
reading the documentation on deploying an application.  For a newbie, it's a
bit overwhelming right now just to test a simple example.

Cheer mate!
LeRoi

-Original Message-
From: Francis Callo [mailto:[EMAIL PROTECTED]]
Sent: 18 June 2001 18:06
To: [EMAIL PROTECTED]
Subject: Re: newbie: Installing Servlets

Hi,
if you have a servlet named "HelloWorld"i believe you
have to put your classes on
"webapps/examples/WEB-INF/classes/" and access it with
URL
"http://localhost:8080/examples/servlet/HelloWorld";
Let me know if it works. ;)

GUD LUK
Francis

--- LeRoi <[EMAIL PROTECTED]> wrote:
> Hello!
>
> Now that I have Tomcat up and running, it's time
> that I starting doing some
> real work.  Following a simple example in the book
> I'm using it says that
> servlets are installed in the subdirectory
> "webapps\WEB-INF\servlets".  I
> put my class there (under "examples" directory of
> Tomcat) and shut down
> Tomcat and re-started it.  Below is the code for
> textbook example:
>
> // Fig. 19.5:  HTTPGetServlet.java
> // Creating and sending a page to the client
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
>
> public class HTTPGetServlet extends HttpServlet {
>   public void doGet(HttpServletRequest request,
>  HttpServletResponse
> response)
>   throws ServletException, IOException
>   {
>   PrintWriter output;
>
>   response.setContentType("text/html");  // content
> type
>   output = response.getWriter();  // get writer
>
>   // create and send HTML page to client
>   StringBuffer buf = new StringBuffer();
>   buf.append("\n");
>   buf.append("A simple Servlet Example\n");
>   buf.append("\n");
>   buf.append("Welcome to Servlets!\n");
>   buf.append("");
>   output.println(buf.toString());
>   output.close();  // close PrintWriter stream
>   }
> }
>
> 
> 
>   
>   
>   Servlet HTTP GET Example
>   
>   
>   
>   
>
ACTION="http://localhost:8080/servlets/HTTPGetServlet";
>   METHOD="GET">
>   Click the button to have the servlet send
> an HTML document
>   
>   
>   
> 
>
> Well, it didn't work.  My question is, in order to
> install this simple
> servlet does that mean I have to go through all the
> steps as given in the
> documentation for "Developing Applications with
> Tomcat"?
>
> Cheers and many thanx in advance,
> LeRoi
>
>


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/




Running Tomcat under Win 2K - help!

2001-06-18 Thread pfriedl



Hey all. I searched the archives and wasn't able to find any 
real good info on running Tomcat under Win 2K. I understand that it should be 
run in conjunction with Apache, but I can't even get it to run on it's own. I 
did have it running when my box was running Win 98, but Win 2K seems to be a 
little cranky/pickier about things.
 
Here's my setup:
Tomcat 3.2.2
Win 2K (service pack 1 and all updates)
JBuilder 4 Enterprise
JDK 1.3 (using the JDK that came with JBuilder for 
now)
Java add-ons: Neon Systems JDBC drivers
 
Environment variables:
*** 
SET 
PATH=".";C:\APPS\MISC\ULTRAE~1;C:\JBUILDER4\JDK1.3\bin
 
rem - Set Classpath
SET CLASSPATH="."SET 
CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\JBuilder4\jdk1.3\bin"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\classes"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\Tomcat\lib"SET 
CLASSPATH=%CLASSPATH%;"C:\Java\Neon\JDBC\scjd12.jar"
 
rem - Tomcat Java server informationSET 
TOMCAT_HOME="C:\Java\Tomcat"SET 
JAVA_HOME="C:\Java\JBuilder4\jdk1.3"
***
 
Now when I open up a command prompt and start 
"c:\Java\Tomcat\bin\tomcat run" I'll get an exception:
Exception in thread "main" java.lang.NoClassDefFoundError: 
C:\Java\JBuilder4\jdk1/3\bin\java
 
If you look at the path, somehow the period in the jdk1.3 part 
of the path is getting set to a backslash. This is the only obvious problem that 
I can find. Has anybody got a work around for this on how to get Tomcat to run? 

 
thanks for the help!


servlet authentication mechanism

2001-06-18 Thread rajaxn r

Hi
  I am configuring a web application to run with
servlet 
authentication mechanism. The webapplication is to be
configured on 
both tomcat 3.2
I created entries in web.xml like the below
/*

Test1


TestServlet
testservetr
test.TestServlet


TestServlet
/test/TestServlet



TestServlet

/test/TestServlet

GET

POST



manager




  FORM 


/loginpage.html 
   
/errorpage.html 




manager




I also included entries in the tomcat-users.xml  like

/

  
  
  
  


The form test.html calls the servlet TestServlet which
is protected 
by a form based servlet authentication which calls
loginpage.html. loginpage.html has a form with action
j_security_check and fields j_username & j_password
But loginpage.html doesnt accept any of the
user/password pairs above 
in the tomcat users.xml file

Can someone also tell me how to do the above so that a
custom login 
page can be called instead of the page with
"j_security_check" 



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: Re[3]: nt-service

2001-06-18 Thread Randy Layman


It probably had to do with the fact that the System account doesn't
have access to the network drive, which would prevent it from finding the
binary to run.  (It is probably a combination of not having the partion
mounted and security permissions).

Randy

> -Original Message-
> From: Andrew Zhdanov [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 1:16 PM
> To: Andrew Zhdanov
> Subject: Re[3]: nt-service
> 
> 
> Hello Andrew,
> 
> Monday, June 18, 2001, 7:46:58 PM, you wrote:
> 
> AZ> Hello Tim,
> 
> AZ> Monday, June 18, 2001, 7:23:34 PM, you wrote:
> 
> TON>> At 08:49 AM 6/18/2001, you wrote:
> >>>Hello tomcat-user,
> >>>
> >>>   Please, could you help me:
> >>>   i've made everything as described in 
> NT-Service-howto.html but i've
> >>>   got such results:
> >>>
> >>>E:\downloads\jakarta\tomcat3.2.2>net start tomcat
> >>>System error 1311 has occurred.
> 
> TON>> What's the status of the Net Logon Service? If its
> TON>> stopped, try starting it.
> 
> AZ> It is started!!! ofcourse, what's else? please, may be smth in
> AZ> wrapper.properties, but i've didn't find anythnif for 
> "Logon". Then
> AZ> i've tried to change in tomcat-service LogOn option to Specific
> AZ> account with correspondent values - faild, also
> 
> 
> TON>> -Tim
> 
> And it's me again - may be will be usefull - it was becase
> jk_nt_service.exe was at network drive when at local - everything
> is ok)) but another interesting is, why nt could not logon to network
> drive if it is already logedon - but it is not a question)))
> Sometimes it is usefull to ask smb, and and at the same time to think
> over it, and understand by myself)))
> 
> -- 
> Best regards,
>  Andrewmailto:[EMAIL PROTECTED]
> 
> 



Re: SPAMMER - Fw: CV{JAVA}

2001-06-18 Thread Alex Fernández

Why? It's nice to get some "worm regards" once in a while...

Un saludo,

Alex.

> Can something be done about this kind of behavior...
>



Re[3]: nt-service

2001-06-18 Thread Andrew Zhdanov

Hello Andrew,

Monday, June 18, 2001, 7:46:58 PM, you wrote:

AZ> Hello Tim,

AZ> Monday, June 18, 2001, 7:23:34 PM, you wrote:

TON>> At 08:49 AM 6/18/2001, you wrote:
>>>Hello tomcat-user,
>>>
>>>   Please, could you help me:
>>>   i've made everything as described in NT-Service-howto.html but i've
>>>   got such results:
>>>
>>>E:\downloads\jakarta\tomcat3.2.2>net start tomcat
>>>System error 1311 has occurred.

TON>> What's the status of the Net Logon Service? If its
TON>> stopped, try starting it.

AZ> It is started!!! ofcourse, what's else? please, may be smth in
AZ> wrapper.properties, but i've didn't find anythnif for "Logon". Then
AZ> i've tried to change in tomcat-service LogOn option to Specific
AZ> account with correspondent values - faild, also


TON>> -Tim

And it's me again - may be will be usefull - it was becase
jk_nt_service.exe was at network drive when at local - everything
is ok)) but another interesting is, why nt could not logon to network
drive if it is already logedon - but it is not a question)))
Sometimes it is usefull to ask smb, and and at the same time to think
over it, and understand by myself)))

-- 
Best regards,
 Andrewmailto:[EMAIL PROTECTED]





Re: newbie: Installing Servlets

2001-06-18 Thread Francis Callo

Hi,
if you have a servlet named "HelloWorld"i believe you
have to put your classes on
"webapps/examples/WEB-INF/classes/" and access it with
URL
"http://localhost:8080/examples/servlet/HelloWorld";
Let me know if it works. ;)

GUD LUK
Francis

--- LeRoi <[EMAIL PROTECTED]> wrote:
> Hello!
> 
> Now that I have Tomcat up and running, it's time
> that I starting doing some
> real work.  Following a simple example in the book
> I'm using it says that
> servlets are installed in the subdirectory
> "webapps\WEB-INF\servlets".  I
> put my class there (under "examples" directory of
> Tomcat) and shut down
> Tomcat and re-started it.  Below is the code for
> textbook example:
> 
> // Fig. 19.5:  HTTPGetServlet.java
> // Creating and sending a page to the client
> import javax.servlet.*;
> import javax.servlet.http.*;
> import java.io.*;
> 
> public class HTTPGetServlet extends HttpServlet {
>   public void doGet(HttpServletRequest request,
>  HttpServletResponse
> response)
>   throws ServletException, IOException
>   {
>   PrintWriter output;
> 
>   response.setContentType("text/html");  // content
> type
>   output = response.getWriter();  // get writer
> 
>   // create and send HTML page to client
>   StringBuffer buf = new StringBuffer();
>   buf.append("\n");
>   buf.append("A simple Servlet Example\n");
>   buf.append("\n");
>   buf.append("Welcome to Servlets!\n");
>   buf.append("");
>   output.println(buf.toString());
>   output.close();  // close PrintWriter stream
>   }
> }
> 
> 
> 
>   
>   
>   Servlet HTTP GET Example
>   
>   
>   
>  
>
ACTION="http://localhost:8080/servlets/HTTPGetServlet";
>   METHOD="GET">
>   Click the button to have the servlet send
> an HTML document
>   
>   
>   
> 
> 
> Well, it didn't work.  My question is, in order to
> install this simple
> servlet does that mean I have to go through all the
> steps as given in the
> documentation for "Developing Applications with
> Tomcat"?
> 
> Cheers and many thanx in advance,
> LeRoi
> 
> 


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



Restarting Tomcat.

2001-06-18 Thread Phillip Kuzma \(Support\)
 smime.p7m


RE: SSL handshake failure URGENT

2001-06-18 Thread Phillip Kuzma \(Support\)
 smime.p7m


Re[2]: nt-service

2001-06-18 Thread Andrew Zhdanov

Hello Tim,

Monday, June 18, 2001, 7:23:34 PM, you wrote:

TON> At 08:49 AM 6/18/2001, you wrote:
>>Hello tomcat-user,
>>
>>   Please, could you help me:
>>   i've made everything as described in NT-Service-howto.html but i've
>>   got such results:
>>
>>E:\downloads\jakarta\tomcat3.2.2>net start tomcat
>>System error 1311 has occurred.

TON> What's the status of the Net Logon Service? If its
TON> stopped, try starting it.

It is started!!! ofcourse, what's else? please, may be smth in
wrapper.properties, but i've didn't find anythnif for "Logon". Then
i've tried to change in tomcat-service LogOn option to Specific
account with correspondent values - faild, also


TON> -Tim



-- 
Best regards,
 Andrewmailto:[EMAIL PROTECTED]





RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.


The rpm installation of apache (1.3.20) failed cause it claims openssl >= 0.9.6 (that 
I installed) and cause there are a lot of conflicts with previous version of apache 
(1.3.12)
I am not a big afficionados of Linux fine configuration and tuning but I am compelled 
to work on this plateform. Do you have a magic (rpm or not) package that I just may 
click on to auto configurate and update the components I already have ?


> PS: Did you have a Linux boxes, I've packaged easy to use
> RPM which will let you install apache-mod_ssl, tomcat and
> mod_jk in less than 30 mins

> http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
> http://www.falsehope.com/ftp-site/home/gomez/tomcat/
>
> Redhat 7.0/7.1 users allready have a Apache using mod_ssl
>
> -
> Henri Gomez ___[_]
> EMAIL : [EMAIL PROTECTED](. .)
> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
>
>
>
> >-Original Message-
> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, June 18, 2001 11:41 AM
> >To: [EMAIL PROTECTED]
> >Subject: RE: SSL handshake failure URGENT
> >
> >
> >I would try to do that following a document you wrote about
> >SSL via apache, but I was a little lost in your indication
> >(for example some Jk... directives are not recognized,
> >[JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
> >
> >> Could you try the server cert on apache/SSL or Apache-mod_ssl
> >> and see if it works ?
> >>
> >>
> >>
> >> -
> >> Henri Gomez ___[_]
> >> EMAIL : [EMAIL PROTECTED](. .)
> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >>
> >>
> >>
> >> >-Original Message-
> >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> >> >Sent: Monday, June 18, 2001 10:05 AM
> >> >To: [EMAIL PROTECTED]
> >> >Subject: RE: SSL handshake failure URGENT
> >> >
> >> >
> >> >
> >> >Of sure, there it is.
> >> >
> >> >
> >> >> Could you retry with openssl s_client in full debug mode ?
> >> >>
> >> >> -
> >> >> Henri Gomez ___[_]
> >> >> EMAIL : [EMAIL PROTECTED](. .)
> >> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> >> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >> >>
> >> >>
> >> >>
> >> >> >-Original Message-
> >> >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> >> >> >Sent: Friday, June 15, 2001 12:21 PM
> >> >> >To: [EMAIL PROTECTED]
> >> >> >Subject: RE: SSL handshake failure URGENT
> >> >> >
> >> >> >
> >> >> >So, every seems to be well configured, but I always get this
> >> >> >handshake error, what could be the problem in that case ?
> >> >> >
> >> >> ># openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
> >> >> >-key cl_key.pem -state
> >> >> >Enter PEM pass phrase:
> >> >> >CONNECTED(0003)
> >> >> >SSL_connect:before/connect initialization
> >> >> >SSL_connect:SSLv2/v3 write client hello A
> >> >> >SSL3 alert read:fatal:handshake failure
> >> >> >SSL_connect:error in SSLv2/v3 read server hello A
> >> >> >
> >> >> >
> >> >> >> >ok now it's done, but same error
> >> >> >> >HandShake Failure
> >> >> >> >
> >> >> >> >I made the new server request, the new server certification,
> >> >> >> >the new server x509 conversion, and the new server
> >into tomcat
> >> >> >> >keystore importation
> >> >> >> >
> >> >> >> >(I send you the new server certificate)
> >> >> >> >
> >> >> >> >must we also replace to CN of the client ? (I didn't do it)
> >> >> >> >maybe the CN of the CA ?
> >> >> >> >
> >> >> >> CN of you client could be what you want
> >> >> >>
> >> >> >> >
> >> >> >> >> The problem is in the CN of the server cert :
> >> >> >> >>
> >> >> >> >> replace CN=server by CN=thehostname !!!
> >> >> >> >>
> >> >> >> >> Certificate:
> >> >> >> >> Data:
> >> >> >> >> Version: 3 (0x2)
> >> >> >> >> Serial Number: 2 (0x2)
> >> >> >> >> Signature Algorithm: md5WithRSAEncryption
> >> >> >> >> Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
> >> >> >> >OU=UNIT, CN=ca
> >> >> >> >> Validity
> >> >> >> >> Not Before: Jun 14 08:47:55 2001 GMT
> >> >> >> >> Not After : Jun 14 08:47:55 2002 GMT
> >> >> >> >> Subject: C=FR, ST=France, O=THE_ORG,
> >OU=UNIT, CN=server
> >> >> >> >> Subject Public Key Info:
> >> >> >> >> Public Key Algorithm: rsaEncryption
> >> >> >> >> RSA Public Key: (1024 bit)
> >> >> >> >> Modulus (1024 bit):
> >> >> >> >>
> >> >00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
> >> >> >> >>
> >> >f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
> >> >> >> >>
> >> >12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
> >> >> >> >>
> >> >a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
> >> >> >> >>
> >> >a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
> >> >> >> >>
> >> >85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
> >> >> >> >>
> >> >6c:a6:ad

NT-service

2001-06-18 Thread Andrew Zhdanov

Hello Tomcat,

  Could anyone help me, whith NT-Service, please. The results i've got
  while making nt-service:
E:\downloads\jakarta\tomcat3.2.2>jk_nt_service.exe -I tomcat 
D:\tomcat\conf\wrapper.properties
Asked (and given) winsock 1.1
The service named tomcat was created. Now adding registry entries
Registry values were added
If you have already updated wrapper.properties you may start the tomcat service
by executing "net start tomcat" from the command prompt

E:\downloads\jakarta\tomcat3.2.2>net start tomcat
System error 1311 has occurred.

There are currently no logon servers available to service the logon request.

what does it mean and what should i do??? And did smb use nt_service
successfully??

Thanks a lot))

-- 
Best regards,
 Andrew





AW: SSL handshake failure URGENT

2001-06-18 Thread Thomas Bezdicek

hi,
try to start apache with httpd startssl instead

regards, tom

> -Ursprüngliche Nachricht-
> Von: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 18. Juni 2001 18:22
> An: [EMAIL PROTECTED]
> Betreff: RE: SSL handshake failure URGENT
>
>
> ok, thanks Henri and Tim
>
> I use Linux RedHat 7, but it seems that SSL options was not taken
> in account with default launching of httpd (with httpd start) so
> I made first some modifications of httpd conf (specially putting
> on comment the  tags to make it taken in account,
> and made some mistakes maybe cause httpd will not launch now :-)
>
> I (true)hope so that the packages I download from your site are
> the good ones (tomcat-3.2.2-1.noarch.rpm and
> apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm) even if I was surprised
> that apache-mod_ssl-1.3.19.2.8.3-1.i386.rpm was bigger (1.6M)
> than the next version apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm (879k)
>
> I will give you wedensday the next episod of my
> SSL/Linux/tomcat/apache adventure.
>
> > PS: Did you have a Linux boxes, I've packaged easy to use
> > RPM which will let you install apache-mod_ssl, tomcat and
> > mod_jk in less than 30 mins
> >
> > http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
> > http://www.falsehope.com/ftp-site/home/gomez/tomcat/
> >
> > Redhat 7.0/7.1 users allready have a Apache using mod_ssl
> >
> > -
> > Henri Gomez ___[_]
> > EMAIL : [EMAIL PROTECTED](. .)
> > PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> > PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >
> >
> >
> > >-Original Message-
> > >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> > >Sent: Monday, June 18, 2001 11:41 AM
> > >To: [EMAIL PROTECTED]
> > >Subject: RE: SSL handshake failure URGENT
> > >
> > >
> > >I would try to do that following a document you wrote about
> > >SSL via apache, but I was a little lost in your indication
> > >(for example some Jk... directives are not recognized,
> > >[JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
> > >
> > >> Could you try the server cert on apache/SSL or Apache-mod_ssl
> > >> and see if it works ?
> > >>
> > >>
> > >>
> > >> -
> > >> Henri Gomez ___[_]
> > >> EMAIL : [EMAIL PROTECTED](. .)
> > >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> > >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> > >>
> > >>
> > >>
> > >> >-Original Message-
> > >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> > >> >Sent: Monday, June 18, 2001 10:05 AM
> > >> >To: [EMAIL PROTECTED]
> > >> >Subject: RE: SSL handshake failure URGENT
> > >> >
> > >> >
> > >> >
> > >> >Of sure, there it is.
> > >> >
> > >> >
> > >> >> Could you retry with openssl s_client in full debug mode ?
> > >> >>
> > >> >> -
> > >> >> Henri Gomez ___[_]
> > >> >> EMAIL : [EMAIL PROTECTED](. .)
> > >> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> > >> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> > >> >>
> > >> >>
> > >> >>
> > >> >> >-Original Message-
> > >> >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> > >> >> >Sent: Friday, June 15, 2001 12:21 PM
> > >> >> >To: [EMAIL PROTECTED]
> > >> >> >Subject: RE: SSL handshake failure URGENT
> > >> >> >
> > >> >> >
> > >> >> >So, every seems to be well configured, but I always get this
> > >> >> >handshake error, what could be the problem in that case ?
> > >> >> >
> > >> >> ># openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
> > >> >> >-key cl_key.pem -state
> > >> >> >Enter PEM pass phrase:
> > >> >> >CONNECTED(0003)
> > >> >> >SSL_connect:before/connect initialization
> > >> >> >SSL_connect:SSLv2/v3 write client hello A
> > >> >> >SSL3 alert read:fatal:handshake failure
> > >> >> >SSL_connect:error in SSLv2/v3 read server hello A
> > >> >> >
> > >> >> >
> > >> >> >> >ok now it's done, but same error
> > >> >> >> >HandShake Failure
> > >> >> >> >
> > >> >> >> >I made the new server request, the new server certification,
> > >> >> >> >the new server x509 conversion, and the new server
> > >into tomcat
> > >> >> >> >keystore importation
> > >> >> >> >
> > >> >> >> >(I send you the new server certificate)
> > >> >> >> >
> > >> >> >> >must we also replace to CN of the client ? (I didn't do it)
> > >> >> >> >maybe the CN of the CA ?
> > >> >> >> >
> > >> >> >> CN of you client could be what you want
> > >> >> >>
> > >> >> >> >
> > >> >> >> >> The problem is in the CN of the server cert :
> > >> >> >> >>
> > >> >> >> >> replace CN=server by CN=thehostname !!!
> > >> >> >> >>
> > >> >> >> >> Certificate:
> > >> >> >> >> Data:
> > >> >> >> >> Version: 3 (0x2)
> > >> >> >> >> Serial Number: 2 (0x2)
> > >> >> >> >> Signature Algorithm: md5WithRSAEncryption
> > >> >> >> >> Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
> > >> >> >> >OU=UNIT, CN=ca
> > >> >> >> >> Validity
> > >> >> >> >>

Re: What are EJB

2001-06-18 Thread Luba Powell

You think so?  I will give in another chance.
Can you send to me configurations for Tomcat/EJB?

thank you.
- Original Message -
From: "Sam Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 12:14 PM
Subject: Re: What are EJB


> Problem is all the containers we've used up till now have had real
problems
> with bean managed persistance...as a result we had to avoid it. They seem
> better now, but its a bit late for us. The single biggest headache I've
had
> developing/designing EJB's is trying to make the OO centric java (e.g.
> encapsulation of data and process) work with the non-OO databases without
> sacrificing too many of the advantages of the two (databases speed, Javas
> flexibility).
> I'm looking forward to the new message beans which are in the new EJB 2.0
> spec. Would of made my current project a whole lot easier... Sending
> messages/setting state of beans via JMS could be very cool - if it works
:-)
>
> sam
>
> - Original Message -
> From: "Luba Powell" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 4:38 PM
> Subject: Re: What are EJB
>
>
> > << but a real mess of a database>>
> >
> > You are right here.  Because of it I stopped using Entity beans all
> > together...
> >
> >
> > - Original Message -
> > From: "Sam Newman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 18, 2001 9:26 AM
> > Subject: Re: What are EJB
> >
> >
> > > The only real similarity between EJB's and normal JavaBeans is that
they
> > are
> > > both based on component models. EJB's provide a java representation of
> > some
> > > data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB
> class
> > > is tied to one table. XML is used to tie an EJB and its data to a
> > database.
> > > There is a bit of a problem with this approach, in that a typical OO
> > design
> > > for such a system can result in a good OO system on the surface, but a
> > real
> > > mess of a database
> > >
> > > EJB's need a compliant EJB server, and a database. There are a few
free
> > > versions around - try JBoss. They work fine with Servlets/Tomcat given
> > that
> > > they are also part of the j2ee. I personally use Cape Connect
(previosly
> > > Orcas) with tomcat without too many problems (there are a couple of
> class
> > > loader issues in some circumstances however). Orcas actually bundles
> > Tomcat
> > > with it, and they pre-configure it to work with their ejb container.
> > >
> > > sam
> > > - Original Message -
> > > From: "Alexandre Bouchard" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Sunday, June 17, 2001 6:07 PM
> > > Subject: What are EJB
> > >
> > >
> > > > I've got a simple question: What are Enterprise Java Beans. I mean,
> > what's
> > > > the difference between EJB and the beans I develop with JDK and run
> with
> > > > Tomcat?
> > > >
> > > > Thx
> > > >
> > >
> >
>




Re: nt-service

2001-06-18 Thread Tim O'Neil

At 08:49 AM 6/18/2001, you wrote:
>Hello tomcat-user,
>
>   Please, could you help me:
>   i've made everything as described in NT-Service-howto.html but i've
>   got such results:
>
>E:\downloads\jakarta\tomcat3.2.2>net start tomcat
>System error 1311 has occurred.

What's the status of the Net Logon Service? If its
stopped, try starting it.




-Tim




RE: SSL handshake failure URGENT

2001-06-18 Thread Jean-Etienne G.

ok, thanks Henri and Tim

I use Linux RedHat 7, but it seems that SSL options was not taken in account with 
default launching of httpd (with httpd start) so I made first some modifications of 
httpd conf (specially putting on comment the  tags to make it taken in 
account, and made some mistakes maybe cause httpd will not launch now :-)

I (true)hope so that the packages I download from your site are the good ones 
(tomcat-3.2.2-1.noarch.rpm and apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm) even if I was 
surprised that apache-mod_ssl-1.3.19.2.8.3-1.i386.rpm was bigger (1.6M) than the next 
version apache-mod_ssl-1.3.20.2.8.4-2.i386.rpm (879k)

I will give you wedensday the next episod of my SSL/Linux/tomcat/apache adventure.

> PS: Did you have a Linux boxes, I've packaged easy to use
> RPM which will let you install apache-mod_ssl, tomcat and
> mod_jk in less than 30 mins
>
> http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
> http://www.falsehope.com/ftp-site/home/gomez/tomcat/
>
> Redhat 7.0/7.1 users allready have a Apache using mod_ssl
>
> -
> Henri Gomez ___[_]
> EMAIL : [EMAIL PROTECTED](. .)
> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
>
>
>
> >-Original Message-
> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, June 18, 2001 11:41 AM
> >To: [EMAIL PROTECTED]
> >Subject: RE: SSL handshake failure URGENT
> >
> >
> >I would try to do that following a document you wrote about
> >SSL via apache, but I was a little lost in your indication
> >(for example some Jk... directives are not recognized,
> >[JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
> >
> >> Could you try the server cert on apache/SSL or Apache-mod_ssl
> >> and see if it works ?
> >>
> >>
> >>
> >> -
> >> Henri Gomez ___[_]
> >> EMAIL : [EMAIL PROTECTED](. .)
> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >>
> >>
> >>
> >> >-Original Message-
> >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> >> >Sent: Monday, June 18, 2001 10:05 AM
> >> >To: [EMAIL PROTECTED]
> >> >Subject: RE: SSL handshake failure URGENT
> >> >
> >> >
> >> >
> >> >Of sure, there it is.
> >> >
> >> >
> >> >> Could you retry with openssl s_client in full debug mode ?
> >> >>
> >> >> -
> >> >> Henri Gomez ___[_]
> >> >> EMAIL : [EMAIL PROTECTED](. .)
> >> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
> >> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6
> >> >>
> >> >>
> >> >>
> >> >> >-Original Message-
> >> >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
> >> >> >Sent: Friday, June 15, 2001 12:21 PM
> >> >> >To: [EMAIL PROTECTED]
> >> >> >Subject: RE: SSL handshake failure URGENT
> >> >> >
> >> >> >
> >> >> >So, every seems to be well configured, but I always get this
> >> >> >handshake error, what could be the problem in that case ?
> >> >> >
> >> >> ># openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem
> >> >> >-key cl_key.pem -state
> >> >> >Enter PEM pass phrase:
> >> >> >CONNECTED(0003)
> >> >> >SSL_connect:before/connect initialization
> >> >> >SSL_connect:SSLv2/v3 write client hello A
> >> >> >SSL3 alert read:fatal:handshake failure
> >> >> >SSL_connect:error in SSLv2/v3 read server hello A
> >> >> >
> >> >> >
> >> >> >> >ok now it's done, but same error
> >> >> >> >HandShake Failure
> >> >> >> >
> >> >> >> >I made the new server request, the new server certification,
> >> >> >> >the new server x509 conversion, and the new server
> >into tomcat
> >> >> >> >keystore importation
> >> >> >> >
> >> >> >> >(I send you the new server certificate)
> >> >> >> >
> >> >> >> >must we also replace to CN of the client ? (I didn't do it)
> >> >> >> >maybe the CN of the CA ?
> >> >> >> >
> >> >> >> CN of you client could be what you want
> >> >> >>
> >> >> >> >
> >> >> >> >> The problem is in the CN of the server cert :
> >> >> >> >>
> >> >> >> >> replace CN=server by CN=thehostname !!!
> >> >> >> >>
> >> >> >> >> Certificate:
> >> >> >> >> Data:
> >> >> >> >> Version: 3 (0x2)
> >> >> >> >> Serial Number: 2 (0x2)
> >> >> >> >> Signature Algorithm: md5WithRSAEncryption
> >> >> >> >> Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG,
> >> >> >> >OU=UNIT, CN=ca
> >> >> >> >> Validity
> >> >> >> >> Not Before: Jun 14 08:47:55 2001 GMT
> >> >> >> >> Not After : Jun 14 08:47:55 2002 GMT
> >> >> >> >> Subject: C=FR, ST=France, O=THE_ORG,
> >OU=UNIT, CN=server
> >> >> >> >> Subject Public Key Info:
> >> >> >> >> Public Key Algorithm: rsaEncryption
> >> >> >> >> RSA Public Key: (1024 bit)
> >> >> >> >> Modulus (1024 bit):
> >> >> >> >>
> >> >00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
> >> >> >> >>
> >> >f1:64:49:37:e0:83:48:ac:5c:18:51:

RE: Finding the XML parser in Tomcat

2001-06-18 Thread Eoin Woods

I think this has come up before.

Tomcat has an XML parser built in (it reads XML files for configuration).

To use Xerces in our servlets, we had to add "xerces.jar" to the front of
the CLASSPATH in the tomcat.sh script.

Eoin.
-Original Message-
From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 7:20 AM
To: Tomcat (E-mail)
Subject: Finding the XML parser in Tomcat 


In my VisualAge Java development environemnt (jdk 1.2.2) I can say, for
example,

Parser parser =
ParserFactory.makeParser("org.apache.xerces.parsers.SAXParser");

but when I deploy to a standalone Tomcat environment, I get a class not
found on the parser name, even tho I put the jar in Tomcat's WEB-INF\lib
directory.

If I put the jar into jre\lib\ext, it is found, but having to put it there
is more imposition on the user and requires extra work beyond normal web app
deployment (just putting the WAR file in the webapps dir).
Further, If I put the jar there, then programs that use the no parameter
form
   Parser parser = ParserFactory.makeParser();
then start to throw an error:
  Null Pointer Exception: sax.parser is null
This can break other applications!

Why will it not find the parser in the Tomcat WEB-INF\lib directory?
Is this an XML, jdk, Tomcat issue or what?
If I add the XML lib to jre\lib\ext, what/how system properties must be set?

Thanks,
-- Frank


Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.





Re: What are EJB

2001-06-18 Thread Sam Newman

Problem is all the containers we've used up till now have had real problems
with bean managed persistance...as a result we had to avoid it. They seem
better now, but its a bit late for us. The single biggest headache I've had
developing/designing EJB's is trying to make the OO centric java (e.g.
encapsulation of data and process) work with the non-OO databases without
sacrificing too many of the advantages of the two (databases speed, Javas
flexibility).
I'm looking forward to the new message beans which are in the new EJB 2.0
spec. Would of made my current project a whole lot easier... Sending
messages/setting state of beans via JMS could be very cool - if it works :-)

sam

- Original Message -
From: "Luba Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 4:38 PM
Subject: Re: What are EJB


> << but a real mess of a database>>
>
> You are right here.  Because of it I stopped using Entity beans all
> together...
>
>
> - Original Message -
> From: "Sam Newman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 9:26 AM
> Subject: Re: What are EJB
>
>
> > The only real similarity between EJB's and normal JavaBeans is that they
> are
> > both based on component models. EJB's provide a java representation of
> some
> > data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB
class
> > is tied to one table. XML is used to tie an EJB and its data to a
> database.
> > There is a bit of a problem with this approach, in that a typical OO
> design
> > for such a system can result in a good OO system on the surface, but a
> real
> > mess of a database
> >
> > EJB's need a compliant EJB server, and a database. There are a few free
> > versions around - try JBoss. They work fine with Servlets/Tomcat given
> that
> > they are also part of the j2ee. I personally use Cape Connect (previosly
> > Orcas) with tomcat without too many problems (there are a couple of
class
> > loader issues in some circumstances however). Orcas actually bundles
> Tomcat
> > with it, and they pre-configure it to work with their ejb container.
> >
> > sam
> > - Original Message -
> > From: "Alexandre Bouchard" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, June 17, 2001 6:07 PM
> > Subject: What are EJB
> >
> >
> > > I've got a simple question: What are Enterprise Java Beans. I mean,
> what's
> > > the difference between EJB and the beans I develop with JDK and run
with
> > > Tomcat?
> > >
> > > Thx
> > >
> >
>




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell

<< you need to add the shutdown-hooks permission>>
Yes, this too.  You can either update policy file directly or via
GUI jdk1.3\bin\policytool
 you need to add the
shutdown-hooks permission.




- Original Message -
From: "David Wall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 12:08 PM
Subject: Re: Problem with Postgresql JDBC driver


> Rather a postgresq question.  I don't know what the error was, but you
want
> to make sure the postgresql.jar file is in your webapp/my_app/WEB-INF/lib
> directory.  And if you are using a security manager, you need to add the
> shutdown-hooks permission.
>
> David
>
>




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread David Wall

Rather a postgresq question.  I don't know what the error was, but you want
to make sure the postgresql.jar file is in your webapp/my_app/WEB-INF/lib
directory.  And if you are using a security manager, you need to add the
shutdown-hooks permission.

David





nt-service

2001-06-18 Thread Andrew V. Zhdanov

Hello tomcat-user,

  Please, could you help me:
  i've made everything as described in NT-Service-howto.html but i've
  got such results:
  
E:\downloads\jakarta\tomcat3.2.2>net start tomcat
System error 1311 has occurred.

There are currently no logon servers available to service the logon request.
^^^ maybe i 
shuld contact some one else?

-- 
Best regards,
 Andrew





RE: SSL handshake failure URGENT

2001-06-18 Thread GOMEZ Henri

If you use Apache-mod_ssl (apache with mod_ssl), you didn't
need to do anything in mod_jk.conf since it's default config
is for Apache + mod_ssl.

PS: Did you have a Linux boxes, I've packaged easy to use 
RPM which will let you install apache-mod_ssl, tomcat and 
mod_jk in less than 30 mins

http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/
http://www.falsehope.com/ftp-site/home/gomez/tomcat/

Redhat 7.0/7.1 users allready have a Apache using mod_ssl

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .) 
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-Original Message-
>From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
>Sent: Monday, June 18, 2001 11:41 AM
>To: [EMAIL PROTECTED]
>Subject: RE: SSL handshake failure URGENT
>
>
>I would try to do that following a document you wrote about 
>SSL via apache, but I was a little lost in your indication
>(for example some Jk... directives are not recognized, 
>[JkExtractSSL, ...] ) and I don't have a mod_jk.so module to load)
>
>> Could you try the server cert on apache/SSL or Apache-mod_ssl
>> and see if it works ?
>> 
>> 
>> 
>> -
>> Henri Gomez ___[_]
>> EMAIL : [EMAIL PROTECTED](. .) 
>> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>> 
>> 
>> 
>> >-Original Message-
>> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, June 18, 2001 10:05 AM
>> >To: [EMAIL PROTECTED]
>> >Subject: RE: SSL handshake failure URGENT
>> >
>> >
>> >
>> >Of sure, there it is.
>> >
>> >
>> >> Could you retry with openssl s_client in full debug mode ?
>> >> 
>> >> -
>> >> Henri Gomez ___[_]
>> >> EMAIL : [EMAIL PROTECTED](. .) 
>> >> PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
>> >> PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 
>> >> 
>> >> 
>> >> 
>> >> >-Original Message-
>> >> >From: Jean-Etienne G. [mailto:[EMAIL PROTECTED]]
>> >> >Sent: Friday, June 15, 2001 12:21 PM
>> >> >To: [EMAIL PROTECTED]
>> >> >Subject: RE: SSL handshake failure URGENT
>> >> >
>> >> >
>> >> >So, every seems to be well configured, but I always get this
>> >> >handshake error, what could be the problem in that case ?
>> >> >
>> >> ># openssl s_client -connect 127.0.0.1:8443 -cert cl_cert.pem 
>> >> >-key cl_key.pem -state 
>> >> >Enter PEM pass phrase:
>> >> >CONNECTED(0003)
>> >> >SSL_connect:before/connect initialization
>> >> >SSL_connect:SSLv2/v3 write client hello A
>> >> >SSL3 alert read:fatal:handshake failure
>> >> >SSL_connect:error in SSLv2/v3 read server hello A
>> >> >
>> >> >
>> >> >> >ok now it's done, but same error
>> >> >> >HandShake Failure
>> >> >> >
>> >> >> >I made the new server request, the new server certification, 
>> >> >> >the new server x509 conversion, and the new server 
>into tomcat 
>> >> >> >keystore importation
>> >> >> >
>> >> >> >(I send you the new server certificate)
>> >> >> >
>> >> >> >must we also replace to CN of the client ? (I didn't do it)
>> >> >> >maybe the CN of the CA ?
>> >> >> >
>> >> >> CN of you client could be what you want
>> >> >> 
>> >> >> >
>> >> >> >> The problem is in the CN of the server cert :
>> >> >> >> 
>> >> >> >> replace CN=server by CN=thehostname !!!
>> >> >> >> 
>> >> >> >> Certificate:
>> >> >> >> Data:
>> >> >> >> Version: 3 (0x2)
>> >> >> >> Serial Number: 2 (0x2)
>> >> >> >> Signature Algorithm: md5WithRSAEncryption
>> >> >> >> Issuer: C=FR, ST=France, L=Genvilliers, O=THE_ORG, 
>> >> >> >OU=UNIT, CN=ca
>> >> >> >> Validity
>> >> >> >> Not Before: Jun 14 08:47:55 2001 GMT
>> >> >> >> Not After : Jun 14 08:47:55 2002 GMT
>> >> >> >> Subject: C=FR, ST=France, O=THE_ORG, 
>OU=UNIT, CN=server
>> >> >> >> Subject Public Key Info:
>> >> >> >> Public Key Algorithm: rsaEncryption
>> >> >> >> RSA Public Key: (1024 bit)
>> >> >> >> Modulus (1024 bit):
>> >> >> >> 
>> >00:f2:bc:0c:53:78:d3:08:85:b3:e1:70:7c:a8:d1:
>> >> >> >> 
>> >f1:64:49:37:e0:83:48:ac:5c:18:51:93:fd:31:49:
>> >> >> >> 
>> >12:24:3a:57:13:e0:3a:97:25:ee:29:f5:16:f2:da:
>> >> >> >> 
>> >a7:fc:84:89:f6:50:53:2c:09:2a:a9:f5:91:b8:33:
>> >> >> >> 
>> >a5:ec:2f:16:07:b8:bf:60:01:06:aa:cc:be:fd:a9:
>> >> >> >> 
>> >85:04:22:25:2b:16:4d:49:b4:11:bc:0a:68:1c:95:
>> >> >> >> 
>> >6c:a6:ad:8c:f4:ef:30:11:41:6e:cf:3b:ca:a6:6a:
>> >> >> >> 
>> >e9:1b:bf:41:28:b0:5e:c8:03:8c:cb:22:ce:80:38:
>> >> >> >> 3b:c3:9f:ac:e3:5e:77:cb:7b
>> >> >> >> Exponent: 65537 (0x10001)
>> >> >> >> X509v3 extensions:
>> >> >> >>   

Re: What are EJB

2001-06-18 Thread Luba Powell

<< but a real mess of a database>>

You are right here.  Because of it I stopped using Entity beans all
together...


- Original Message -
From: "Sam Newman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 9:26 AM
Subject: Re: What are EJB


> The only real similarity between EJB's and normal JavaBeans is that they
are
> both based on component models. EJB's provide a java representation of
some
> data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB class
> is tied to one table. XML is used to tie an EJB and its data to a
database.
> There is a bit of a problem with this approach, in that a typical OO
design
> for such a system can result in a good OO system on the surface, but a
real
> mess of a database
>
> EJB's need a compliant EJB server, and a database. There are a few free
> versions around - try JBoss. They work fine with Servlets/Tomcat given
that
> they are also part of the j2ee. I personally use Cape Connect (previosly
> Orcas) with tomcat without too many problems (there are a couple of class
> loader issues in some circumstances however). Orcas actually bundles
Tomcat
> with it, and they pre-configure it to work with their ejb container.
>
> sam
> - Original Message -
> From: "Alexandre Bouchard" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 17, 2001 6:07 PM
> Subject: What are EJB
>
>
> > I've got a simple question: What are Enterprise Java Beans. I mean,
what's
> > the difference between EJB and the beans I develop with JDK and run with
> > Tomcat?
> >
> > Thx
> >
>




RE: SSL handshake failure URGENT

2001-06-18 Thread Tim O'Neil

At 02:41 AM 6/18/2001, you wrote:
>I would try to do that following a document you wrote about SSL via 
>apache, but I was a little lost in your indication
>(for example some Jk... directives are not recognized, [JkExtractSSL, ...] 
>) and I don't have a mod_jk.so module to load)

I know that a real (or non-test) cert works
with Apache/tomcat. There's documentation on
the Apache site for using mod_ssl, and also
search the net for more info. I don't have
the urls handy, but I was able to mine the net
for urls to some good info on using ssl with
Apache, Tomcat, and others. Also, I was never
able to get Tomcat standalone to use a real cert.




Re: installing tomkat under linux: please help!

2001-06-18 Thread Luba Powell

What are error messages? Can look in the log?

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 11:08 AM
Subject: installing tomkat under linux: please help!


> I have RedHat 7.1
> I download file jakarta-tomcat-3.2.1.tar which create the directory:
> /home/rino/tomkat/jakarta-tomcat-3.2.1
> I do:
> export JAVA_HOME=...
> export TOMCAT_HOME="/home/rino/tomkat/jakarta-tomcat-3.2.1"
> export CATALINA_HOME="/home/rino/tomkat/jakarta-tomcat-3.2.1"
>
> cd /home/rino/tomkat/jakarta-tomcat-3.2.1/bin
>
> then:
>
> [root@localhost bin]# ./startup.sh
> Using classpath:
>
/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/ant.jar:/home/rino/tomkat/jakarta
-tomcat-3.2.1/lib/jasper.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jaxp
.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/rino/tomkat
/jakarta-tomcat-3.2.1/lib/servlet.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1
/lib/test:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/java
/jdk1.3.0_02/lib/tools.jar
> [root@localhost bin]#
>
> But didn't works!
> Where I fall?
> What I have to do?
> Thank you in advance, Rino.
>




installing tomkat under linux: please help!

2001-06-18 Thread rino . mail

I have RedHat 7.1
I download file jakarta-tomcat-3.2.1.tar which create the directory: 
/home/rino/tomkat/jakarta-tomcat-3.2.1
I do:
export JAVA_HOME=...
export TOMCAT_HOME="/home/rino/tomkat/jakarta-tomcat-3.2.1"
export CATALINA_HOME="/home/rino/tomkat/jakarta-tomcat-3.2.1"

cd /home/rino/tomkat/jakarta-tomcat-3.2.1/bin

then:

[root@localhost bin]# ./startup.sh 
Using classpath: 
/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/ant.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jasper.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/jaxp.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/servlet.jar:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/test:/home/rino/tomkat/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/java/jdk1.3.0_02/lib/tools.jar
[root@localhost bin]# 

But didn't works!
Where I fall?
What I have to do?
Thank you in advance, Rino.




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell

Ryszad:
   Please let me know if this works for you:

Driver driver =
(Driver) Class.forName("driver URL").newInstance();

This part of statement that you already had in your program:
(Driver) Class.forName("driver URL")

will load .class file into memory.

It is .newInstance() that will actually create and instance of Driver class.

Also make sure your URL is correct.






- Original Message -
From: "Luba Powell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 10:46 AM
Subject: Re: Problem with Postgresql JDBC driver


> Try this:
>
> Driver driver =
> (Driver) Class.forName("driver URL").newInstance();
> if (driver == null)
> {
> System.out.println("no driver found");
> }
>
>
> - Original Message -
> From: "Ryszard Lach" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 6:40 AM
> Subject: Problem with Postgresql JDBC driver
>
>
> > Hi!
> >
> > I have serious problem with JDBC driver for postgresql. I'm using tomcat
> 3.2.2
> > with jdk1.3.1 (I've tried 1.2.2 too). I've tried to put jdbc7.0-1.2.jar
> into:
> >
> > $TOMCAT_HOME/lib
> > $TOMCAT_HOME/webapp/my_app/WEB-INF/lib
> >
> > and unpacked jdbc7.0-1.2.jar into
> >
> > $TOMCAT_HOME/classes
> > $TOMCAT_HOME/webapp/my_app/WEB-INF/classes
> >
> > and I still receive an error (included at bottom of the message) while
> calling
> > Class.forName("postgresql.Driver") in a .jsp file located in
> .../webapp/my_app
> > directory.
> >
> >
> > I'm sure that classpath containing jdbc.*.jar is used by tomcat's
startup
> > script, but it seems I'm missing something...
> >
> > What could be wrong ? Do I have to configure workers or webapps in any
> special
> > way?
> >
> > Any help would be very appreciated.
> >
> > This is the error I receive:
> >
> > Error: 500
> >
> > Location: /test_pgsql.jsp
> >
> > Internal Servlet Error:
> >
> > javax.servlet.ServletException: No suitable driver
> > at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java, Compiled Code)
> > at
>
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
> 005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
> > at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
> Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled
> > Code)
> > at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va, Compiled Code)
> > at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled Code)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> > at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> Compiled Code)
> > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
> Code)
> > at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
> Code)
> > at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> Compiled Code)
> > at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled
> Code)
> > at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Ajp12ConnectionHandler.java, Compiled Code)
> > at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> Compiled Code)
> > at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> Compiled Code)
> > at java.lang.Thread.run(Thread.java, Compiled Code)
> >
> > Root cause:
> >
> > java.sql.SQLException: No suitable driver
> > at java.sql.DriverManager.getConnection(DriverManager.java,
> Compiled Code)
> > at java.sql.DriverManager.getConnection(DriverManager.java,
> Compiled Code)
> > at
>
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
> 005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
> > at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
> Compiled Code)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> > at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va, Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> Compiled Code)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> > at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> Compiled Code)
> > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
> Code)
> > at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
> Code)
> > at
> org.apac

Re: IllegalAccessError when run from Tomcat

2001-06-18 Thread sappling

After further investigation this seems to be something specific to the
4.0b5 version of Tomcat.  It does not occur in 3.3 milestone 3 or 3.2.  I
think this may indicate a  classloader problem.  I will investigate further
and post something to the bug database.  Thanks for your suggestions.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 11:20 AM
Subject: IllegalAccessError when run from Tomcat


> When running a servlet from within Tomcat I get the following exception:
>
> java.lang.IllegalAccessError: try to access field
org.w3c.tidy.ParserImpl._parseHead from class
org.w3c.tidy.ParserImpl$ParseHTML
>  at org.w3c.tidy.ParserImpl$ParseHTML.parse(ParserImpl.java)
>  at org.w3c.tidy.ParserImpl.parseDocument(ParserImpl.java)
>  at org.w3c.tidy.Tidy.parse(Tidy.java)
>  at org.w3c.tidy.Tidy.parseDOM(Tidy.java)
> ...
>
> A method in the inner class $ParseHTML is trying to access a private field
> _parseHead in the containing class, but that is legal as far as I know.
> When I move the body of this servlet to a stand alone application it runs
> fine - no exceptions.  Is there some strange JVM security manager here
that
> is different from running as a real application?  Anyone have an idea what
> is going on?
>




Re: Help on: "ThreadPool: pool exhausted with 100 threads"

2001-06-18 Thread Luba Powell

Ooh!  Shai is getting similar error.  Although in his case he runs out of
memory.
But both of your errors occur in their ThreadPool program.
I wonder if threads are not being returned to the pool, in which case you
would need to report it as a bug.
Json, how many connectors did you configure for this context?


- Original Message -
From: "Jayson Yu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 10:49 AM
Subject: Help on: "ThreadPool: pool exhausted with 100 threads"


> hi, I was wondering if anybody can provide  me some leads on how to deal
> with this
> problem... I have a servlet that queries a database and churns out (in
> response) a
> data populated html, however after some time and several hits on the
> servlet, I get
> the Tomcat error that "ThreadPool: pool exhausted with 100 threads".
>
> I'm not so sure if this is a tomcat or servlet problem, would
> certainly appreciate if anybody can provide some help. tia!
>
> json
>




Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Ryszard Lach

On Mon, Jun 18, 2001 at 10:05:16AM -0400, Jeff Waugh wrote:
> Sorry, I hadn't read your error message closely enough.
> 
> 'No suitable driver' usually means a problem with the database
> URL to which you are trying to connect.
> 
> That should look something like:
> 
> db = DriverManager.getConnection("jdbc:postgresql://hostname/dbname",
> "username", "password");
> 
> Try playing with that.

Well, now it works. It seems you were right. I can not connect using
DriverManager, but the following code works pretty fine:

Driver drv = new org.postgresql.Driver();
Properties p = new Properties();
p.put("user","my_username");
p.put("password","my_password");
Connection con = drv.connect("jdbc:postgresql://localhost:5432/testowa",p);

Thanks all of you for your help.

Best regards,

R.

-- 
** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocław **
 tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/



Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Luba Powell

Try this:

Driver driver =
(Driver) Class.forName("driver URL").newInstance();
if (driver == null)
{
System.out.println("no driver found");
}


- Original Message -
From: "Ryszard Lach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 6:40 AM
Subject: Problem with Postgresql JDBC driver


> Hi!
>
> I have serious problem with JDBC driver for postgresql. I'm using tomcat
3.2.2
> with jdk1.3.1 (I've tried 1.2.2 too). I've tried to put jdbc7.0-1.2.jar
into:
>
> $TOMCAT_HOME/lib
> $TOMCAT_HOME/webapp/my_app/WEB-INF/lib
>
> and unpacked jdbc7.0-1.2.jar into
>
> $TOMCAT_HOME/classes
> $TOMCAT_HOME/webapp/my_app/WEB-INF/classes
>
> and I still receive an error (included at bottom of the message) while
calling
> Class.forName("postgresql.Driver") in a .jsp file located in
.../webapp/my_app
> directory.
>
>
> I'm sure that classpath containing jdbc.*.jar is used by tomcat's startup
> script, but it seems I'm missing something...
>
> What could be wrong ? Do I have to configure workers or webapps in any
special
> way?
>
> Any help would be very appreciated.
>
> This is the error I receive:
>
> Error: 500
>
> Location: /test_pgsql.jsp
>
> Internal Servlet Error:
>
> javax.servlet.ServletException: No suitable driver
> at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java, Compiled Code)
> at
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
> Code)
> at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
> at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
> at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
> at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
> at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
> at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
> at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
> at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
>
> Root cause:
>
> java.sql.SQLException: No suitable driver
> at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
> at java.sql.DriverManager.getConnection(DriverManager.java,
Compiled Code)
> at
_0002ftest_0005fpgsql_0002ejsptest_0005fpgsql_jsp_1._jspService(_0002ftest_0
005fpgsql_0002ejsptest_0005fpgsql_jsp_1.java, Compiled Code)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java,
Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
> at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
> at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
> at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
> at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
> at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
> at
org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled
Code)
> at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
> at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
> at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
>
>
> --
> ** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocław **
>  tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/




Help on: "ThreadPool: pool exhausted with 100 threads"

2001-06-18 Thread Jayson Yu

hi, I was wondering if anybody can provide  me some leads on how to deal 
with this
problem... I have a servlet that queries a database and churns out (in 
response) a
data populated html, however after some time and several hits on the 
servlet, I get
the Tomcat error that "ThreadPool: pool exhausted with 100 threads".

I'm not so sure if this is a tomcat or servlet problem, would
certainly appreciate if anybody can provide some help. tia!

json




Re: socket write and Connection reset by peer

2001-06-18 Thread Luba Powell

Network programmers!
I also frequently get code=10053 error although not w/Tomcat.
I learned to work around it, but would be nice to know the origins
of this code.

thanks,
luba

- Original Message - 
From: "Venkatesh T" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 6:40 AM
Subject: socket write and Connection reset by peer


> 
> Hi
> 
>   I am getting frequently these errors.   I am using some flash and gif
> files in my jsp page.  For each and every image i am using i am getting
> the following errors. But the pages displaying properly.
> 
>  Ctx(  ): IOException in: R(  + /ssp/jsp/righttop.swf + null) socket
> write error (code=10053)
> 
>  Ctx(  ): IOException in: R(  + /ssp/jsp/true.gif + null) Connection
> reset by peer: socket write error
> 
> 
> Can any one know about this errors.  Tell me how to remove these errors
> from the console.
> 
> regards
> venkatesh




Re: Tomcat-Apache configuration

2001-06-18 Thread Sam Newman

Read the mod_jk howto included with the documentation. Its fairly
straightforward. If you have problems after following the docs, post to the
list - loads of us have done this so there will be plenty of people around
who can help.

sam
- Original Message -
From: "Shicheng TIAN(CMS)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 2:33 PM
Subject: Tomcat-Apache configuration


>
> Hello there,
> We have installed Tomcat 4.0 on our PC running Win2000;
> Tomcat works fine itself.
>
> We have the following two queries and would like to get advice from the
list:
>
> 1. How to configure Tomcat so that it can work together
> with the Web server running at the same PC, which is Apache 1.3,
> i.e. Apache would pass servlet calls to Tomcat which would process the
calls
> and then return the result bact to Apache?
>
> 2. Tomcat is installed on the PC at: C:\tomcat and its doc root at:
> C:\tomcat\webapps\ROOT;
> we wonder how to configure a remote mapping so that we can put some test
> files/code on
> another drive of the same PC, e.g. on the D drive at: D:\Test
>
> Thanks,
>
> Shicheng
>




Re: OutOfMem

2001-06-18 Thread Luba Powell

2 possibilities here.

you ran out of memory in which case decrease number of connectors
in conf/server.xml for the context

Or there is a buglet in their ThreadPool program.  I doubt this, primarily
because there haven't been many postings on this subject

r/luba

- Original Message -
From: "Shai Deljo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 7:59 AM
Subject: OutOfMem


> Does anyone know the reason for this msg :
>
> 2001-06-18 07:47:31.729029 2001-06-18 07:47:31 - ThreadPool: Caught
> exception executing org.apache.tomcat.service.TcpWorkerThread@47
> 8a2d, terminating thread - java.lang.OutOfMemoryError: unable to create
new
> native thread
> 2001-06-18 07:47:31.729051  at java.lang.Thread.start(Native Method)
> 2001-06-18 07:47:31.729057  at
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.(ThreadPool.java:465
> )
> 2001-06-18 07:47:31.729067  at
> org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java:360)
> 2001-06-18 07:47:31.729076  at
> org.apache.tomcat.util.ThreadPool.runIt(ThreadPool.java:206)
> 2001-06-18 07:47:31.729084  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:405)
> 2001-06-18 07:47:31.729093  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> 2001-06-18 07:47:31.729103  at java.lang.Thread.run(Thread.java:484)
>
> I get it before i reach the Thread limit of the tomcat or the machine,
> Does it have something to do with number of sessions in the apache ?
>
> 10x
> Shai
>




RE: access log for Tomcat

2001-06-18 Thread Randy Layman


You would have to write the Java code yourself to implement this new
RequestInterceptor.  You could hard code all of the parameters for your
logging into the code, or you could make them parameters from the server.xml
file (which would be better), but this is a "you do it all yourself" kind of
effort.

Randy

> -Original Message-
> From: David Rosenstark [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 9:27 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: access log for Tomcat
> 
> 
> I assume that this means that I have to do it all myself in 
> terms of setting
> up different options to log?
> 
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 1:09 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: access log for Tomcat
> > 
> > 
> > 
> > There isn't a module for Tomcat that does this that I 
> > know of (and
> > nothing built into Tomcat, regardless of what Luba says), 
> > although it should
> > be fairly easy to do - you need to write a RequestInterceptor 
> > that just
> > logs, not intercepts, the requests.
> > 
> > Randy
> > 
> > -Original Message-
> > From: David Rosenstark [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, June 17, 2001 7:45 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: access log for Tomcat
> > 
> > 
> > Is there some way to configure Tomcat to have a log of all 
> > web requests
> > coming in similar to access_log in Apache?
> >  
> > TIA,
> > David
> > 
> 



Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Yep - editing tomcat-apache.conf by hand is a bad idea as it is
generated by tomcat every time it starts, which would explain why your
changes disappear (o:  I'm assuming that in your server.xml you have a
line  or something similar?  If
you change the docbase in that to point to "c:/winnt", you should be
able to remove the context mapping you've put in atm and find that
http://foo/bar.jsp will work (as will
http://foo/servlet/myservletmapping).

hope this does the trick
cheers
dim

Eitan Ben Noach wrote:
> 
> Thanks dim,
> 
> I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.
> 
> No meter what I've tried to do on the tomact-apache.conf and server.xml
> files, Tomcat will not
> let me map root JSP files to a directory other then
> c:\jakarta-tomcat-3.2.3\webapps\root
> 
> Is there any doc that defines the exact syntax of the ApJServMount
> directive?
> The user guide gives examples but does not specify the exact definition.
> 
> I've tried the following at the tomact-apache.conf:
> 
> ApJServMount /  /MyJspDirectory
> 
> and then in the server.xml define:
> 
> 
> When restarting Tomcat the line "ApJServMount /  /MyJspDirectory" at the
> tomact-apache.conf had been removed!
> 
> Trying the line:
> ApJServMount /servlet  /MyJspDirectory
> 
> has the same results
> 
> Eitan
> 
> > -Original Message-
> > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 18, 2001 4:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSP mapping
> >
> >
> > Eitan,
> >
> > Are you running standalone or with a web server?  Assuming you're
> > running standalone, and that there's not much else you're using tomcat
> > for, all you need to do is remove the "/"MyJspDirectory" from the
> > context path and it should work fine.
> >
> > cheesr
> > dim
> >
> > Eitan Ben Noach wrote:
> > >
> > > HI,
> > >
> > > I want to map JSPs called by browser at the http server root, like
> > > http://victoria.xx.yy/zz.jsp to be handled by JSP file that
> > is located some
> > > were else then
> > > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp,
> > for example by
> > > c:\winnt\zz.jsp.
> > >
> > > I've succeeded on configuring Tomcat to handle JSP files at
> > the context path
> > > /MyJspDirectory to be handled by JSP files at the c:\winnt
> > directory by
> > > changing the server.xml file by defining:
> > >   
> > >
> > > In that way the browser link
> > http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > > handles by  c:\winnt\zz.jsp.
> > > How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
> > >
> > > It seems that it should be solved through the
> > "ApJServMount" and  "Alias"
> > > directives as well as the server.xml ( and maybe web.xml ),
> > > but how?
> > >
> > > Thanks
> > > -
> > > Eitan Ben-Noach
> > > Proficiency, Ltd.
> > >
> > > Tel: +972.2.548.0287
> > > Fax: +972.2.586.3871
> > > email: [EMAIL PROTECTED]
> > >
> > > The Intelligence in Engineering Supply Chain Collaboration
> > > 
> > >
> > > > - Original Message -
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, June 18, 2001 2:13 PM
> > > > Subject: Re: Vs: Vs: mod_webapp.so needed
> > > >
> > > >
> > > > > Give this a whirl:
> > > > >
> > > > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > > > >
> > > > > The next part is actually configuring it?!
> > > > >
> > > > > James
> > > > > >
> > > > > > why notI can´t lose anything...:)thanks! and yes,
> > > > we are talking about RH.
> > > > > > Will you give me address where I can download it?
> > > > > >
> > > > > > -jari
> > > > > >
> > > > > > - Original Message -
> > > > > > From: <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > > > Subject: Re: Vs: mod_webapp.so needed
> > > > > >
> > > > > >
> > > > > > > I've got it compiled for Redhat 6.2, although that's a
> > > > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > > > 2.4. If you want to give it a try I'll upload it to my server?
> > > > > > >
> > > > > > > James
> > > > > > > >
> > > > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > - Original Message -
> > > > > > > > From: <[EMAIL PROTECTED]>
> > > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > > > Subject: Re: mod_webapp.so needed
> > > > > > > >
> > > > > > > >
> > > > > > > > > It would help if you specified for which platform.
> > > > > > > > > >
> > > > > > > > > > Hi,
> > > > > > > > > >
> > > > > > > > > > Can somebody tell me where I can get
> > > > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > > > >
> > > > > > > > > > thanks
> > > > > > > > > >
> > > > > > > > > > -jari
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > 

Finding the XML parser in Tomcat

2001-06-18 Thread Frank Lawlor

In my VisualAge Java development environemnt (jdk 1.2.2) I can say, for
example,

Parser parser =
ParserFactory.makeParser("org.apache.xerces.parsers.SAXParser");

but when I deploy to a standalone Tomcat environment, I get a class not
found on the parser name, even tho I put the jar in Tomcat's WEB-INF\lib
directory.

If I put the jar into jre\lib\ext, it is found, but having to put it there
is more imposition on the user and requires extra work beyond normal web app
deployment (just putting the WAR file in the webapps dir).
Further, If I put the jar there, then programs that use the no parameter
form
   Parser parser = ParserFactory.makeParser();
then start to throw an error:
  Null Pointer Exception: sax.parser is null
This can break other applications!

Why will it not find the parser in the Tomcat WEB-INF\lib directory?
Is this an XML, jdk, Tomcat issue or what?
If I add the XML lib to jre\lib\ext, what/how system properties must be set?

Thanks,
-- Frank


Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.






RE: JSP mapping

2001-06-18 Thread Eitan Ben Noach

Thanks dim,

I'm running Tomcat 3.2.2 with Apache 1.3 as HTTP server.

No meter what I've tried to do on the tomact-apache.conf and server.xml
files, Tomcat will not
let me map root JSP files to a directory other then
c:\jakarta-tomcat-3.2.3\webapps\root

Is there any doc that defines the exact syntax of the ApJServMount
directive?
The user guide gives examples but does not specify the exact definition.

I've tried the following at the tomact-apache.conf:

ApJServMount /  /MyJspDirectory

and then in the server.xml define:


When restarting Tomcat the line "ApJServMount /  /MyJspDirectory" at the
tomact-apache.conf had been removed!

Trying the line:
ApJServMount /servlet  /MyJspDirectory

has the same results

Eitan

> -Original Message-
> From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 4:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP mapping
> 
> 
> Eitan,
> 
> Are you running standalone or with a web server?  Assuming you're
> running standalone, and that there's not much else you're using tomcat
> for, all you need to do is remove the "/"MyJspDirectory" from the
> context path and it should work fine.
> 
> cheesr
> dim
> 
> Eitan Ben Noach wrote:
> > 
> > HI,
> > 
> > I want to map JSPs called by browser at the http server root, like
> > http://victoria.xx.yy/zz.jsp to be handled by JSP file that 
> is located some
> > were else then
> > the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, 
> for example by
> > c:\winnt\zz.jsp.
> > 
> > I've succeeded on configuring Tomcat to handle JSP files at 
> the context path
> > /MyJspDirectory to be handled by JSP files at the c:\winnt 
> directory by
> > changing the server.xml file by defining:
> >   
> > 
> > In that way the browser link 
> http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> > handles by  c:\winnt\zz.jsp.
> > How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
> > 
> > It seems that it should be solved through the 
> "ApJServMount" and  "Alias"
> > directives as well as the server.xml ( and maybe web.xml ),
> > but how?
> > 
> > Thanks
> > -
> > Eitan Ben-Noach
> > Proficiency, Ltd.
> > 
> > Tel: +972.2.548.0287
> > Fax: +972.2.586.3871
> > email: [EMAIL PROTECTED]
> > 
> > The Intelligence in Engineering Supply Chain Collaboration
> > 
> > 
> > > - Original Message -
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 18, 2001 2:13 PM
> > > Subject: Re: Vs: Vs: mod_webapp.so needed
> > >
> > >
> > > > Give this a whirl:
> > > >
> > > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > > >
> > > > The next part is actually configuring it?!
> > > >
> > > > James
> > > > >
> > > > > why notI can´t lose anything...:)thanks! and yes,
> > > we are talking about RH.
> > > > > Will you give me address where I can download it?
> > > > >
> > > > > -jari
> > > > >
> > > > > - Original Message -
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > > Subject: Re: Vs: mod_webapp.so needed
> > > > >
> > > > >
> > > > > > I've got it compiled for Redhat 6.2, although that's a
> > > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > > 2.4. If you want to give it a try I'll upload it to my server?
> > > > > >
> > > > > > James
> > > > > > >
> > > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > - Original Message -
> > > > > > > From: <[EMAIL PROTECTED]>
> > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > > Subject: Re: mod_webapp.so needed
> > > > > > >
> > > > > > >
> > > > > > > > It would help if you specified for which platform.
> > > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > >
> > > > > > > > > Can somebody tell me where I can get
> > > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > > >
> > > > > > > > > thanks
> > > > > > > > >
> > > > > > > > > -jari
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> 



Re: Problem with Postgresql JDBC driver

2001-06-18 Thread Jeff Waugh

Sorry, I hadn't read your error message closely enough.

'No suitable driver' usually means a problem with the database
URL to which you are trying to connect.

That should look something like:

db = DriverManager.getConnection("jdbc:postgresql://hostname/dbname",
"username", "password");

Try playing with that.

-Jeff

- Original Message -
From: "Ryszard Lach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 7:20 AM
Subject: Re: Problem with Postgresql JDBC driver


> On Mon, Jun 18, 2001 at 07:21:21AM -0400, Jeff Waugh wrote:
> > Try Class.forName("org.postgresql.Driver")...
>
> Doesn't work too.
>
> R.
>
> --
> ** Internet Designers S.A., ul. Przedmiejska 6--10, 54-201 Wrocław **
>  tel. (071) 35 00 445 w. 25; fax (071) 37 35 946; http://www.id.pl/
>




Re: JSP mapping

2001-06-18 Thread Dmitri Colebatch

Eitan,

Are you running standalone or with a web server?  Assuming you're
running standalone, and that there's not much else you're using tomcat
for, all you need to do is remove the "/"MyJspDirectory" from the
context path and it should work fine.

cheesr
dim

Eitan Ben Noach wrote:
> 
> HI,
> 
> I want to map JSPs called by browser at the http server root, like
> http://victoria.xx.yy/zz.jsp to be handled by JSP file that is located some
> were else then
> the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, for example by
> c:\winnt\zz.jsp.
> 
> I've succeeded on configuring Tomcat to handle JSP files at the context path
> /MyJspDirectory to be handled by JSP files at the c:\winnt directory by
> changing the server.xml file by defining:
>   
> 
> In that way the browser link http://victoria.xx.yy/MyJspDirectory/zz.jsp is
> handles by  c:\winnt\zz.jsp.
> How can I do the same for the link http://victoria.xx.yy/zz.jsp ?
> 
> It seems that it should be solved through the "ApJServMount" and  "Alias"
> directives as well as the server.xml ( and maybe web.xml ),
> but how?
> 
> Thanks
> -
> Eitan Ben-Noach
> Proficiency, Ltd.
> 
> Tel: +972.2.548.0287
> Fax: +972.2.586.3871
> email: [EMAIL PROTECTED]
> 
> The Intelligence in Engineering Supply Chain Collaboration
> 
> 
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 18, 2001 2:13 PM
> > Subject: Re: Vs: Vs: mod_webapp.so needed
> >
> >
> > > Give this a whirl:
> > >
> > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > >
> > > The next part is actually configuring it?!
> > >
> > > James
> > > >
> > > > why notI can´t lose anything...:)thanks! and yes,
> > we are talking about RH.
> > > > Will you give me address where I can download it?
> > > >
> > > > -jari
> > > >
> > > > - Original Message -
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > Subject: Re: Vs: mod_webapp.so needed
> > > >
> > > >
> > > > > I've got it compiled for Redhat 6.2, although that's a
> > 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is
> > 2.4. If you want to give it a try I'll upload it to my server?
> > > > >
> > > > > James
> > > > > >
> > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > Subject: Re: mod_webapp.so needed
> > > > > >
> > > > > >
> > > > > > > It would help if you specified for which platform.
> > > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > Can somebody tell me where I can get
> > mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > >
> > > > > > > > thanks
> > > > > > > >
> > > > > > > > -jari
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >



RE: Tomcat-Apache configuration

2001-06-18 Thread David DELGRANCHE

Just read the documentation on Tomcat all these things are explained!

-Message d'origine-
De: Shicheng TIAN(CMS) [SMTP:[EMAIL PROTECTED]]
Date:   lundi 18 juin 2001 15:34
A:  [EMAIL PROTECTED]
Objet:  Tomcat-Apache configuration


Hello there,
We have installed Tomcat 4.0 on our PC running Win2000;
Tomcat works fine itself.

We have the following two queries and would like to get advice from the list:

1. How to configure Tomcat so that it can work together
with the Web server running at the same PC, which is Apache 1.3,
i.e. Apache would pass servlet calls to Tomcat which would process the calls
and then return the result bact to Apache?

2. Tomcat is installed on the PC at: C:\tomcat and its doc root at:
C:\tomcat\webapps\ROOT;
we wonder how to configure a remote mapping so that we can put some test
files/code on
another drive of the same PC, e.g. on the D drive at: D:\Test

Thanks,

Shicheng 




newbie: Installing Servlets

2001-06-18 Thread LeRoi

Hello!

Now that I have Tomcat up and running, it's time that I starting doing some
real work.  Following a simple example in the book I'm using it says that
servlets are installed in the subdirectory "webapps\WEB-INF\servlets".  I
put my class there (under "examples" directory of Tomcat) and shut down
Tomcat and re-started it.  Below is the code for textbook example:

// Fig. 19.5:  HTTPGetServlet.java
// Creating and sending a page to the client
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class HTTPGetServlet extends HttpServlet {
public void doGet(HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException
{
PrintWriter output;

response.setContentType("text/html");  // content type
output = response.getWriter();  // get writer

// create and send HTML page to client
StringBuffer buf = new StringBuffer();
buf.append("\n");
buf.append("A simple Servlet Example\n");
buf.append("\n");
buf.append("Welcome to Servlets!\n");
buf.append("");
output.println(buf.toString());
output.close();  // close PrintWriter stream
}
}





Servlet HTTP GET Example



http://localhost:8080/servlets/HTTPGetServlet";
METHOD="GET">
Click the button to have the servlet send
  an HTML document





Well, it didn't work.  My question is, in order to install this simple
servlet does that mean I have to go through all the steps as given in the
documentation for "Developing Applications with Tomcat"?

Cheers and many thanx in advance,
LeRoi





JSP mapping

2001-06-18 Thread Eitan Ben Noach

HI,

I want to map JSPs called by browser at the http server root, like
http://victoria.xx.yy/zz.jsp to be handled by JSP file that is located some
were else then
the default c:\jakarta-tomcat-3.2.3\webapps\root\zz.jsp, for example by
c:\winnt\zz.jsp.

I've succeeded on configuring Tomcat to handle JSP files at the context path
/MyJspDirectory to be handled by JSP files at the c:\winnt directory by
changing the server.xml file by defining:
  

In that way the browser link http://victoria.xx.yy/MyJspDirectory/zz.jsp is
handles by  c:\winnt\zz.jsp.
How can I do the same for the link http://victoria.xx.yy/zz.jsp ?

It seems that it should be solved through the "ApJServMount" and  "Alias"
directives as well as the server.xml ( and maybe web.xml ),
but how?

Thanks
-
Eitan Ben-Noach
Proficiency, Ltd.

Tel: +972.2.548.0287
Fax: +972.2.586.3871
email: [EMAIL PROTECTED]

The Intelligence in Engineering Supply Chain Collaboration





> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 18, 2001 2:13 PM
> Subject: Re: Vs: Vs: mod_webapp.so needed
> 
> 
> > Give this a whirl:
> > 
> > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > 
> > The next part is actually configuring it?!
> > 
> > James
> > > 
> > > why notI can´t lose anything...:)thanks! and yes, 
> we are talking about RH.
> > > Will you give me address where I can download it?
> > > 
> > > -jari
> > > 
> > > - Original Message - 
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 18, 2001 1:46 PM
> > > Subject: Re: Vs: mod_webapp.so needed
> > > 
> > > 
> > > > I've got it compiled for Redhat 6.2, although that's a 
> 2.2 kernel and Linux 7.1 (I assumed we're talking Redhat) is 
> 2.4. If you want to give it a try I'll upload it to my server?
> > > > 
> > > > James
> > > > > 
> > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > 
> > > > > 
> > > > > 
> > > > > - Original Message - 
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > Subject: Re: mod_webapp.so needed
> > > > > 
> > > > > 
> > > > > > It would help if you specified for which platform.
> > > > > > > 
> > > > > > > Hi,
> > > > > > > 
> > > > > > > Can somebody tell me where I can get 
> mod_webapp.so or perhaps send it to me? I need it asap.
> > > > > > > 
> > > > > > > thanks
> > > > > > > 
> > > > > > > -jari
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > 
> > > > 
> > > 
> > 
> > 
> 



Tomcat-Apache configuration

2001-06-18 Thread Shicheng TIAN(CMS)


Hello there,
We have installed Tomcat 4.0 on our PC running Win2000;
Tomcat works fine itself.

We have the following two queries and would like to get advice from the list:

1. How to configure Tomcat so that it can work together
with the Web server running at the same PC, which is Apache 1.3,
i.e. Apache would pass servlet calls to Tomcat which would process the calls
and then return the result bact to Apache?

2. Tomcat is installed on the PC at: C:\tomcat and its doc root at:
C:\tomcat\webapps\ROOT;
we wonder how to configure a remote mapping so that we can put some test
files/code on
another drive of the same PC, e.g. on the D drive at: D:\Test

Thanks,

Shicheng 




I wonder what is this?

2001-06-18 Thread Rajeshwar Rao.V

Error: 500
Location: /myCon/servlets/LogOn.htm
Internal Servlet Error:

java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:254)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)



Re: What are EJB

2001-06-18 Thread Sam Newman

The only real similarity between EJB's and normal JavaBeans is that they are
both based on component models. EJB's provide a java representation of some
data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB class
is tied to one table. XML is used to tie an EJB and its data to a database.
There is a bit of a problem with this approach, in that a typical OO  design
for such a system can result in a good OO system on the surface, but a real
mess of a database

EJB's need a compliant EJB server, and a database. There are a few free
versions around - try JBoss. They work fine with Servlets/Tomcat given that
they are also part of the j2ee. I personally use Cape Connect (previosly
Orcas) with tomcat without too many problems (there are a couple of class
loader issues in some circumstances however). Orcas actually bundles Tomcat
with it, and they pre-configure it to work with their ejb container.

sam
- Original Message -
From: "Alexandre Bouchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 17, 2001 6:07 PM
Subject: What are EJB


> I've got a simple question: What are Enterprise Java Beans. I mean, what's
> the difference between EJB and the beans I develop with JDK and run with
> Tomcat?
>
> Thx
>




RE: access log for Tomcat

2001-06-18 Thread David Rosenstark

I assume that this means that I have to do it all myself in terms of setting
up different options to log?

> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 1:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: access log for Tomcat
> 
> 
> 
>   There isn't a module for Tomcat that does this that I 
> know of (and
> nothing built into Tomcat, regardless of what Luba says), 
> although it should
> be fairly easy to do - you need to write a RequestInterceptor 
> that just
> logs, not intercepts, the requests.
> 
>   Randy
> 
> -Original Message-
> From: David Rosenstark [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 17, 2001 7:45 AM
> To: '[EMAIL PROTECTED]'
> Subject: access log for Tomcat
> 
> 
> Is there some way to configure Tomcat to have a log of all 
> web requests
> coming in similar to access_log in Apache?
>  
> TIA,
> David
> 



RE: Advice: SSLifying a Tomcat+IIS setup

2001-06-18 Thread Hughes, Tim

Hello,

I first setup Tomcat as a "standalone" running as an NT service. I have also
now plugged Tomcat into an IIS server so that I can either use Tomcat as a
standalone or query IIS which then forwards the request to Tomcat.
Everything works hunkydory and I think Tomcat is great. So clean!

I now would like to SSLify the servlets/JSPs responses that Tomcat serves up
(I don't care about SSLify any of the pages that IIS serves up). I would
like to have the SSL working such that it SSLifies the servlets/JSP
responses irrespective of whether the original request came direct to Tomcat
or via IIS.

I have read the documentation supplied with Tomcat (in particular "Tomcat
and SSL"). But it does not give me enough information and I don't want to go
charging in and mess up my nice smoothly working setup. How should I go
about installing SSL so that it works the way I want it (i.e. SSLifying the
servlets/JSP responses irrespective of whether the original request came
direct to Tomcat or via IIS). Is it enough to just follow the instructions
in the doc "Tomcat and SSL" in the subsection "SSL direct" or is there more
to it than that?

(Software: jakarta-tomcat-3.2.1 running as NT service, IIS 4.0, JDK1.3.1)

Tim.






RE: (wrapper.tomcat_home)\classes directory

2001-06-18 Thread Mitchell, Jason

It does thanks

-Original Message-
From: Robert Schweng [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: (wrapper.tomcat_home)\classes directory


hi,

they normaly exist  and contain servlet classes
wrapper.tomcat_home opints to a webapp's web-inf folder
there can be a folder name classes which contains servlets.
but there might be no classes directory (your webapp can only contain *.jsp
and *.html files without servlets)
hope this helps

cheers hype

- Original Message -
From: Mitchell, Jason <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 9:00 PM
Subject: (wrapper.tomcat_home)\classes directory


> I'm trying to set up tomcat in windows nt using IIS as the web server and
I
> cant get it to start either as a service or using the setup.bat
>
> I noticed that the (wrapper.tomcat_home)\classes directory does not exist.
> Should it?  If so where would I get the .class files to populate it?
>
> jason
>



Vs: Vs: Vs: Vs: mod_webapp.so needed

2001-06-18 Thread Jari Salmela

Yes, Apache handle this, but I have read Chilisoft´s documentation and it says it 
works only Apache 1.3.14 or older. And Chilisoft and Tomcat won´t work together, but I 
had tomcat 3.2.1 and chilisoft asp 3.5.2 together and working.

I haven´t try this mod_webapp.so yet, and I think testing is going to 
tomorrow.hope it´s work and i don´t stuck somewhere. Thanks for help!

-jari

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2001 2:40 PM
Subject: Re: Vs: Vs: Vs: mod_webapp.so needed


> I wasn't actually thinking of that, the documentation is a touch sketchy, it doesn't 
>say your webapp directives *MUST* appear within a VirtualHost directive, etc, etc, 
>fortunately it throws loads of debug messages to STDERR (error_log).
> 
> Theoretically, I can't see why you should encounter problems, Apache's handler 
>mechanism allows a nice degree of abstraction, handlers should operate pretty 
>autonomously without having any bearing on the operation of others. 
> 
> Proviso -> 'should' !
> 
> > 
> > yesi know.i have bad feeling that it´s not going to be easy, because i 
>have put together Apache 1.3.19, Tomcat 4b5 and Chilisoft ASP 3.6.and of course 
>these don´t want work together ( or mayby it´s better say that ASP don´t want work 
>).btw have anyone try this before? 
> > 
> > -jari
> > 
> > - Original Message - 
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 18, 2001 2:13 PM
> > Subject: Re: Vs: Vs: mod_webapp.so needed
> > 
> > 
> > > Give this a whirl:
> > > 
> > > http://www.nameonthe.net/techcorn/tomcat/mod_webapp.so
> > > 
> > > The next part is actually configuring it?!
> > > 
> > > James
> > > > 
> > > > why notI can´t lose anything...:)thanks! and yes, we are talking about 
>RH.
> > > > Will you give me address where I can download it?
> > > > 
> > > > -jari
> > > > 
> > > > - Original Message - 
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, June 18, 2001 1:46 PM
> > > > Subject: Re: Vs: mod_webapp.so needed
> > > > 
> > > > 
> > > > > I've got it compiled for Redhat 6.2, although that's a 2.2 kernel and Linux 
>7.1 (I assumed we're talking Redhat) is 2.4. If you want to give it a try I'll upload 
>it to my server?
> > > > > 
> > > > > James
> > > > > > 
> > > > > > SorryLinux 7.1, Apache 1.3.19, Tomcat 4b5
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > - Original Message - 
> > > > > > From: <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Monday, June 18, 2001 12:54 PM
> > > > > > Subject: Re: mod_webapp.so needed
> > > > > > 
> > > > > > 
> > > > > > > It would help if you specified for which platform.
> > > > > > > > 
> > > > > > > > Hi,
> > > > > > > > 
> > > > > > > > Can somebody tell me where I can get mod_webapp.so or perhaps send it 
>to me? I need it asap.
> > > > > > > > 
> > > > > > > > thanks
> > > > > > > > 
> > > > > > > > -jari
> > > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > 
> > > 
> > > 
> > 
> 
> 




Re: Default web.xml

2001-06-18 Thread Brett M. Bergquist

In tomcat 3.2.x, the "web.xml" in the conf directory is not used at all.  I
fact, you can completely remove it with no ill effects.  Internally, Tomcat
3.2.x compiles in some defaults; mime mappings, the JSP servlet mapping,
etc.  In your application's "web.xml" specify anything that you need too
override the defaults.  I believe I read the Tomcat 4.0 will once again have
a default "web.xml".  I'm not sure about Tomcat 3.3, however.  Check the
Tomcat mailing list archives for more info

- Original Message -
From: Timothy Shadel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 3:07 PM
Subject: Default web.xml


> I have a quick question about how the default web.xml found in the conf
directory is supposed to act.  The Tomcat User's guide says it acts as a
default web.xml for all web applications.  I tried to add the following to
it:
>
>   
> 
> jsp
> 
> 
> *.jsp
> 
> 
>   
> 
> jsp
> 
> 
> *.tem
> 
> 
>
> because we wanted to logically separate our JSP files used as templates
from those providing major content.  However, accessing a valid JSP file
that's been renamed with a .tem extension returns only the actual file
contents instead of being translated as a JSP.  The same 
tag works perfectly in an application's web.xml.  Am I supposed to be able
to modify the web.xml in the conf directory and have it affect all
applications, or is it only supposed to work with the one that comes with
Tomcat by default?
>
> Thanks,
>
> Tim Shadel
>




Don't get me wrong

2001-06-18 Thread lists


Don't get me wrong, this is a nice list and all, 
but attempts to unsubscribe (by emailing to 
[EMAIL PROTECTED] ) have 
been unsuccessful.  Anyone know of there another way?

Christopher Lambrou,
CGL Computer Services, Inc.
Empire State Building, 
PMB 16J Suite 3304 
New York, NY 10118
Tel: (212) 971-9723
Fax: (212) 564-1135
URL: http://www.cglcomputer.com
Email: [EMAIL PROTECTED]




error 500

2001-06-18 Thread Karsa . Keith

Below is the error we are getting when trying to deploy java server pages.
Can you look into it or pass it along to someone who is familiar with AppDev
2.0 and JSPs? We would appreciate some feedback as to what might be causing
this error. also, do we need SAS v8.2 to run Appdev studio 2.0?
Thanks,



On WINNT4.0...

Error: 500
Location: /examples/jsp/wholesale.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta-tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fwholesale
_0002ejspwholesale_jsp_0.java:70: Undefined variable, class, or package
name: com
 
out.print(com.sas.servlet.beans.html.RB.getStringResource("WebEISJSP.needsFr
ames.txt"));
  ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled Code)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:258)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:268)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled
Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)






  1   2   >