RE: AddModule mod_jk.c

2001-04-16 Thread guyr
Title: RE: AddModule mod_jk.c





Windows doesn't require DLLs to have a .dll extension.


-Original Message-
From: e_teer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 15, 2001 4:21 PM
To: [EMAIL PROTECTED]
Subject: Re: AddModule mod_jk.c



Hey Eric,


LoadModule loads the module into memory and AddModule makes it 
available for use. You do need both except when the module is 
already built into Apache which several are in the Win32 version, in 
this case you only need the AddModule.


However, it was my understanding that .so files are Linux only. And 
all the modules for Win32 use .dll libraries. Therefore the 
LoadModule command had to operate on module/filenames with .dll. 


But the config file for Win32 in version 1.3.19 now has all .so 
endings. Just to restate things for other readers I am wondering if 
that was an error/bug or if Apache 1.3.19 now does some internal 
filename translation so everything can be uniformly called .so even 
though you are supposed to use .dll on Win32.


-Ellis Teer


On Sun, 15 Apr 2001 00:10:03 -0700 (PDT), eric leung wrote:
thanks jeff,
i had read this already, but i am still not very clear
about difference between the 2.

what i think is addmodule will add the module to the
list. you can't use the module until you use the
LoadModule command to load the module into memeory.
you don't need to use AddModule before loading it.

would AddModule become pretty much useless?

thanks.

--- Jeff Kilbride [EMAIL PROTECTED] wrote:
 Did you try the docs?

 http://httpd.apache.org/docs/mod/core.html#addmodule


http://httpd.apache.org/docs/mod/mod_so.html#loadmodule

 --jeff

 - Original Message -
 From: brian luk [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, April 14, 2001 2:16 PM
 Subject: AddModule mod_jk.c


  Hi,
  can any one tell me what's difference between the
 2:
 
  LoadModule jk_module libexec/mod_jk.so
  AddModule mod_jk.c
 
  i must load the jk module before i can connect to
  tomcat. I think tomcat works without AddModule
  mod_jk.c, what's AddModule mod_jk.c use for? No
 use?
 
  thanks.
 
 
  P.S.
  part of the httpd.conf
  LoadModule env_module libexec/mod_env.so
  LoadModule config_log_module
  libexec/mod_log_config.so
  LoadModule mime_module libexec/mod_mime.so
  LoadModule negotiation_module
  libexec/mod_negotiation.so
  LoadModule status_module
 libexec/mod_status.so
  LoadModule includes_module
 libexec/mod_include.so
  LoadModule autoindex_module
 libexec/mod_autoindex.so
  LoadModule dir_module libexec/mod_dir.so
  LoadModule cgi_module libexec/mod_cgi.so
  LoadModule asis_module libexec/mod_asis.so
  LoadModule imap_module libexec/mod_imap.so
  LoadModule action_module
 libexec/mod_actions.so
  LoadModule userdir_module
 libexec/mod_userdir.so
  LoadModule alias_module libexec/mod_alias.so
  LoadModule access_module
 libexec/mod_access.so
  LoadModule auth_module libexec/mod_auth.so
  LoadModule setenvif_module
 libexec/mod_setenvif.so
  LoadModule jk_module libexec/mod_jk.so
  LoadModule rewrite_module
 libexec/mod_rewrite.so
  IfDefine SSL
  LoadModule ssl_module libexec/libssl.so
  /IfDefine
 
  ClearModuleList
  AddModule mod_env.c
  AddModule mod_log_config.c
  AddModule mod_mime.c
  AddModule mod_negotiation.c
  AddModule mod_status.c
  AddModule mod_include.c
  AddModule mod_autoindex.c
  AddModule mod_dir.c
  AddModule mod_cgi.c
  AddModule mod_asis.c
  AddModule mod_imap.c
  AddModule mod_actions.c
  AddModule mod_userdir.c
  AddModule mod_alias.c
  AddModule mod_access.c
  AddModule mod_auth.c
  AddModule mod_so.c
  AddModule mod_setenvif.c
  AddModule mod_jk.c
  AddModule mod_rewrite.c
  IfDefine SSL
  AddModule mod_ssl.c
  /IfDefine
 
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail.
  http://personal.mail.yahoo.com/
 



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/



-- e_teer, [EMAIL PROTECTED] on 04/15/2001



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





RE: AddModule mod_jk.c

2001-04-16 Thread guyr
Title: RE: AddModule mod_jk.c





No, you can't just rename DLL files. Windows stores a library name inside the DLL, and it gets bothered if the current DLL name doesn't match the name stored inside the DLL. mod_jk.so works as a DLL because it was built as mod_jk.so. So a more exact wording of my statement below is Windows doesn't require DLLs to have a .dll extension, but you must decide what name you want your DLL to have and stick with it.

-Original Message-
From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 5:36 PM
To: [EMAIL PROTECTED]
Subject: Re: AddModule mod_jk.c



I would just leave it as .dll and change the config in httpd.conf or
mod_jk.conf.


I don't use Tomcat under windows. If it were Unix and I was upgrading
Apache, I'd probably recompile the module just to make sure there weren't
any quirks.


Thanks,
--jeff


- Original Message -
From: Ellis Teer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 16, 2001 12:14 PM
Subject: Re: AddModule mod_jk.c



 Thanks Jeff and guyr,

 Can I rename the current mod_jk.dll to mod_jk.so? Are they identical and
it's
 just a name extension change that occurred between 1.3.14 and 1.3.15. I
 checked the downloads of Jakarta and Apache.org and didn't find a
mod_jk.so
 binary for Win2k.

 -Ellis Teer

 On Mon, 16 Apr 2001 10:12:31 -0700, Jeff Kilbride wrote:
  RE: AddModule mod_jk.c I believe they changed the extensions
 from .dll to ..so in Apache 1.3.15 and up.
 
  --jeff
 
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, April 16, 2001 9:16 AM
  Subject: RE: AddModule mod_jk.c
 
 
 
 
 Windows doesn't require DLLs to have a .dll extension.
 
 -Original Message-
 From: e_teer [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 15, 2001 4:21 PM
 To: [EMAIL PROTECTED]
 Subject: Re: AddModule mod_jk.c
 
 
 Hey Eric,
 
 LoadModule loads the module into memory and AddModule makes it
 available for use. You do need both except when the module is
 already built into Apache which several are in the Win32 version,
 in
 this case you only need the AddModule.
 
 However, it was my understanding that .so files are Linux only.
 And
 all the modules for Win32 use .dll libraries. Therefore the
 LoadModule command had to operate on module/filenames with .dll.
 
 
 But the config file for Win32 in version 1.3.19 now has all .so
 endings. Just to restate things for other readers I am wondering
 if
 that was an error/bug or if Apache 1.3.19 now does some internal
 filename translation so everything can be uniformly called .so
 even
 though you are supposed to use .dll on Win32.
 
 -Ellis Teer
 
 On Sun, 15 Apr 2001 00:10:03 -0700 (PDT), eric leung wrote:
 thanks jeff,
 i had read this already, but i am still not very clear
 about difference between the 2.
 
 what i think is addmodule will add the module to the
 list. you can't use the module until you use the
 LoadModule command to load the module into memeory.
 you don't need to use AddModule before loading it.
 
 would AddModule become pretty much useless?
 
 thanks.
 
 --- Jeff Kilbride [EMAIL PROTECTED] wrote:
  Did you try the docs?
 
  http://httpd.apache.org/docs/mod/core.html#addmodule
 
 
 http://httpd.apache.org/docs/mod/mod_so.html#loadmodule
 
  --jeff
 
  - Original Message -
  From: brian luk [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, April 14, 2001 2:16 PM
  Subject: AddModule mod_jk.c
 
 
   Hi,
   can any one tell me what's difference between the
  2:
  
   LoadModule jk_module libexec/mod_jk.so
   AddModule mod_jk.c
  
   i must load the jk module before i can connect to
   tomcat. I think tomcat works without AddModule
   mod_jk.c, what's AddModule mod_jk.c use for? No
  use?
  
   thanks.
  
  
   P.S.
   part of the httpd.conf
   LoadModule env_module libexec/mod_env.so
   LoadModule config_log_module
   libexec/mod_log_config.so
   LoadModule mime_module libexec/mod_mime.so
   LoadModule negotiation_module
   libexec/mod_negotiation.so
   LoadModule status_module
  libexec/mod_status.so
   LoadModule includes_module
  libexec/mod_include.so
   LoadModule autoindex_module
  libexec/mod_autoindex.so
   LoadModule dir_module libexec/mod_dir.so
   LoadModule cgi_module libexec/mod_cgi.so
   LoadModule asis_module libexec/mod_asis.so
   LoadModule imap_module libexec/mod_imap.so
   LoadModule action_module
  libexec/mod_actions.so
   LoadModule userdir_module
  libexec/mod_userdir.so
   LoadModule alias_module libexec/mod_alias.so
   LoadModule access_module
  libexec/mod_access.so
   LoadModule auth_module libexec/mod_auth.so
   LoadModule setenvif_module
  libexec/mod_setenvif.so
   LoadModule jk_module libexec/mod_jk.so
   LoadModule rewrite_module
  libexec/mod_rewrite.so
   IfDefine SSL
   LoadModule ssl_module libexec/libssl.so
   /IfDefine
  
   ClearModuleList
   AddModule mod_env.c
   AddModule mod_log_config.c
   AddModule mod_mime.c
   AddModule mod_negotiation.c

RE: bean accessing bean

2001-03-27 Thread guyr

You want to use a single connection for all your other beans.  You don't
want to instantiate a new connection for each bean.  So you want to use the
** one ** instance of your connection bean.  Beans of course can use each
other.  The problem is creating a singleton instance and getting your other
beans to use that singleton.  In JSP pages, I solve this problem by having a
useDb(db) in each of the other beans.  Your last question asked "from the
container".  What is the container in your scenario?  If you are not running
from a JSP, do you have a container?  Something must be driving your main
logic.  Each time that something uses a new bean, you can use the useDb
approach to tell the new bean what connection to use.  Alternatively, you
can try adding a static method to your connection class which instantiates a
singleton and then returns that to the caller.  If you invoke the JVM
multiple times, however, you'll end up with multiple instances of the
singleton.

-Original Message-
From: Sam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 4:06 AM
To: [EMAIL PROTECTED]
Subject: Re: bean accessing bean


In the connection bean i have information specific for the current user. the
bean therefore resides in the session-scope.
So what's the code to grab the bean from the container?



- Original Message -
From: "Kris Gonzalez" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 10:48 AM
Subject: Re: bean accessing bean


 Then why not import your connection bean directly into the beans' .java
files
 and instantiate your connection bean in the constructor for all of the
other
 beans which will use it?

 Sam wrote:

  I'm not trying to access a bean in jsp, i'm trying to access a bean from
  another bean directly, without jsp as an intermediate.
  I don't want to pass that connection allong to all the classes (quite a
  tree), because not all the classes have to use the connection, just the
once
  at the bottom of the tree.
 
  - Original Message -
  From: "Kris Gonzalez" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, March 27, 2001 10:31 AM
  Subject: Re: bean accessing bean
 
   Sam...
  
   I do the same thing, and accomplish this in JSP by importing the bean
   class via:
  
   %@ page import="ConnectionBean" %
  
   and instantiate the bean with
  
   jsp:useBean id="conn" class="ConnectionBean" scope="request" /
  
   and using it via
  
   %conn.getConnection();   %
  
   or some like sequence...
  
   Sam wrote:
  
Hi, I'm using Tomcat and have several Beans, who all require a
database connection.I've defined a connectionBean (which ofcourse
handles the database connection via connectionPooling). I want to be
able to call this connectionBean in every other bean.Can someone
tell
me how to do that? Sam.
  




RE: chart in jsp

2001-03-27 Thread guyr

See http://www.jguru.com/faq/view.jsp?EID=37785.  We are using jFreeChart
successfully.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 12:21 AM
To: [EMAIL PROTECTED]
Subject: Re: chart in jsp



The only dynamic charts I've seen have used fixed size images combined
dynamically to form a graph, chart, tree, etc.

sorry, no code.

Neill Laney
http://home.nc.rr.com/nlaney
--
Web Developer/Technical Support Specialist.



 

Altuð

Altýntaþ To:
"'[EMAIL PROTECTED]'"   
(Koç.Net)[EMAIL PROTECTED]

[EMAIL PROTECTED]cc:

et  Subject: chart in jsp

 

03/26/2001

05:24 AM

Please

respond to

tomcat-user

 

 






are there  any way to draw a dynamic chart in jsp ?

any source  or idea ?

thanks ..






RE: Context Admin password ?

2001-03-21 Thread guyr

Search the archives.  This question is answered every week.  You need to
assign the "admin" role to one of the userids (any one.)

-Original Message-
From: Laurent Barbier [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 21, 2001 3:20 PM
To: Tomcat-User
Subject: Context Admin password ?


When I try to connect to  : 
http://localhost:8080/admin

and I select "Context Admin", the system ask a username and password :

Where can I found these information, and how can ew managed them ?

I'm using Tomcat in Stand-alone servlet containers on NT 2000 pro.

Thanx



RE: org.apache.jasper.JasperException: Unable to compile class for JSP

2001-03-14 Thread guyr

Since you didn't provide a fully qualified class name, Tomcat defaulted to
looking in the current directory, relative to /examples.  So it was looking
for jsp/dates/DbWriter.class.  Where are you keeping your class?  Is it in
the classpath?

-Original Message-
From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 8:28 PM
To: [EMAIL PROTECTED]
Subject: org.apache.jasper.JasperException: Unable to compile class for
JSP


Hi,

 I have a simple server-side java class named DBWriter (with no package
name)
I am using it in a jsp file like this

 %DBWriter dbwrt = new DBWriter()%

 I get following exception on browser page while browsing the above jsp



 _
 Error: 500
 Location: /examples/jsp/dates/mydate.jsp
 Internal Servlet Error:

 org.apache.jasper.JasperException: Unable to compile class for

JSPD:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate
 _0002ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
 DBWriter w = new DBWriter();
 ^

D:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fdates_0002fmydate_00
 02ejspmydate_jsp_0.java:87: Class jsp.dates.DBWriter not found.
 DBWriter w = new DBWriter();
  ^
 2 errors

  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
  at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:152)
  at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:164)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
  at org.apache.tomcat.core.Handler.service(Handler.java:286)
  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.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:210)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
  at java.lang.Thread.run(Thread.java:484)


 __


 as I told earlier the class I am using is not residing in any package,
while
 tomcat is trying to find it in jsp.dates package.

 How do I get around this problem ? Is this a bug since I see similar kinds
 of problems reported on the mailing list archieve

 your help is appriciated,
 Mandar



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



RE: 'work' Folder--help??

2001-03-14 Thread guyr
Title: RE: 'work' Folder--help??





Tomcat doesn't actually execute JSPs directly. First, tomcat compiles each JSP into a servlet, then the servlet is run. The work directory contains the compiled form of the JSPs (i.e., the resulting servlets.)

I'd suggest updating your startup scripts to delete (recursively) the work directory before actually starting tomcat. Also, make sure in your server.xml, each context you define has 

 reloadable=true


Finally, realize that tomcat only checks the time on the top-most JSP, i.e., the one the browser asked for. So if you change an include, it won't be detected. You can dance around that limitation by touching the top-most JSPs if you don't want to restart tomcat.

-Original Message-
From: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 6:11 PM
To: [EMAIL PROTECTED]
Subject: 'work' Folder--help??



Hi
Anyone know what the hell is the 'work' folder for??
Ive been using Tomcat for a couple of months and just today my project is 
gone all screwed up and when I make changes to the .JSP pages, they dont 
update on the server. I am using tomcat on its own and in the server.xml 
file I have the following Context declared


Context path=/project
 docBase=webapps/project
 debug=0
 reloadable=true
 trusted=false 
/Context


How come the JSP pages are not relaoding now until i delete the folder
localhost_8080%2Fproject in the work folder?
What are the files inside in this folder actually for??, e.g. 
_0002fjsp_0002fview_0005fparking_0005fcost_0002ejspview_0005fparking_0005fcost.class
Can somebody please help me ion this issue?
Im sure there is a simple answer.
Thanks in advance,
Mick
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





RE: Tomcat under Win2k

2001-03-14 Thread guyr

You're probably running Microsoft's java.exe.  Get ahold of a which.exe
utility and find out which one you are using.  Rename
\winnt\system32\java.exe to java.bak and make sure c:\jdk1.3\bin is in your
path.

-Original Message-
From: Ivan Pilis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 7:12 PM
To: [EMAIL PROTECTED]
Subject: Tomcat under Win2k



 Hi all!

  I'm trying to run Tomcat 3.2.1 under Win2k and this error occures: "error
occured duriong initialization of JVM ,java/lang/ClassNotFoundException :
sun/io.ByteToCharCp1250". I;ve searched this class and found it in zip file
\Winnt\java\packages\afh7j5v5.zip. On the other side, if I run java program
in Visual J++, everythin works. Where could be problem?

  Thanx a lot.

   Mutant



RE: Null pointer exception using Oreilly multipart classes on Spa rc

2001-03-09 Thread guyr

Ugh!  Confirmed that this is a problem with ajp13.  If I drop back to ajp12,
problem disappears.  Where is the ajp13 code implemented?  Has anybody
updated it since the tomcat 3.2.1 release?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 7:02 PM
To: [EMAIL PROTECTED]
Subject: RE: Null pointer exception using Oreilly multipart classes on
Spa rc


Unfortunately, I'm getting it with Netscape 4.7 and IE 5.0, so I don't think
it is client related.  The failing line is 88 in PartInputStream:

  read = ((ServletInputStream)in).readLine(buf, count, buf.length -
count);
  // check for eof and boundary
  if (read == -1) {
throw new IOException("unexpected end of part");

I'm trying to debug this now.  An earlier message said this appears to be an
ajp13 problem, which I'm using.  Are you using ajp13 also?

-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Null pointer exception using Oreilly multipart classes on
Sparc



I have just recently seen this too.  In my case, I had two upload fields.
Whichever one was first, would not work, the second one would.  I then
upgraded to the Jan 2001 version of the oreilly stuff, and started getting
your message.  I suspect a client issue - I am using IE 5.5 SP1.  I have not
yet been able to track down the problem though.

Regards,
Paul


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Null pointer exception using Oreilly multipart classes on
Sparc


To be more exact, I get "null pointer exception" with MultiPartRequest, and
"java.IOException: unexpected end of part" with MultiPartParser.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: Null pointer exception using Oreilly multipart classes on Sparc


We are using Jason's MultiPart classes to upload files.  They tested out
fine on our NT development platform using Sun JDK 1.3.  Our production
environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of
text files work fine, but trying to upload a Microsoft Word document results
in a null pointer exception.  I haven't debugged this yet, but I notice a
file of zero size with the correct name in the upload directory, so the file
part is obviously being found.

We have a different app on a different Sparc box using JDK 1.2.2, and it
appears to work okay.  Are there any known issues with the Multipart classes
on JDK 1.3 on Sparc?

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

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



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

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

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




RE: Null pointer exception using Oreilly multipart classes on Spa rc

2001-03-09 Thread guyr

Yes, I just downloaded the latest nightly 3.2 build, and after building it,
it does not exhibit this problem.  Thanks.  BTW, this is NOT a
Sparc-specific problem, as I originally reported.  The same thing happens
under Windows with ajp13.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Null pointer exception using Oreilly multipart classes on
Spa rc


[EMAIL PROTECTED] writes:
 Ugh!  Confirmed that this is a problem with ajp13.  If I drop back to
ajp12,
 problem disappears.  Where is the ajp13 code implemented?  Has anybody
 updated it since the tomcat 3.2.1 release?

I've heard that the problem is fixed in 3.2.2 (you can try the current
beta if you want to be sure).  The code in Ajp13ConnectionRequest.java
(package org.apache.tomcat.service.connector) has been updated since
3.2.1.

-- 
 `O O'  | [EMAIL PROTECTED]
// ^ \\ | http://www.pyrites.org.uk/

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

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




RE: using beans

2001-03-08 Thread guyr

Look at the jsp:useBean tag.  Here is an example usage:

jsp:useBean id="contact" scope="request"
class="com.zephion.ds.DbContactExt"/
%
contact.setUser_id(aUserId);
%

-Original Message-
From: Bob Kersten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:04 AM
To: [EMAIL PROTECTED]
Subject: using beans


Hi,

So... i've installed Borland JBuilder 3.5 and I created a
JavaBean. Looking at the project directory, it created a .class file.
How do I use this file, and where do I place it? I've got in-line JSP
(servlet?) working with Tomcat, but I've never used a bean or
what-so-ever, so I don't exactly know where to place the files and how
to implement it.

Thnx,
Bop.


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

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




Null pointer exception using Oreilly multipart classes on Sparc

2001-03-08 Thread guyr

We are using Jason's MultiPart classes to upload files.  They tested out
fine on our NT development platform using Sun JDK 1.3.  Our production
environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of
text files work fine, but trying to upload a Microsoft Word document results
in a null pointer exception.  I haven't debugged this yet, but I notice a
file of zero size with the correct name in the upload directory, so the file
part is obviously being found.

We have a different app on a different Sparc box using JDK 1.2.2, and it
appears to work okay.  Are there any known issues with the Multipart classes
on JDK 1.3 on Sparc?

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




RE: connecting tomcat3.2.1 to apache1.3.19 using mod_jk

2001-03-08 Thread guyr

The subject says he wants mod_jk, not mod_jserv.  The instructions are still
valid if you simply substitute mod_jk.

-Original Message-
From: RameshBabu R Muthuvel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 5:30 PM
To: [EMAIL PROTECTED]
Subject: Re: connecting tomcat3.2.1 to apache1.3.19 using mod_jk


1) Download the  ApacheModuleJServ.zip   file  from  
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/bin/win32/i386/
2) Uncompress in ApacheModules directory

and try again. It worked for me

ramesh


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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

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




RE: Null pointer exception using Oreilly multipart classes on Sparc

2001-03-08 Thread guyr

To be more exact, I get "null pointer exception" with MultiPartRequest, and
"java.IOException: unexpected end of part" with MultiPartParser.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: Null pointer exception using Oreilly multipart classes on Sparc


We are using Jason's MultiPart classes to upload files.  They tested out
fine on our NT development platform using Sun JDK 1.3.  Our production
environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of
text files work fine, but trying to upload a Microsoft Word document results
in a null pointer exception.  I haven't debugged this yet, but I notice a
file of zero size with the correct name in the upload directory, so the file
part is obviously being found.

We have a different app on a different Sparc box using JDK 1.2.2, and it
appears to work okay.  Are there any known issues with the Multipart classes
on JDK 1.3 on Sparc?

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

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




RE: Null pointer exception using Oreilly multipart classes on Sparc

2001-03-08 Thread guyr

Unfortunately, I'm getting it with Netscape 4.7 and IE 5.0, so I don't think
it is client related.  The failing line is 88 in PartInputStream:

  read = ((ServletInputStream)in).readLine(buf, count, buf.length -
count);
  // check for eof and boundary
  if (read == -1) {
throw new IOException("unexpected end of part");

I'm trying to debug this now.  An earlier message said this appears to be an
ajp13 problem, which I'm using.  Are you using ajp13 also?

-Original Message-
From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:12 PM
To: [EMAIL PROTECTED]
Subject: RE: Null pointer exception using Oreilly multipart classes on
Sparc



I have just recently seen this too.  In my case, I had two upload fields.
Whichever one was first, would not work, the second one would.  I then
upgraded to the Jan 2001 version of the oreilly stuff, and started getting
your message.  I suspect a client issue - I am using IE 5.5 SP1.  I have not
yet been able to track down the problem though.

Regards,
Paul


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 6:06 PM
To: [EMAIL PROTECTED]
Subject: RE: Null pointer exception using Oreilly multipart classes on
Sparc


To be more exact, I get "null pointer exception" with MultiPartRequest, and
"java.IOException: unexpected end of part" with MultiPartParser.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: Null pointer exception using Oreilly multipart classes on Sparc


We are using Jason's MultiPart classes to upload files.  They tested out
fine on our NT development platform using Sun JDK 1.3.  Our production
environment is Sun Solaris on Sparc, using Sun JDK 1.3. On Sun, upload of
text files work fine, but trying to upload a Microsoft Word document results
in a null pointer exception.  I haven't debugged this yet, but I notice a
file of zero size with the correct name in the upload directory, so the file
part is obviously being found.

We have a different app on a different Sparc box using JDK 1.2.2, and it
appears to work okay.  Are there any known issues with the Multipart classes
on JDK 1.3 on Sparc?

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

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



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

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




RE: newbi javabeans

2001-02-28 Thread guyr

Sure, a javabean is just java code with some method naming structure.  Java
code can call other java code.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 6:37 PM
To: [EMAIL PROTECTED]
Subject: newbi javabeans


hello!

I am fairly new to java beans but i was wondering if
it were possible for one java bean to call another
should it need to?
Im fairly certain it is possible 
its just that i havent really seen this done before.

Jason


_
http://invites.yahoo.com.au - Yahoo! Invites
- Organise your Mardi Gras party online!

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

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




RE: INDEX.JSP

2001-02-23 Thread guyr



In 
apache's httpd.conf, look for the line

DirectoryIndex index.html 

and 
add index.jsp (or blah.gasp or anything you want) onto the end of 
it.

  -Original Message-From: Ryan 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, February 23, 2001 8:04 
  PMTo: [EMAIL PROTECTED]Subject: 
  INDEX.JSP
  Right now when I use apache if I enter one of my 
  virtual domains as the url on my web-browser, the index.html in the root 
  directory will show up instead of a directory listing.
  
  I would like to make it so that a page named 
  index.jsp will do the same thing. I want my homepage to be a jsp page and not 
  html.
  
  Right now, the way I have tomcat set up. only 
  pages in ../../../jsp/, which i have specified in the context manager seem to 
  work with jsp files.
  
  thanx
   
-ryan


RE: EJB

2001-02-22 Thread guyr

No, Tomcat is not an EJB container.  Look at jboss for an open source ejb
container.

-Original Message-
From: Chris Andreou [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 4:23 PM
To: '[EMAIL PROTECTED]'
Subject: EJB


Greetings, 

Does Tomcat suppor EJB's ?  In case it does how to I set it up, otherwise
any recommendations on what servlet engines should I use are welcome


Thanks

Chris

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

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




RE: jsp

2001-02-19 Thread guyr

If you mean like this

http://www.myserver.com/jsp/myjsp.jsp?parm1=val1parm2=val2

the answer is yes.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 19, 2001 1:31 AM
To: [EMAIL PROTECTED]
Subject: jsp 


hey guys

i am just wondeirng about something, is it possible to
append data to the end of the url of a jsp file like
ASP and PHP? Ive never seen it done...




_
http://invites.yahoo.com.au - Yahoo! Invites
- Organise your Mardi Gras party online!

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

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




RE: mod_jk + ssl + apache

2001-02-16 Thread guyr
Title: RE: mod_jk  + ssl + apache





Tomcat only works with IP-based virtual hosts. Using a different host name resolves to a different IP address, so Tomcat can serve from the correct directory. Trying to use 443 on the same host name as your public system resolves to the same IP address, so Tomcat serves from the public directory.

The only way I could figure out how to get this to work was to run two copies of Tomcat, one serving http and the other serving https. Run the connectors on unique ports so Apache can talk to the correct tomcat instance.

-Original Message-
From: Connie Chan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:29 PM
To: [EMAIL PROTECTED]
Subject: RE: mod_jk + ssl + apache



I had specified JkMount in Virtual Host directive in httpd.conf file and
specified the path in the host directive in server.xml. They are as
following:


In httpd.conf, 
  VirtualHost host1.myorg.com:443
  DocumentRoot j:/webapps/rootexample/secure_html
  SSLEnable
  SSLClientAuth none
  ServerName host1.myorg.com
  /VirtualHost


In server.xml,
Host name=host1.myorg.com 
   Context path= 
 docBase=j:/webapps/rootexample/secure_html/
/Host



If I set the virtual host name (for SSL) as same as server name, it won't
work. When I https://host1.myorg.com https://host1.myorg.com , the log
file show that the tomcat still looks for the public_html directory (which
is the document root directory for the web server). But I set the virtual
host name different from the server name, it works fine. Plus, I notice
from the console shows as followings when tomcat starts up:


 ContextManager: Adding context Ctx( host1.myorg.com: )


I am not sure if I should specify the port in the host directive, in order
to tell tomcat to look for different path for SSL. If so, what is the
syntax. I cannot find from the user guide. I tried Host
name=host1.myorg.com:443 and Host name=host1.myorg.com port=443'.
None of them works (the console shows Adding contect
Ctx(host1.myorg.com:443: ). Please advise.



Thanks,
Connie






  -Original Message-
  From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 15, 2001 11:21 AM
  To: [EMAIL PROTECTED]
  Subject: RE: mod_jk + ssl + apache


  Does anyone know how to configure the apache and tomcat so 
  that the tomcat will look for the different path other than
the root
  document 
  when ssl is enabling (e.g. https://host1.myorg/)
https://host1.myorg/) ? 


  Could you be more explicit ?


  I'm using mod_jk as connector with AJP13. How to configure
tomcat so 
  that a context path can only be looked for when using SSL
only?


  Specify JkMount on SSL part (ie in mod_ssl in Virtual
  hostl:443./Virtual


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


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





RE: Pathing Problems

2001-02-16 Thread guyr

I don't think you want to be setting ContextManager.home - that (apparently,
from reading the user's guide) is a way to have Tomcat load all its
configuration files from a place other than TOMCAT_HOME, and that doesn't
really have anything to do (directly) with Tomcat-Apache communication.
docBase is root directory for files that Tomcat serves in a particular
context.  DocumentRoot is the root directory for Apache.  JkMount is
relative to DocumentRoot.  The problem I see in your configuration below is
that DocumentRoot set to /web/tomcat2, but the empty context in Tomcat is
set to /web/tomcat2/java/webapps.  So when Apache finds a file, starting
from its DocumentRoot, of (e.g.) /java/webapps/jsp/test.jsp, tomcat will
look for this document starting in the directory you gave it for it's
docBase, so it will try to find a file
/web/tomcat2/java/webapps/java/webapps/jsp/test.jsp.  Obviously, this file
does not exist.

-Original Message-
From: Brock Barber [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 1:51 PM
To: '[EMAIL PROTECTED]'
Subject: Pathing Problems


Hi

I'm having a heck of a time getting tomcat/apache(virtual host)/mod_jk
to work properly in a directory structure different than that laid out
in the example.  I'm relatively certain it's a pathing problem since I'm
pretty much guessing at what the values should be for the various paths.
I have read all the FAQ's and tomcat documentation but for the most
part, it's deals with using jserv and nowhere can I  find an explanation
of what docBase is supposed to be.  I've spent hours looking through the
archives as well.  If nothing else, the archive shows me I'm not alone
in my lack of understanding :p   

Can anyone explain the relationship between apache DocumentRoot and
JkMount, ContextManager home and Context path and docBase?   

System info: solaris 8, tomcat 3.2.1 (binary), apache 1.3.12, mod_jk

My directory structure looks like:

/web (contains 15 or so web sites, one for each virtual host)
/tomcat2 (this is just the root directory for some website)
/java
conf
logs
webapps
images
index.html
jsp
servlets
WEB-INF
work

My DocumentRoot = /web/tomcat2  and my ContextManager home =
/web/tomcat2/java.

My latest try (and I think I've tried every possible combination at
least twice).
 
JkMount /java/webapps/*.jsp ajp13
JkMount /java/webapps/servlet/* ajp13   

Host name ="192.168.0.240"
Context path="" 
docBase="/web/tomcat2/java/webapps" 
crossContext="false"
debug="0" 
reloadable="true"  
/Context
/Host


If anyone can clarify things for me I'd be eternally grateful.

brock

**
Brock Barber
Applications Group
MBD (McNair Business Development Inc.)

Direct: 789-0019
Fax: 789-7630
E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.mcnairbd.com

A head for business.
**



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

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




RE: Multiple instances of Tomcat

2001-02-08 Thread guyr

Yes, I've done this.  You need to hand-tailor workers.properties (I copied
it to workers.https and then modified it.)  Your customized workers should
use the standard ports.  Set one virtual server to communicate using ajp12,
and the other using ajp13.  Then in your the ** original **
workers.properties for one of the tomcats, change ajp12 to use an unused
port, e.g. 8008, and also update server.xml to use this port. Now, start
both tomcats, then start apache.  Your apache will talk to one of the
tomcats on ajp12, and the other on ajp13.  You can still shut down the
tomcat under which you changed ajp12, since you have it running, just on a
different port.

-Original Message-
From: Dan Kummer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 3:20 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple instances of Tomcat


Has anybody successfully gotten multiple instances of Tomcat running with a
single apache instance?
What I want is to be able to have different servlets served by different
tomcats to enable me to shutdown an instance with out killing the other
servlets.
I would also like to balance the load over multiple CPU's for obvious
reasons.

Background:
OS: FreeBSD 4.2
Apache: 1.3.14
Tomcat: 3.2.1
Functioning with multiple virtual servers and a single tomcat for example
http://server1 http://server1  an http://server2 http://server2  are
both being handed off to a single tomcat instance.
What I would like is for http://server1 http://server1  to be handled by
one tomcat instance and http://server2 http://server2  to be handled by
another.

I have seen some documentation on this but it is very limited.
Any help would be appreciated
Please cc me in replies.

Thanks

Dan Kummer
Requisite Technology
[EMAIL PROTECTED]
Office: (303) 474-2204
Office fax: (303) 474-2211
E-CONTENT SOLUTIONS THAT POWER B2B E-COMMERCE



CONFIDENTIALITY NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender 
("Information") that may be confidential and legally privileged.  If you are
not the intended recipient, any disclosure, copying,
distribution or action taken in reliance on the Information is strictly
prohibited.  If you have received the Information in error,
please contact the sender by reply email and destroy all copies of the
original email.
 Thank you.



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

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




RE: Include file in Jsp -recompile issue

2001-02-06 Thread guyr
Title: Include file in Jsp -recompile issue



No, 
the @include file= is done at compile time, and Srini is correct, only the top 
level jsp pages get time checked, not the included ones.

  -Original Message-From: Filip Hanik 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 06, 2001 7:49 
  PMTo: [EMAIL PROTECTED]Subject: Re: Include 
  file in Jsp -recompile issue
  Isn't the include a statement that gets executed 
  during runtime.so if a sub page is changed, there is no need to recompile the 
  main page. because the include will be dynamically executed.
  
  Filip
  
  ~Namaste - I bow to the divine in 
  you~Filip HanikSoftware Architect[EMAIL PROTECTED]www.filip.net
  
- Original Message - 
From: 
Srinivas Kurella 
To: '[EMAIL PROTECTED]' 

Sent: Tuesday, February 06, 2001 4:38 
PM
Subject: Include file in Jsp -recompile 
issue

I have Jsp files which include other jsps. If the included jsp is changed Tomcat doesn't recompile the main 
jsp unless i go and touch the main jsp file. 
Is this a bug or is this configurable or am i just wrong 
?? 
Srini 


Success at last - Tomcat+Apache+mod_ssl

2001-02-03 Thread guyr



I finally got tomcat 
to serve up the proper web pages with mod_ssl in the picture. For those 
who may not remember, here is what I was attempting to 
accomplish:Tomcat and Apache sharing the same document root: 
/apache/htdocs/pub for http, and /apache/htdocs/secure for https. The 
problem seemed to boil down to the fact that the "" context could only be 
established once for an IP address, irrespective of which ports the requests 
came in on. So while HTML pages were correctly served up from the 
appropriate directory from Apache, tomcat would only let me establish one "" 
context and thus only one docBase, with the result that when I asked for a 
secure page like https://www/myserver.com/jsptest.jsp, 
tomcat would give me the page out of the pub directory, not out of the secure 
one.

My solution to this 
problem was to use two copies of Tomcat, once with a docBase of 
/apache/htdocs/pub using ajp12, and the other with a docBase of 
/apache/htdocs/secure using the ajp13 connector. Because I have two 
instances of tomcat running, I had to modify one of them to put ajp12 on a 
non-default port; I moved it from 8007 to 8008. I also couldn't include 
the default workers.properties file, but had to handcraft 
one.

But it is finally 
working. Craig, you might want to consider allowing tomcat to be started 
with specified server.xml and workers.properties files. As it is, I had to 
install tomcat twice.

Guy Rouillier
571-226-1229
[EMAIL PROTECTED]
Domino Networks
2950 Gallows Road
Falls Church, VA 22042



Different ports for ajp in workers.properties and server.xml

2001-02-01 Thread guyr



I'm experimenting 
with the ajp12 and ajp13 connectors. There is a port setting for each of 
these in both workers.properties and server.xml. What does it mean if I 
assign one port to (e.g.) ajp12 in workers.properties but give the ajp12 
connector a different port number in server.xml?

Guy Rouillier
571-226-1229
[EMAIL PROTECTED]
Domino Networks
2950 Gallows Road
Falls Church, VA 22042



RE: Parsing text to date - Urgent

2001-01-22 Thread guyr

Look in the JDBC API reference.  The message you are receiving means exactly
what it says: there is no constructor for class java.sql.Date that takes a
String for a parameter.  You'll need to use one of the available
constructors.  Probably the easiest is to parse your String into three
integers representing day, month and year.

-Original Message-
From: Venkata Ratnam Vadlamannati [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 20, 2001 8:19 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Parsing text to date - Urgent


Dear All

I am taking date from an HTML form in 01/01/2001
format and take read this in a jsp page as
request.getParameter("date")

I try to put this in my MSSQL Server 7 table (table
column is date with 8 characters width - default) with
a prepared statement, it gives the following error:

***
Error: 500
Location:/tests/test2.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile
class for
JSPD:\tomcat\work\localhost_8080%2Ftests\_0002ftest_00032_0002ejsptest2_jsp_
3.java:194:
Incompatible type for method. Can't convert
java.lang.String to java.sql.Date.

ps.setDate(2,request.getParameter("publishdate"));
 

^
D:\tomcat\work\localhost_8080%2Ftests\_0002ftest_00032_0002ejsptest2_jsp_3.j
ava:195:
Incompatible type for method. Can't convert
java.lang.String to java.sql.Date.

ps.setDate(3,request.getParameter("archivedate"));
 

^
2 errors

at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:453)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:424)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
at
org.apache.tomcat.core.Handler.service(Handler.java:263)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:74
9)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

***

Can anybody suggest me as how do I put this into my
table

Thanks in advance

Venkat
mail to: [EMAIL PROTECTED]



__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

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

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




RE: How to integrate tomcat with apache?

2001-01-22 Thread guyr



Look 
in the docs directory in your tomcat directory. There are several HOWTO's 
explaining how to integrate Tomcat with Apache.

  -Original Message-From: Shantanu Joshi 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, January 20, 2001 
  10:01 AMTo: [EMAIL PROTECTED]Subject: How 
  to integrate tomcat with apache?
  I was using apache 1.3 web server,but the FAQ 
  suggests that it doesnot have java support.Hence i downloaded the Tomcat 
  product. But i'm not too sure how to use it i.e should it be integrated with 
  Apache or can it be used asa standalone server supporting 
  Java.
  An urgent reply will be highly 
  appreciated
  
  Regards
  Shantanu 



Trouble configuring Tomcat/Apache for SSL

2001-01-19 Thread guyr



I'm using the OpenSA 
Apache on Windows NT (because I can't get the version of Apache+mod_ssl that I 
built to work.) I have the following entries in 
httpd.conf:

DocumentRoot 
"C:/Apache/htdocs/pub"
VirtualHost 
_default_:443

# General 
setup for the virtual hostDocumentRoot 
"C:/Apache/htdocs/secure"ServerName eurovanServerAdmin [EMAIL PROTECTED]ErrorLog 
logs/ssl/error.logTransferLog logs/ssl/access.log

I put a dummy 
index.html into both of the above directories, and I can see the right ones on 
the corresponding port, so it looks like Apache is working properly. How, 
I also put a dummy jsp in both of the above directories, and the one in the pub 
directory shows up for http. However, for https, I'm not getting the one 
in secure, but instead I'm seeing the one in pub again. Here is my entry 
in server.xml:

 Context 
path="" 
docBase="c:/Apache/htdocs/pub" 
crossContext="false" 
debug="0" 
reloadable="true"  
/Context

 
Host name="_default_:443" 
 Context 
path="" 
docBase="c:/apache/htdocs/secure" 
/ What am I doing 
wrong?
Guy Rouillier
571-226-1229
[EMAIL PROTECTED]
Domino Networks
2950 Gallows Road
Falls Church, VA 22042



RE: Tomcat with Netscape Web Server 4.1 SP5

2001-01-05 Thread guyr



I used 
iPlanet web server 4.1 steadily up until this past December. It definitely 
can handle jsp:useBean all by itself. You don't need Tomcat to provide 
iPlanet 4.1 this functionality.

  -Original Message-From: Gino Condori 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, January 05, 2001 6:00 
  PMTo: [EMAIL PROTECTED]Subject: Tomcat with 
  Netscape Web Server 4.1 SP5
  
  HiJakarta-TomCat Developers 
  !!
  
   
  I 'm a web engineer and I trying Netscape Web Server 4.1 SP5 with 
  Jakarta-Tomcat, but I don't know how configure it.
  
   
  Please, you can say me how I can ?, because IPlanet is using a jsp compiler 
  from Tomcat 3.0 and I need upgrade it.
  Because, I want to use JavaBeans with 
  JSP (jsp:usebean )
  
  
   Thank you 
  very much and response me sooner..
  
   
  Chao...
  
  Gino E. Condori CastilloIngeniero de Software WebNovared 
  S.A.Fono : 
  2033131 - Anexo : 149 
  


RE: EJBs

2001-01-03 Thread guyr
Title: Message



Look 
at jboss and openejb (just type those words in your browser address bar - the 
search engine will find the appropriate sites.)

  -Original Message-From: Christopher Benson 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 02, 2001 9:27 
  PMTo: [EMAIL PROTECTED]Subject: 
  EJBs
  Does anyone know 
  if there are there any plans to expand Tomcat to be an EJB container as well 
  as a JSP/Servlet/JavaBean container. If not, does Apache or any other 
  reputable open source organization have an open source EJB container that 
  would work well in tandem with Tomcat? I'm not looking for a commercial 
  EJB container. Is there an open source EJB reference implementation 
  available?
  
  Thanks,
  Christopher
  


RE: Accessing a local webserver with IE 5.5

2001-01-03 Thread guyr

Buried somewhere in your network settings (I'm in front of an NT box at the
moment) is an indicator of when Win2K should try to connect to a network.
Your's is currently set to "always connect".  Find that setting and change
it to "never connect".  Then you won't be prompted to connect.

-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 5:42 AM
To: Tomcat-User
Subject: Accessing a local webserver with IE 5.5


Hi.

I've set up Tomcat at home on a computer not connected to the Internet.
It's running Win 2000 Pro.

The problem is that when I try to access my locally running webserver I
always get the prompt about if I want to connect to the internet or stay
offline.  If I select to stay offline I receive a notification that the
page is not available for offline viewing.  There must be a way so I'm
asking you... has anybody had (and fixed) that problem?

Kind regards,
Stefan Freyr


Stefan Freyr Stefansson
Software Developer
deCODE Genetics, Inc.
http://www.decode.com

Phone: (+354) 570 2854
GSM:   (+354) 861 1718
Fax:   (+354) 491 3782
 Stefan Stefansson.vcf 

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




mod_jk, Apache=html, Tomcat=jsp, servlets

2001-01-02 Thread guyr



I asked this 
question previously and received no working solutions. Is it possible to 
configure Apache and Tomcat, using mod_jk, such that 

(1) both Apache and 
Tomcat use the same document root
(2) jsp and html 
files are mixed together in a single directory (e.g., 
mycompany/html)
(3) Apache serves 
the html and image files
(4) Tomcat serves 
only jsp and servlets?

Thanks. 
Existing documentation explains how to do this with mod_jserv but not with 
mod_jk.
Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042



RE: How to password-protect a servlet?

2000-12-19 Thread guyr

I posted an answer to this question about 2 weeks ago.  I found that if you
put the Tomcat directory for a particular context inside the Apache document
path, Apache will then pop up the logon dialog for pages destined for
Tomcat.

-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 10:44 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: How to password-protect a servlet?


Hello:

I am using Apache 1.3.12 with Tomcat 3.1 and I wanted to 
password protect a servlet running on Tomcat with the 
Apache password mechanism.

In my httpd.conf file, I placed the following lines:
LocationMatch /videosearch/servlet/AdminServlet
AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user
/LocationMatch

But, it did not ask me for a password. But, if I change the location
match to:
LocationMatch /test
AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user
/LocationMatch

(The only thing I changed is the location to a directory called
test)

Everything works fine in this case.

Is Tomcat intercepting the URL before apache has a chance to
check if it needs to ask for a password?

Is there a way to use Apache's authentication for URLs that
point to Tomcat?

If not, does Tomcat have authentication capabilities?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases





RE: Deny web-inf access (security problem)

2000-12-19 Thread guyr

Set up a directory outside your tomcat directory to contain java class
files, and include that directory in your classpath.  Keep it outside of
your Apache directory as well.

-Original Message-
From: Paul Gonin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 2:02 PM
To: [EMAIL PROTECTED]
Subject: Deny web-inf access (security problem)


Hi, 

I have a JSP that uses a bean. It uses the following directory structure :
webapps/myapply/myapply.jsp
webapps/myapply/web-inf/classes/mybean.class

It works fine but I am annoyed that people can download the bean directly
and "access" its content because it contains critical information
(passwords). 

How do I protect my bean and more generraly I'd like to protect the whole
web-inf directory (if it's possible)

Note : I'm using Tomcat standalone.

Thanks 



Setting up Apache/Tomcat for SSL

2000-12-14 Thread guyr



Yes, I'm reading 
furiously on the appropriate sites. My question is about 
configuration. I read that to run both a secure server and non-secure 
server on the same instance of Apache, one of them must be virtual. The 
example given is for secure to be the non-virtual server, and it shows a server 
name of www.something.com; non-secure is 
virtual with a server name of something like pub.something.com. However, 
the typical way of doing this is to have them both with a server name of www.something.com, with secure accessed 
through https on port 443 and non-secure through http on port 80. Can this 
be done? I'm trying to use mod_ssl.

Also, could the kind 
person who provided a link to a pre-built mod_ssl enabled Apache please repost 
it? I tried searching the digest site, and found that the search mechanism 
is broken. Thanks. (Our production environment is Solaris, 
development is Windows NT/2000).
Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042



RE: webapp directory

2000-12-13 Thread guyr
Title: RE: webapp directory





I don't know how to remap the Tomcat document root. But to remap a single context, do this:


 Context path=/domino
 docBase=c:/Apache/htdocs/domino
 crossContext=false
 debug=0
 reloadable=true 
 /Context


-Original Message-
From: Ralph Jensen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 5:28 AM
To: [EMAIL PROTECTED]
Subject: webapp directory



I try to configure Tomcat so that it uses a webapp directory other than
TOMCAT_HOME/webapps (in addition to that one), but can't figure out how.
The sample application webapps/examples works. I then copied the entire
webapps directory somewhere else and now would like to access it by
clicking on a link just like the sample.


I tried a lot of things using Alias and ApJServMount and also modified
server.xml, but didn't get anywhere.


What do I have to do in order to use /my/other/directory/webapps in the
same way as TOMCAT_HOME/webapps?





RE: Sessions and absolute URLs

2000-12-13 Thread guyr
Title: RE: Sessions and absolute URLs





A bean is just java code with some conventions. You can definitely access a bean from a servlet. A JSP gets compiled into a servlet.

-Original Message-
From: Sen, Puny [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 1:02 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Sessions and absolute URLs



OK - I'll try that. Excuse the lack of knowledge,
but is it possible to access a bean from a servlet
(not a jsp)?


 -Original Message-
 From: Michael Quinn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:40 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Sessions and absolute URLs
 
 
 One way you can maintain the session is to create a java 
 bean, and make it's
 scope the session.
 Then depending on your hardware, you should be able to maintain a 1.1
 connection and retain session information.
 
 -Original Message-
 From: Sen, Puny [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 12, 2000 9:20 AM
 To: [EMAIL PROTECTED]
 Subject: Sessions and absolute URLs
 
 
 Hi,
 
 I've just recently joined the list so forgive me if this
 topic has been discussed before.
 
 I've been having the following experiences with sessions:
 
 Links with absolute URLs do not retain the same session
 (even if they refer to the same webapp). Relative URLs are
 fine.
 
 So if I have a link to a secure page from a non-secure page, then
 I lose the session, beause I have to specify https: in the
 link.
 
 But this only happens on certain browsers. For example,
 Internet Explorer 5 on Windows NT 4 works fine, but
 Netscape 4.7 on Windows NT 4 does not.
 
 Can this problem be solved through URL rewriting
 (by wrapping the link in encodeURL()?
 
 Thanks,
 Puna
 
 
 
 





RE: webapp directory

2000-12-13 Thread guyr
Title: RE: webapp directory



Yes. I 
put up a question last week asking how to get Apache to serve static stuff while 
just forwarding jsp and servlet requests to Tomcat. This is 
well-documented for for mod-jserv, but not at all for mod_jk. 
Unfortunately, I received no responses. If you are using mod-jserv, see 
the Tomcat HOWTO for instructions on getting Apache to handle static content and 
Tomcat the JSPs and servlets.

  -Original Message-From: Frank Morton 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 13, 
  2000 2:43 PMTo: [EMAIL PROTECTED]Subject: 
  Re: webapp directory
  Does doing this mean that static html files are 
  served through tomcat,
  so it will be a slow way to serve those 
  files?
  
I don't know how to remap the Tomcat document root. 
But to remap a single context, do this: 
 Context 
path="/domino"  
docBase="c:/Apache/htdocs/domino"  
crossContext="false"  
debug="0"  
reloadable="true"   /Context 

-Original Message- From: 
Ralph Jensen [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, December 13, 2000 5:28 AM To: [EMAIL PROTECTED] Subject: 
webapp directory 
I try to configure Tomcat so that it uses a webapp directory 
other than TOMCAT_HOME/webapps (in addition to that 
one), but can't figure out how. The sample 
application webapps/examples works. I then copied the entire 
webapps directory somewhere else and now would like to 
access it by clicking on a link just like the 
sample. 
I tried a lot of things using Alias and ApJServMount and 
also modified server.xml, but didn't get 
anywhere. 
What do I have to do in order to use 
/my/other/directory/webapps in the same way as 
TOMCAT_HOME/webapps? 


RE: webapp directory

2000-12-13 Thread guyr

Dave, thanks for the pointers.  However,

(1) I would be more confused than ever gr.  My workers.properties file is
totally erroneous.  It has

workers.tomcat_home=c:\jakarta-tomcat
workers.java_home=c:\jdk1.2.2

both of which are wrong.  But Tomcat is successfully serving both JSPs and
servlets.  How can this be?

(2) The howto would not address the original question: how to change the
Tomcat document root.

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 3:12 PM
To: [EMAIL PROTECTED]
Subject: RE: webapp directory


 This is well-documented for for mod-jserv, but not at all for mod_jk.

Again, I'd shoot for the "Working with mod_jk" document
(http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html)
where I would find the section called "Configuring Apache to use mod_jk"
(http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html#s
6)
whereupon I should receive enlightenment.

(Note that the mod_jk.conf-auto file makes things much easier.)

Dave



RE: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk

2000-12-11 Thread guyr

Note that with mod_jk, you have to start Tomcat first, then Apache.  If you
followed the directions in the howto, you'll see that you include in
httpd.conf a file that is not present until Tomcat is running.

-Original Message-
From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 1:37 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat 3.2 + Apache 1.3.14 + Windows NT 4 + mod_jk


Hi all,
 
I know this has probably been addressed before, but I can't find
documentation on this anywhere, I checked the list archive, I've looked in
the documentation, I've checked the readmes and I've looked at the mod_jk
documentation very closely.  I can get Tomcat up and running just fine as a
standalone.  I can get it running with apache when I use the mod_jserv
module.  When I try to get Tomcat running with Apache using mod_jk, apache
won't start and I can't find errors in any of the log files.  I'm sure
someone has run into this problem at some point and I would appreciate a
little light to be shed on this situation.
 
Thanks in advance,
Rey

-Original Message-
From: Duane Morse [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Error Messages


I think you can get errors of this type if the user clicks the STOP button
on the browser before the
response is completely transmitted (or, equivalently, when the user closes
the browser prematurely).
 

Duane Morse, Eldorado Computing Inc., Phoenix AZ 

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages



I am running tomcat 3.2 on windows NT workstation 

I am getting the below messages 

2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null)
Connection aborted by peer: socket write error 

Anybody encountered this problem? 

Thanks, 
Jayesh 



Using Apache user authentication for pages served by Tomcat

2000-12-08 Thread guyr

Someone else said they could not get authentication directives defined to
Apache to work for pages redirected to Tomcat.  I encountered the same
problem, but have found a workaround.  If you update your server.xml file so
that the document root used by Tomcat for a particular context is in the
Apache document directory, it seems to work.  An example may clarify.
On Windows, I have Tomcat in c:\jakarta-tomcat-3.2 and Apache in c:\Apache.
Apache's document root is c:\apache\htdocs.  I originally had Tomcat context
"domino" with a docbase of "webapps/domino", and the following Directory
directive in httpd.conf:

Directory c:/jakarta-tomcat-3.2/webapps/domino

Going to a file in the domino context did not prompt for a userid/password.

I then updated Tomcat's server.xml to use a docbase of
c:\apache\htdocs\domino (and of course moved the files there) and changed
Apaches httpd.conf with the following Directory directive:

Directory c:/apache/htdocs/domino

Now, when I try to get a file from http://myserver/domino, I get the popup
dialog to enter a userid and password.



RE: mod_jk and Apache on Windows NT

2000-12-07 Thread guyr

Here is the ** only ** line I've added to httpd.conf:

include /jakarta-tomcat-3.2/conf/mod_jk.conf-auto

Then I put the mod_jk.dll in /apache/modules, started tomcat then started
apache.  You shouldn't need to manually add any LoadModule directives or
anything else.  You may eventually have to define contexts in
tomcat/conf/server.xml, but not just to get started.  See guidelines for
getting started in tomcat/doc/tomcat-apache-howto.html.

-Original Message-
From: Hernandez, Rey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 5:27 PM
To: '[EMAIL PROTECTED]'
Subject: mod_jk and Apache on Windows NT


Hi all,
 
I realize there have been similar posts, but I cannot find an answer
that can help me.  I have Tomcat 3.2 that works just fine by itself but I
want to use Apache as the web server.  It is all on an NT box.  When I put
the required LoadModule directive for the mod_jk.dll module and supporting
JK* directives in the httpd.conf file and restart Apache, Apache will not
restart.  If I take out the LoadModule directive Apache starts up just fine
(no surprise there).  What I am wondering is, has anyone run into this
problem?  Is there a way to ensure that my workers.properties file is
correct?  Is there a way to see if the dll is functioning correctly?
 
Thanks for any help,
Rey



Using one directory structure with mod_jk

2000-12-05 Thread guyr



The Tomcat User's 
Guide has an example of usinga single directory structure for both Apache 
and Tomcat with ApacheModuleJServ. I'd like to accomplish the same thing 
with mod_jk. To be explicit, I'd like to specify a document directory (or 
root) of, say, /webdocs. Underneath that I would have /html and 
/images. In the html directory I would have a mix of HTML and JSP. 
I'd like Apache to serve the images and html files, and Tomcat only the JSP 
pages. How can I accomplish this with mod_jk? I look at the online 
resources and didn't see anything obvious. Thanks.
Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042



Using one directory structure with mod_jk

2000-12-05 Thread guyr




The Tomcat User's 
Guide has an example of usinga single directory structure for both Apache 
and Tomcat with ApacheModuleJServ. I'd like to accomplish the same thing 
with mod_jk. To be explicit, I'd like to specify a document directory (or 
root) of, say, /webdocs. Underneath that I would have /html and 
/images. In the html directory I would have a mix of HTML and JSP. 
I'd like Apache to serve the images and html files, and Tomcat only the JSP 
pages. How can I accomplish this with mod_jk? I look at the online 
resources and didn't see anything obvious. Thanks.
Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042

Guy Rouillier571-226-1229[EMAIL PROTECTED]BroadBand Office2950 Gallows 
RoadFalls Church, VA 22042