Re: Configuring my own servlets on Tomcat4.0

2002-02-22 Thread Dmitry Nikelshpur

Kurt,

Try the following:

1) Define the context for your application in conf/server.xml  (eg. copy 
one of the .. blocks and change the names to fit 
your app).
2) Set up the web.xml in webapps/yourapp/WEB-INF (define a servlet and 
servlet-mapping for every servlet class in WEB-INF/classes).
*3) If you're running on Linux, make sure that /WEB-INF is all caps! 
 (Tomcat won't find the web.xml otherwise).

I believe this is all you need to have your servlets run successfully 
out of webapps/yourapp/   :-)

Dmitry

Kurt Kurniawan wrote:

>the same thing happened to me. I found out that you have to placed all your web 
>applications in Root directory. And have to put the servlets in Root/web-inf/classes 
>somehow. I can't just put my apps in webapps directory, even if i set the web.xml 
>files. Can not find a way to get around this yet. Anybody with clue plz post!
>
>Kurt
>
>*
>- NOTICE -
>The information transmitted is intended only for the person or entity 
>to which it is addressed and may contain confidential and/or privileged
>material.  Any review, retransmission, dissemination or other use of, 
>or taking of any action in reliance upon, this information by persons
>or entities other than the intended recipient is prohibited.  If you 
>have received this email in error, please notify the sender and delete
>the material from your computer.
>
>Internet communications are not secure.  You should scan this message 
>and any attachments for viruses.  Under no circumstances do we accept 
>liability for any loss or damage which may result from your receipt of 
>this message or any attachments.
>*
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>



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




Re: Checking with DB

2002-02-22 Thread David Slater

Not sure how this is Tomcat related other than it looks like you are 
working on a servlet, but what the hell:

Of course !rs.next() would work, as in return 'you are lucky', cause 
I'll bet it's null/empty.

Try System.out.println'ing the request params after getting them into 
the Strings, and construct the SQL command string and println it too 
before it gets used at the query line.  Then you can at least see a 
little what is going on internally.  Could be case, spaces, etc hosing 
you up here.  Never use request params without checking them for null or 
invalid values first.  And don't use *, specify the field names, it 
won't help here but is good practice.


Uma Maheswar wrote:
> Hi,
> Please help me with this. Please see the code below. It doesn't work, if I give the 
>correct id and password.But it works if I say (!rs.next()). The same type of 
>programme worked for me in case of other tables. Could any one pls help me solve this 
>problem.
> 
>String id = req.getParameter("userid");
>String pwd = req.getParameter("password");
>
>ServletOutputStream sos = res.getOutputStream();
>rs = st.executeQuery("select * from uma where userid='"+user+"' and 
>password='"+pwd+"' ");
>sos.println("");
> 
>if(rs.next())
>{
> 
> sos.println("you are lucky");   
> sos.println("");
>}
>else
>{
> sos.println("Get out of my site");
>}
>sos.println("");
>  
>   
>   }
>   catch(Exception e)
>   {
>e.printStackTrace();
>   }
>  }
> }
> 
> 
> 




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




Checking with DB

2002-02-22 Thread Uma Maheswar

Hi,
Please help me with this. Please see the code below. It doesn't work, if I give the 
correct id and password.But it works if I say (!rs.next()). The same type of programme 
worked for me in case of other tables. Could any one pls help me solve this problem.

   String id = req.getParameter("userid");
   String pwd = req.getParameter("password");
   
   ServletOutputStream sos = res.getOutputStream();
   rs = st.executeQuery("select * from uma where userid='"+user+"' and 
password='"+pwd+"' ");
   sos.println("");

   if(rs.next())
   {

sos.println("you are lucky");   
sos.println("");
   }
   else
   {
sos.println("Get out of my site");
   }
   sos.println("");
 
  
  }
  catch(Exception e)
  {
   e.printStackTrace();
  }
 }
}




addChild invalid argument

2002-02-22 Thread David Wynter

I have just copied a Turbine project i was working on
onto my notebook computer so I can work on it while
travelling. I set up CATALINA_HOME and JAVA_HOME
correctly. I have copied the whole thing to exactly
the same directory (c:\tdk is CATALINA_HOME).

This is the exception I get.

2002-02-23 03:52:03 StandardHost[localhost]: Deploying
web application at context path /rwtransform from URL
file:C:\tdk\webapps\rwtransform
2002-02-23 03:52:04 StandardHost[localhost]:
ContainerBase.addChild: start: 
LifecycleException:  start: : 
java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:596)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1136)

.


- Root Cause -
java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.addRepository(StandardClassLoader.java:361)
at
org.apache.catalina.loader.StandardLoader.start(StandardLoader.java:589)


I even tried to deploy as by building a WAR and
letting the servlet unpack it, same result. Both
server.xml and web.xml look OK.

any ideas?

Thanks

David


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




updating with

2002-02-22 Thread August Detlefsen

I realize that the spec says:

   If a request parameter has an empty or null value, the 
   corresponding bean property is not set. 

But, is there a way to make this work for updates when you actually
want to remove a value from the bean? 

Lets say I have a contact manager app and I want to delete a value from
a field (for example, my colleague no longer has a phone extension). I
delete the value from the form and submit to a page that uses:

   

Since the phone extension field is now empty or null, that new value
never gets passed to my bean. 

Does anyone have a way around this short of setting each property
individually? 

Thanks,
August

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




Update to "Working With the Jakarta NT Service"

2002-02-22 Thread McDermid, Robert

In this document it states:

"Notice for JDK 1.3 users: There is a  known problem in JDK 1.3 that affects
Java applications being run as Windows NT services. 
 The bug causes the service to terminate when the currently logged in user 
 logs out. The simplest way to work around this problem is to use JDK 1.2. 
 If your application requires JDK 1.3 features then you  may want to look 
into javaserv or JavaService . Users have reported success with both of
these packages but there may
 be others that work as well."

When I investigated the latest status of this bug, it turns out that a fix
has been provided by
Sun.  It's probably worth adding the following to the above paragraph:

"Starting with version 1.3.1 of the JDK, this problem can be solved by
specifying -Xrs on 
the java command line.  When using jk_nt_service, you can do this
by adding it in the 'wrapper.cmd_line' entry in the wrapper.properties
file."

-- Rob McDermid



Bad Packet error

2002-02-22 Thread Trehlen

I'm using:
Tomcat 4.0.2
IIS
jdk1.3.1_02
servlet 2.3

I've been trying to get my servlet to run for a few days now.  I've commented 
everything out of my code so that basically I'm just opening a URLConnection to the 
servlet from my applet and returning an Object that is just a string ("Hello").  Also, 
I've gone throught my settings a few times and haven't notice a problem with them.

The error I'm getting comes in the Tomcat window and says something about "Bad Packet 
at 18250" and then is followed by zero's.  This happens when my applet trys to access 
the servlet.

What is this error telling me?  Have I done something wrong in my code or do I have 
Tomcat or IIS configured correctly.

Thanks for your help



Log analysis tool for Tomcat?

2002-02-22 Thread Dr. Evil


Can someone recomend a tool that can analyze Tomcat's access log?  I
want to do the basic things like reverse-lookup all the IPs in the
log, see which domains are hitting me, and which pages they visit.
More advanced things like graphs of usage or storing the logs in a db
would be fine, too, but aren't necessary at this point.  I do have
Postgres on that machine so I could use it.

Any recomendations?

Thanks

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




mod_jk and URI's

2002-02-22 Thread Phil Shrimpton

Hi,

I have had a web app working fine with standalone Tomcat, but now I have 
added Apache and mod_jk into the mix, it can fine all the graphics files.

My directory structure is basically

/Index.jsp
/images/image1.gif
/images/image2.gif

If I copy the /images/ directory to the Apache document root, it all works.

What do I need to do to get Apache to serve the graphics files from the 
webapps directories?

Many thanks...

-- 
Linux 2.4.4-4GB
  8:56pm  up  72 Days,  2 users,  load average: 0.28, 0.23, 0.18

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




Need help with SSL Client Authorization

2002-02-22 Thread Michael Migdol

Hi all,

I know this is at least the third request I have seen regarding this topic.
Maybe we need more information in the Tomcat documentation?


I've been trying for a day now to get this to work without success.
Hopefully someone here can help.  I'm running Tomcat 4.0.2 in standalone
mode.  I have enabled SSL with the following configuration in my server.xml
:


  


This configuration works fine with secure="false" (i.e. no client
authentication)

First, I used keytool to add the tomcat alias to USER_HOME/.keystore.  Then,
I used OpenSSL (OpenSSL 0.9.6c 21)  to create a CA, and have added that CA
to the cacerts keystore (using -trustcacerts with keytool).  I then used the
local OpenSSL CA to request and then sign a user certificate.  

I am testing my server-side configuration in two ways that both fail. In
both cases, I have set javax.net.debug=ssl for the server.

1) Convert both the user and CA certificates to PKCS12, import them both
into Internet Explorer, and then attempt to go to
https://localhost:8443/index.html .  This gets me a "Page cannot be
displayed" error on the client side.  On the server side I get
"handshake-failed" messages.

2) Run a Java program that uses the user certificate to connect to TC.  This
program fails with an exception:
Exception in thread "main" javax.net.ssl.SSLHandshakeException: Couldn't
find trusted certificate .  On the server side i get "certificate_unknown"
error messages.

I'm more concerned with the second case, since this is closer to what we are
actually trying to do, although I need to get both scenarios working. Can
anyone summarize the criteria used by Tomcat+SSL to determine that the
certificate passed over was "unknown"?  What exactly is the role of the
self-signed Tomcat alias certificate that is required?

Thanks in advance,
Michael




Michael Migdol
Senior Staff SW Engineer
1380 Bordeaux Drive
Sunnyvale, CA 94089
work 408-907-6265
cell  408-375-8001

Supercharge your telephone! -- write your VoiceXML
application for free at http://cafe.bevocal.com
BeVocal Cafe - Rated #1 VoiceXML development environment and
voice hosting service by CT Labs!




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




Re: [Mac OS X] /examples not working

2002-02-22 Thread Ken Martin

On Friday, February 22, 2002, at 05:12 PM, Ken Martin wrote:

> I have gone through the list archives and can't find a solution 
> (though this could certainly be my fault)...
>
> I have installed Tomcat 4.0.1 but I can't get the /examples to 
> work. I did try decompressing the .tar using Stuffit, tar in 
> Terminal, and I tried the .zip.
>
> I tried to follow the instructions at the Apple site (and I 
> think I succeeded in following the instructions), but no 
> /examples. I also tried to set it up for Apache and get the 
> same error as I get at :8080.

Oh! I forgot. No errors in catalina.out or catalina_log. This 
error is from localhost_examples_log:

*
2002-02-02 16:54:42 StandardContext[/examples]: Exception 
starting filter Set Character Encoding
java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1307)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1156)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter
(ApplicationFilterConfig.java:252)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef
(ApplicationFilterConfig.java:314)
at 
org.apache.catalina.core.ApplicationFilterConfig.
(ApplicationFilterConfig.java:120)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:
3065)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3371)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
*

Ken Martin


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




[Mac OS X] /examples not working

2002-02-22 Thread Ken Martin

I have gone through the list archives and can't find a solution 
(though this could certainly be my fault)...

I have installed Tomcat 4.0.1 but I can't get the /examples to 
work. I did try decompressing the .tar using Stuffit, tar in 
Terminal, and I tried the .zip.

I tried to follow the instructions at the Apple site (and I 
think I succeeded in following the instructions), but no 
/examples. I also tried to set it up for Apache and get the same 
error as I get at :8080.

Thanks for any help/advice,

Ken Martin


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




Re: Re: Using JNDIRealm with password digesting and Netscape Directory Structure

2002-02-22 Thread Jonathan Eric Miller

The last I heard, it was on the to do list. The current setup is pretty much
unusable. i.e. no TLS/SSL and you have to either store a clear-text password
in the directory or as a hex string which a directory wouldn't normally do.
i.e. normally, it would store it as a base64 encoded string as you listed
below.

Jon

- Original Message -
From: "jay n gaba" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 18, 2002 2:34 AM
Subject: Re: Re: Using JNDIRealm with password digesting and Netscape
Directory Structure


>
> hi
>
> Has the bind style authentication been implemented?? has anyone tried it??
>
> How does it work? I mean when I authenticate using bind style why is the
password ignored? I will seach on the web but would appreciate if someone
gives me a pointer.
>
> Thanks&Regards
> jay
>
> On Sat, 16 Feb 2002 Jonathan Eric Miller wrote :
> > How about bind-style authentication to the directory?
> > Is that on the todo
> > list? If you implement that, you no longer need to
> > worry about supporting
> > all the varying password formats.
> >
> > Jon
> >
> > - Original Message -
> > From: "jay n gaba" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, February 15, 2002 12:47 PM
> > Subject: Using JNDIRealm with password digesting and
> > Netscape Directory
> > Structure
> >
> >
> > >
> > > Hi
> > > Has anyone solved the following problem regarding the
> > digest password
> > >
> > > please give me some hint;
> > >
> > > thanks
> > >
> > > regards
> > > jay
> > >
> > > Hi,
> > > >
> > > > I'm trying to use tomcat's JNDIRealm with OpenLDAP.
> > I've
> > > converted my
> > > > passwords to digest format in the LDAP directory
> > instead of
> > > plain text.
> > > >
> > > > Apparently, tomcat only excepts only hex formatted
> > password
> > > where openLDAP
> > > > provides passwords of the format
> > > > {crypt}X where crypt = { SHA, MD, ... } and XXX
> > is a base64
> > > encoded
> > > > integer.
> > > >
> > > > Is there a way to configure tomcat to accept this
> > format of
> > > passwords? If
> > > > so does this require any recompilation of
> > > > tomcat?
> > > >
> > >
> > > Supporting passwords in this format (with the leading
> > {foo} prefix)
> > > is
> > > high on my TODO list of enhancements for JNDIRealm --
> > along with
> > > other
> > > improvements -- but it hasn't been done yet.
> > >
> > > > Thanks for your help,
> > > > --  Dirk
> > > >
> > >
> > >
> > >
> > > --
> > > To unsubscribe:    > rta.apache.org>
> > > For additional commands:  > rta.apache.org>
> > > Troubles with the list:  > rta.apache.org>
> > >
> >
> subscribe:    > a.apache.org>
> > For additional commands:  > a.apache.org>
> > Troubles with the list:  > a.apache.org>
> >
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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




Bug in the Bug Database?

2002-02-22 Thread Jonathan Eric Miller

There seems to be a bug in the Bug Database as it appears to be down right
now.

http://nagoya.apache.org/bugzilla/

Jon



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




Tomcat 4.0.2 - MySQL Connection Pooling

2002-02-22 Thread Ross Fujii

Hello,

I'm trying to setup JNDI connection pooling in Tomcat 4.0.2
to a MySQL (v3.23.49) database.  I'm also running an Apache
1.3.20 AJP13 connector (using mod_jk) if that makes a difference
all on a RedHat Linux 7.2 server.

The following is a snippet of the JNDI resource creation
in server.xml:



  
  
userroot
   passwordaseraser

  driverClassName
  org.gjt.mm.mysql.Driver


  driverName
  jdbc:mysql://localhost/menagerie

  

The following is the corresponding web.xml:
   
   jdbc/TestDB
   javax.sql.DataSource
   Container
   

The sample code that I'm using in a servlet to grab the connection
is the following:
   //Get the pooled DB connection
   Context initCtx = new InitialContext();
   Context envCtx = (Context)initCtx.lookup("java:comp/env");
   DataSource ds = (DataSource)envCtx.lookup("jdbc/TestDB");

   //Connect to the DB data source and run a query
   

The exception that is being thrown is:

   javax.naming.NamingException: Cannot create resource instance

I was wondering if there is somemthing that I'm still missing???

Some other notes:
-- Have setup connection pooling to SQL 2000 DB on Windows 2000
   using Tomcat 4.0.2b1 with no problem.
-- Have coded a stand-alone application that works and is able
   to connect to MySQL and query the DB with no problems
-- Have upgraded to the latest MySQL 2.0.11 driver

Any help or advice would be greatly appreciated.
Thanks in advance,
--Ross


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: Directory browsing

2002-02-22 Thread rsequeira


The easiest would be to add an index.html. And add the "index.html" to the
 in the web.xml for that webapp.

(I don't know if you could do the below in Tomcat 3.3a. I know you can do
this in Tomcat 4.0.x)
Turn off directory browsing by adding this for the "default" servlet (see
web.xml in TOMCAT_HOME/conf/web.xml)

   listings
   false


RS





Erwin Ambrosch <[EMAIL PROTECTED]> on 02/22/2002 03:53:13 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Directory browsing

Hi,

can one say me how I can switch of directory browsing for TC 3.3a.
If I send a request http:/// I get the directory structure
of
the context (docBase) as the response.

Thanks in advance
Erwin

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









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




Directory browsing

2002-02-22 Thread Erwin Ambrosch

Hi,

can one say me how I can switch of directory browsing for TC 3.3a.
If I send a request http:/// I get the directory structure of 
the context (docBase) as the response.

Thanks in advance
Erwin

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




RE: classes visibility in the WEB-INF dir ----> SOLVED

2002-02-22 Thread Sampige, Srinivas

Hi Craig
 Craig,my apologies for not being clear . First of all, yes I agree, as you
say - " 99.9% of them being user error or misunderstanding". "The issue"
that I was talking about was migrating to 4.0 from 3.2 as was mentioned in
my email. I spent some time trouble shooting,digging around in the
documentation and discovered that I had to change my "web.xml". 

>answers quickly is to provide as much information as possible about the
>problems you are facing (as *many* people do on TOMCAT-USER):
OS : Windows 2000
App Server : Tomcat4.0
Problem Desc : Servlets that run on 3.2.1 do not run on 4.0. I have added
the context to my webapp in 4.0 in exactly the same manner that I have done
in 3.2.1. 

Erorr that I get :
HTTP Status 404 - /xmlToPdf/servlet/ConvertXmlServlet
The requested resource (/xmlToPdf/servlet/ConvertXmlServlet) is not
available. 
 

>can tell you if it's been addressed in the documentation.  I'm afraid that
>I cannot read your mind :-).
  Well what was in my mind was ...I was really frustrated that I had to
worry about configuration issues and going back all over again doing trouble
shooting.Should I concentrate on my application design/logic OR should
concentrate on numerous config issues which I had done before and had to do
again when I moved to 4.0 and probably will have to do when I move to higher
versions?? . What I was looking for was some kind of a  guide "migrating to
4.0" which would highlight the kind of problem I faced(is there such a guide
I don't know of?). Also, I personally don't fancy the idea of people
accessing config files directly. Some kind of interface(need not be be fancy
stuff but a simple tool) should be provided. Eventhough everyone of us
understands what a config file looks like and contains it is very easy to
make a mistake but difficult to trouble shoot when involved in a big project
and concentrating on the application logic and other details.(of course
Tomat developers would be able to track down and fix it faster :-) but what
about the rest of us ?). 

>If "this issue" means that you didn't know you have to match your
>directory structure under /WEB-INF/classes to the package hierarchy of
>your classes, that is fundamental Java programming -- amply covered in the
>many books and tutorials about the language itself.  A good place to start
>is .
>"bug reports" are really misunderstandings of how servlets work,
> or about what certain configuration settings mean).

Thanks for pointing me to the website. But, I have ample experience in
Java,servlets & a host od app servers (and of course packages othwerwise my
complex web app that I am working on wouldn't have worked in the first place
:-)). I guess I need more experience on posting a good email on the "mailing
list". I hope this and my previous email is/was taken in good spirit. I
wasn't looking at finding fault(which is the easiest thing to do :-)). It
was more like a frustrated ...hands in the air..help me ...kind of
...question.

thanks
Srinivas





-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:30 AM
To: Tomcat Users List
Subject: RE: classes visibility in the WEB-INF dir > SOLVED




On Fri, 22 Feb 2002, Sampige, Srinivas wrote:

> Date: Fri, 22 Feb 2002 10:04:10 -0800
> From: "Sampige, Srinivas" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: classes visibility in the WEB-INF dir > SOLVED
>
> Now more than one person has faced this problem. Please refer to my
posting
> titled "Configuring my own servlets on Tomcat4.0". Have the Tomcat
> developers addressed this issue in the documentation?(at least I couldn't
> find it...am I missing something?). This makes developement higly
> unproductive. For you reference this is what I posted earlier(for which I
> got replies) -

Which "this issue" are you speaking of?  If it's the fact that WEB-INF has
to be capitalized, that is documented in the Servlet Specification
(because it is common to all servlet containers, not just Tomcat):

  http://java.sun.com/products/servlet/download.html

In addition, any book or article or tutorial about building web
applications will certainly mention it.

If "this issue" means that you didn't know you have to match your
directory structure under /WEB-INF/classes to the package hierarchy of
your classes, that is fundamental Java programming -- amply covered in the
many books and tutorials about the language itself.  A good place to start
is .

If it's some other issue, then you'll have to tell me what it was before I
can tell you if it's been addressed in the documentation.  I'm afraid that
I cannot read your mind :-).

> 
> Hi
>  I downloaded Tomcat4.0 just now and insalled it. I am able to run the
> example servlets. When I try to create my own servlets OR w

servlet-mapping problem

2002-02-22 Thread Takeshi L Toyohara

howdy,

i am trying to just play around with tomcat and try to get some servlets
running.  I am having a problem getting the servlet-mapping to work in my
web.xml and am wondering if i can get you guys to help out.


here's my web.xml.  the servlet-mapping tag works only the way it is now (im
guessing b/c its actually only using the invoker servlet).  i cant change it
to anything else, such as /wars or /blah, etc. and get it to work.  any
ideas?

any info is much appreciated!

cheers
t




http://java.sun.com/dtd/web-app_2_3.dtd";>


WAR TEST
Testing WAR'ing files


warservlet
the hello dude servlet
wartest.HelloDudeServlet

 helloparam
 Hello Dude



  
warservlet
/servlet/warservlet
  




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




Re: Tool for validating web.xml ?

2002-02-22 Thread Renato

Thank you !

Can I it use on a comand-line style without a GUI ?


On Fri, 22 Feb 2002 16:36:02 -0500, Mark <[EMAIL PROTECTED]> escreveu :

> I've used CookTop which is free. It seems to work quite well and has lots
> of features.
> 
> http://www.xmlcooktop.com/
>  
> 
> At 06:18 PM 2/22/2002, you wrote:
> >Hi all,
> >
> >I have a bunch of users using Tomcat 3.3 and Catalina. I found that the 
> >biggest problem I have is that usually they mess up with their web.xml 
so 
> >their context stops working. Is there a tool to validate web.xml outside 
> >Tomcat ( so I can do some offline validation... that would be very 
> >nice... ) ??
> >
> >Thanks
> >Renato - Brazil.
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 
> 

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




Re: Tool for validating web.xml ?

2002-02-22 Thread Mark

I've used CookTop which is free. It seems to work quite well and has lots
of features.

http://www.xmlcooktop.com/
 

At 06:18 PM 2/22/2002, you wrote:
>Hi all,
>
>I have a bunch of users using Tomcat 3.3 and Catalina. I found that the 
>biggest problem I have is that usually they mess up with their web.xml so 
>their context stops working. Is there a tool to validate web.xml outside 
>Tomcat ( so I can do some offline validation... that would be very 
>nice... ) ??
>
>Thanks
>Renato - Brazil.
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>

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




Tomcat 4.0.2, IIS 5.0 and JBoss

2002-02-22 Thread Rodney Loos

I'm trying to use IIS as the front-end to a Tomcat/Jboss installation under
Windows 2000.

I'm using the latest isapi_redirector.dll, and the bundled download of
Tomcat with JBoss.  I have Tomcat/Jboss installed as:

jboss/
catalina/ -- all tomcat 4 stuff
jboss/ -- all jboss stuff

If I run just Tomcat/Jboss, using /jboss/jboss/bin/run_with_catalina.bat, I
can hit it OK as http://localhost:8080/jboss, and if I run just tomcat by
using /jboss/catalina/bin/startup, I can hit the Tomcat page fine via IIS by
http://localhost/examples/jsp/index.jsp.  But I can't hit the Tomcat/Jboss
combo via IIS -- it can't find the page, and the iis_redirect log shows:
...
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (362)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (383)]:
jk_uri_worker_map_t::uri_worker_map_open, rule map size is 4
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (332)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /examples=ajp13 was
added
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (308)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp13 was
added
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (332)]: Into
jk_uri_worker_map_t::uri_worker_map_open, exact rule /jboss=ajp13 was added
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (308)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /jboss/=ajp13 was added
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (395)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 4 rules
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (409)]:
jk_uri_worker_map_t::uri_worker_map_open, done
...
so it properly read my uriworkermap.properties, but then

...
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (657)]: HttpFilterProc
started
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (705)]: In HttpFilterProc
Virtual Host redirection of /localhost/jboss
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
URI '/localhost/jboss'
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (570)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (711)]: In HttpFilterProc
test Default redirection of /jboss
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
URI '/jboss'
[Fri Feb 22 15:26:16 2002]  [jk_uri_worker_map.c (478)]:
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 -> /jboss
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (721)]: HttpFilterProc
[/jboss] is a servlet url - should redirect to ajp13
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (784)]: HttpFilterProc check
if [/jboss] is points to the web-inf directory
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (824)]: HttpExtensionProc
started
[Fri Feb 22 15:26:16 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Fri Feb 22 15:26:16 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Fri Feb 22 15:26:16 2002]  [jk_isapi_plugin.c (860)]: HttpExtensionProc got
a worker for name ajp13
[Fri Feb 22 15:26:16 2002]  [jk_ajp_common.c (1352)]: Into
jk_worker_t::get_endpoint
[Fri Feb 22 15:26:16 2002]  [jk_ajp_common.c (1075)]: Into
jk_endpoint_t::service
[Fri Feb 22 15:26:16 2002]  [jk_ajp_common.c (280)]: Into
ajp_marshal_into_msgb
[Fri Feb 22 15:26:16 2002]  [jk_ajp_common.c (413)]: ajp_marshal_into_msgb -
Done
[Fri Feb 22 15:26:16 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Fri Feb 22 15:26:16 2002]  [jk_connect.c (123)]: jk_open_socket, try to
connect socket = 2396
[Fri Feb 22 15:26:17 2002]  [jk_connect.c (132)]: jk_open_socket, after
connect ret = -1
[Fri Feb 22 15:26:17 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Fri Feb 22 15:26:17 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Fri Feb 22 15:26:17 2002]  [jk_ajp_common.c (843)]: Error connecting to the
Tomcat process.
[Fri Feb 22 15:26:17 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0
[Fri Feb 22 15:26:17 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Fri Feb 22 15:26:17 2002]  [jk_connect.c (123)]: jk_open_socket, try to
connect socket = 2388
[Fri Feb 22 15:26:18 2002]  [jk_connect.c (132)]: jk_open_socket, after
connect ret = -1
[Fri Feb 22 15:26:18 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 61
[Fri Feb 22 15:26:18 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 61
[Fri Feb 22 15:26:18 2002]  [jk_ajp_common.c (843)]: Error connecting to the
Tomcat process.
[Fri Feb 22 15:26:18 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Fri Feb 22 15:26:18 2002] 

Tool for validating web.xml ?

2002-02-22 Thread Renato

Hi all,

I have a bunch of users using Tomcat 3.3 and Catalina. I found that the 
biggest problem I have is that usually they mess up with their web.xml so 
their context stops working. Is there a tool to validate web.xml outside 
Tomcat ( so I can do some offline validation... that would be very 
nice... ) ??

Thanks
Renato - Brazil.

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




Re: war files

2002-02-22 Thread chad kellerman


I thought if I was using the webapp module for virtual hosts it would execute as the 
user that the of the Virtual Host section where the webApp directive is???

For example:


User jak
Group jakartagrp
ServerName jakarta.domain.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
WebAppConnection conn warp jakarta.gotc.net:8015
WebAppDeploy webapps   conn/


  I would think any app executed under this user would have the users permissions??



  I must be looking at it wrong.

-chad



On Fri, 22 Feb 2002 14:39:41 -0500
Randy Layman <[EMAIL PROTECTED]> wrote:

> 
>   Is tomcat running at root?  (Hint, if your files are being unpacked
> as part of Tomcat's execution, then they are owned by the user running
> Tomcat.)
> 
>   Randy
> 
> 
> > -Original Message-
> > From: chad kellerman [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 3:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: war files
> > 
> > 
> > Good Day,
> >   I have virtual hosts configured for tomcat I ran into a 
> > problem testing out a war file.
> > 
> > Does anyone have any idea why a war file would unpack with 
> > the ownership of root when called from the web???
> > 
> > I am on a redhat 6.2 box with tomcat 4 and webapp.
> > 
> > Thanks,
> > Chad
> > 
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> > 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Tomcat failure to start

2002-02-22 Thread Dieter Lunn

Hi,

Tomcat doesn't want to start on my RedHat 7.1 system.  I get this error in my 
log:
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ 
-debug ] [ -nonaming ] { start | stop }

and catalina.sh is loading
org.apache.catalina.startup.Bootstrap

Can someone help please?  

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




Tomcat x Apache = Forbiden 403

2002-02-22 Thread Cleber Hostalácio de Melo

Hi,

I have conectiva linux 7.0 (kernel 2.4.5), apache 1.3.19 and
Tomacat 4.0.1

Tomcat are working well with the url:
  http://Myserv:tomcat_port/examples/jsp/index.html

But when I try to access this application from Apache with the
URL:

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


I receive the message in my browser:

Forbidden
You don't have permission to access /examples/jsp/index.html on this
server.

The corresponding entries in the Apache logs are:

httpd/logs/access.log:
  "GET /examples/jsp/index.html HTTP/1.0" 403 301

httpd/logs/error.log:
  [error] [client xxx.xxx.xxx.x] (2)No such file or directory: cannot
read directory for multi: /examples/jsp/

There is no entry in the Tomcat logs which looks like that Apache is not
even trying to
connect to Tomcat.

My configuration files are:

httpd.com

.
ServerName myServer
ServerType standalone
ServerRoot /etc/httpd
..
LoadModule 
LoadModule webapp_module libexec/mod_webapp-1.0-eapi.so
..
AddModule
AddModule mod_webapp.c
..
DocumentRoot "/home/myDocs"
..
WebAppConnection Tomcat_Apache warp localhost:8008
WebAppDeploy examples Tomcat_Apache /examples/


server.xml

.



  
  
   .
   


Anyone has any idea what could be the problem?

Thanks.




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




RE: war files

2002-02-22 Thread Randy Layman


Is tomcat running at root?  (Hint, if your files are being unpacked
as part of Tomcat's execution, then they are owned by the user running
Tomcat.)

Randy


> -Original Message-
> From: chad kellerman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:23 PM
> To: [EMAIL PROTECTED]
> Subject: war files
> 
> 
> Good Day,
>   I have virtual hosts configured for tomcat I ran into a 
> problem testing out a war file.
> 
> Does anyone have any idea why a war file would unpack with 
> the ownership of root when called from the web???
> 
> I am on a redhat 6.2 box with tomcat 4 and webapp.
> 
> Thanks,
> Chad
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




war files

2002-02-22 Thread chad kellerman

Good Day,
  I have virtual hosts configured for tomcat I ran into a problem testing out a war 
file.

Does anyone have any idea why a war file would unpack with the ownership of root when 
called from the web???

I am on a redhat 6.2 box with tomcat 4 and webapp.

Thanks,
Chad

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




Re: TC4 and cgi

2002-02-22 Thread Jared Nedzel

Paul:

That doesn't appear to me to be the case, given that TC 4
has a bunch of stuff in web.xml concerning CGIs.  For example
there are entries in web.xml like:


RE: Fumbling around Tomcat and Java and XML

2002-02-22 Thread Jim Urban

How about:

String xmlString = ...
InputSource xmlSource = new InputSource(new StringReader(xmlString));

Jim

> -Original Message-
> From: Mark Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 1:44 PM
> To: 'Tomcat Users List'
> Subject: RE: Fumbling around Tomcat and Java and XML
>
>
> If I already have the XML in a string how do I create an
> InputSource for the
> XMLReader to parse:
>
>   String xmlResults = getResults();
>   if( xmlResults == null )
> return;
>
>   XMLReader reader = XMLReaderFactory.createXMLReader(
> "org.apache.xerces.parsers.SAXParser" );
>   ReportFilterContentHandler handler = new ReportFilterContentHandler(
> filter );
>   reader.setContentHandler( handler );
>   InputSource source = new InputSource( xmlResults );
>   reader.parse( source );  // exception, File "report-title" not found.
>
>
> The documentation says:
>
>   The SAX parser will use the InputSource object
>   to determine how to read XML input. If there is
>   a character stream available, the parser will read
>   that stream directly; if not, the parser will use
>   a byte stream, if available; if neither a character
>   stream nor a byte stream is available, the parser
>   will attempt to open a URI connection to the resource
>   identified by the system identifier.
>
> It sounds as if you give in a String of xml data it will not
> attempt to try
> to interpret it as a URI but I guess that's not really the case?
>
> -Original Message-
> From: Jim Urban [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 2:59 PM
> To: Tomcat Users List
> Subject: RE: Fumbling around Tomcat and Java and XML
>
>
> Here is a hint to get you started...
>
> import org.w3c.dom.Attr;
> import org.w3c.dom.Document;
> import org.w3c.dom.Element;
> import org.w3c.dom.NamedNodeMap;
> import org.w3c.dom.Node;
> import org.w3c.dom.NodeList;
> import org.apache.xerces.parsers.DOMParser;
>
>
>   DOMParser parser = new DOMParser();
>   parser.parse("your.xml");
>   Document document = parser.getDocument();
>   NodeList elements =
> document.getElementsByTagName("your-element-tag");
>   int elementCount = elements.getLength();
>   for (int i = 0; i < elementCount; i++){
>   Element element = (Element) elements.item(i);
> ...
>
> > -Original Message-
> > From: Mark Johnson [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 21, 2002 2:18 PM
> > To: 'Tomcat User List (E-mail)'
> > Subject: Fumbling around Tomcat and Java and XML
> >
> >
> > ENV: Linux 2.4, tomcat-4.0.1, JDK1.3.1
> >
> > I have just inherited a servlet project that uses tomcat
> running on Linux.
> > I'm not a java programmer so I'm fumbling around trying to
> learn java and
> > tomcat and everything else that's involved simultaneously.
> >
> > I need to add the ability to parse an XML document but have not been
> > successful at getting to the right jar files.  What import
> directive do I
> > need to use in my servlet to get access to the DOM parsers
> > available in the
> > tomcat xerces.jar, or what environment settings do I need to check for
> > correctness.
> >
> > I tried "import javax.xml.*;" which said that I had no such
> javax.xml does
> > not exist, I tried "import org.w3c.dom.*;" and the same general
> error.  I
> > have been browsing the sun java site for a day now and can't figure out
> > where to download the javax XML stuff. I found the xerces xml
> files but it
> > complains about the w3c stuff.  I downloaded the w3c stuff but,
> > can't get it
> > to compile.  I'm striking out on all fronts. I noticed that
> tomcat already
> > has a xerces.jar but I don't know how to get to it or what my
> environment
> > variables should be setup as and if it's still going to
> complain about the
> > w3c stuff...
> >
> > Does the tomcat XML parsing stuff work out of the box or do I need to do
> > download more software.  From what I've read so far, Sun only
> provides an
> > interface which must be coupled to a specific vendor's
> implementation.  I
> > assume that is what xerces is -- the actual implementation based
> > on the Sun
> > interface.  But I don't know if everything is all there with a vanilla
> > installation of the jdk and tomcat. Is there a way to find out?
> >
> > Thanks for any direction you can give me here.  I can't see to find the
> > correct document to read so if you can send me a URL to the any
> documents
> > that tell me how to set this up that would be great. It can't be
> > this hard I
> > must be just not understanding something trivial...
> >
> > thanks for your time...
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> 

RE: Fumbling around Tomcat and Java and XML

2002-02-22 Thread Mark Johnson

If I already have the XML in a string how do I create an InputSource for the
XMLReader to parse:

  String xmlResults = getResults();
  if( xmlResults == null )
return;
 
  XMLReader reader = XMLReaderFactory.createXMLReader(
"org.apache.xerces.parsers.SAXParser" );
  ReportFilterContentHandler handler = new ReportFilterContentHandler(
filter );
  reader.setContentHandler( handler );
  InputSource source = new InputSource( xmlResults );
  reader.parse( source );  // exception, File "report-title" not found.


The documentation says:

The SAX parser will use the InputSource object 
to determine how to read XML input. If there is 
a character stream available, the parser will read 
that stream directly; if not, the parser will use 
a byte stream, if available; if neither a character 
stream nor a byte stream is available, the parser 
will attempt to open a URI connection to the resource 
identified by the system identifier.

It sounds as if you give in a String of xml data it will not attempt to try
to interpret it as a URI but I guess that's not really the case?

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 2:59 PM
To: Tomcat Users List
Subject: RE: Fumbling around Tomcat and Java and XML


Here is a hint to get you started...

import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.apache.xerces.parsers.DOMParser;


DOMParser parser = new DOMParser();
parser.parse("your.xml");
Document document = parser.getDocument();
NodeList elements =
document.getElementsByTagName("your-element-tag");
int elementCount = elements.getLength();
for (int i = 0; i < elementCount; i++){
Element element = (Element) elements.item(i);
...

> -Original Message-
> From: Mark Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 2:18 PM
> To: 'Tomcat User List (E-mail)'
> Subject: Fumbling around Tomcat and Java and XML
>
>
> ENV: Linux 2.4, tomcat-4.0.1, JDK1.3.1
>
> I have just inherited a servlet project that uses tomcat running on Linux.
> I'm not a java programmer so I'm fumbling around trying to learn java and
> tomcat and everything else that's involved simultaneously.
>
> I need to add the ability to parse an XML document but have not been
> successful at getting to the right jar files.  What import directive do I
> need to use in my servlet to get access to the DOM parsers
> available in the
> tomcat xerces.jar, or what environment settings do I need to check for
> correctness.
>
> I tried "import javax.xml.*;" which said that I had no such javax.xml does
> not exist, I tried "import org.w3c.dom.*;" and the same general error.  I
> have been browsing the sun java site for a day now and can't figure out
> where to download the javax XML stuff. I found the xerces xml files but it
> complains about the w3c stuff.  I downloaded the w3c stuff but,
> can't get it
> to compile.  I'm striking out on all fronts. I noticed that tomcat already
> has a xerces.jar but I don't know how to get to it or what my environment
> variables should be setup as and if it's still going to complain about the
> w3c stuff...
>
> Does the tomcat XML parsing stuff work out of the box or do I need to do
> download more software.  From what I've read so far, Sun only provides an
> interface which must be coupled to a specific vendor's implementation.  I
> assume that is what xerces is -- the actual implementation based
> on the Sun
> interface.  But I don't know if everything is all there with a vanilla
> installation of the jdk and tomcat. Is there a way to find out?
>
> Thanks for any direction you can give me here.  I can't see to find the
> correct document to read so if you can send me a URL to the any documents
> that tell me how to set this up that would be great. It can't be
> this hard I
> must be just not understanding something trivial...
>
> thanks for your time...
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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

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




JDBCRealm digest="MD5" returns NullPointerException

2002-02-22 Thread Knight, Digby

Hi everyone,

I've had the JDBCRealm working with some Access tables (using ODBC-JDBC
bridge) for some time, but today tried adding digest="MD5" or digest="SHA"
to the Realm element in server.xml, but I get a NullPointerException
whenever I submit the login form now.

I've searched this archive for clues but so far have drawn a blank.

Anyone have any ideas?

Many thanks.

Digby


The information in this e-mail and any attachments
(the 'e-mail') is confidential and intended solely for
the addressee(s) named above.  This e-mail may be 
subject to legal professional or other privilege or legal 
rules.  The unauthorised use, disclosure or copying 
of the e-mail is prohibited.  If you are not the intended
recipient, or a person responsible for delivering the 
e-mail to the intended recipient you must not disclose,
copy, distribute or retain this e-mail or any part of it.
This e-mail does not, directly or indirectly, represent
financial advice.

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




Re: oracle/TC4.0.2/linux

2002-02-22 Thread remy.menetrieux

yes,
but it's already done and it doesn't work ..
have you an other idea ??

Remy

Randy Layman wrote:

>   Because the Contexts are managed by Tomcat you need to put the
>classes12.jar into the CATALINA_HOME/lib/common directory (Tomcat needs to
>see them, lib/container might also work).
>
>   Randy
>
>>-Original Message-
>>From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, February 22, 2002 2:06 PM
>>To: Tomcat Users List
>>Subject: Re: oracle/TC4.0.2/linux
>>
>>
>>I have already rename classes12.zip in classes12.jar
>>I obtain : No suitable driver
>>this code works :
>> String url="jdbc:oracle:thin:@62.52.53.213:1521:db8ir3";
>> String password="jdev";
>> String user="jdev";
>> String driver = "oracle.jdbc.driver.OracleDriver";
>>   //Class.forName(driver).newInstance();<-- so the driver is in 
>>CLASSPATH
>>Connection conn = 
>>DriverManager.getConnection(url,user,password);
>>
>>
>>this no
>>try{
>>   Context envCtx = (Context) initCtx.lookup("java:comp/env");
>>System.out.println("2");
>>   DataSource ds = (DataSource)envCtx.lookup("jdbc/HelloDB");
>>System.out.println("DataSource="+ds );//DataSource=Enabled
>>   Connection conn = ds.getConnection();
>>}catch (Exception e) {
>>System.out.println("erreur"+e.getMessage() ); //No Suitable Driver
>>
>>Have you any idea ??
>>
>>P.S : The same configuaration and same code under WinNT works
>>
>>
>>Randy Layman wrote:
>>
>>> The most common problem is not renaming classesXXX.zip to
>>>classesXXX.jar.  (Tomcat doesn't automatically see ZIP 
>>>
>>files, but it does
>>
>>>JAR).
>>>
>>> Randy
>>>
-Original Message-
From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 1:00 PM
To: Tomcat Users List
Subject: oracle/TC4.0.2/linux


Has anybody succeeded in making this specific configuration 

>>working ?
>>
Has anybody can access to a database with a Datasource??
Could you send me you're configuration please...




--
To unsubscribe:   

>>
>>
For additional commands: 

>>
>>
Troubles with the list: 

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




RE: Strange javabean problem

2002-02-22 Thread Greg Trasuk

Hi folks:

Rich, you've put your finger directly on the problem by looking at
the generated code.  Your scriptlet's way of getting the title is to pull it
out of the local variable emp, whereas the getProperties version is using
the JSP's pageContext methods, which end up pulling it out of whatever scope
it was declared in (your useBean didn't declare a scope, so I think it
defaults to 'page' scope, but don't quote me on it).  The bean in the
pageContext is the empty bean that was created by the useBean tag, not the
populated bean that you're getting from the iterator.

Try inserting the following into your loop:
while(iter.hasNext()) {
 emp = (EmployeeBean)iter.next();
 pageContext.setAttribute("emp",emp);   <-- Insert this
line.
  
 %>

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

> -Original Message-
> From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
> Sent: February 22, 2002 12:15
> To: Tomcat Users List
> Subject: RE: Strange javabean problem
> 
> 
> Sorry about that.  I should have included how I declared the 
> bean.  The
>  tag is the 2nd line in the page, right after the
>  tag. The full tag reads:
> 
> 
> 
> I've traced through the servlet code and the bean's getters are being
> called even in the getProperty cases.  
> 
> In the generated servlet code the scriptlet's version of getting the
> title is:
> 
>   out.print( emp.getTitle() );
> 
> The getProperties version is:
>  
> out.print(JspRuntimeLibrary.toStringtest.EmployeeBean)page
> Context.fi
> ndAttribute("emp")).getTitle(;
> 
> - Rich
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 22, 2002 7:59 AM
> To: 'Tomcat Users List'
> Subject: RE: Strange javabean problem
> 
> 
> 
>   You are not creating a bean named emp for the jsp:getProperty.
> You need to use jsp:useBean first (I believe) or use
> <%=emp.getFirstName()%>.
> 
>   Randy
> 
> > -Original Message-
> > From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 11:39 AM
> > To: Tomcat Users List
> > Subject: RE: Strange javabean problem
> > 
> > 
> > I can't believe we're the only people who have ever seen 
> this problem.
> > 
> > I'm still having the problem but I got to the same place 
> differently.
> > 
> > I load the data from a data base in a servlet.  The servlet 
> reads from
> 
> > the database it creates a javabean for each record and adds it to a 
> > ListArray.  I then add the ArrayList to the request object 
> and forward
> 
> > on to my JSP.  It's this ArrayList that I'm iterating through in my 
> > JSP when I have the problem.
> > 
> > Again here is my code snippet that fails:
> > 
> > <%
> >   ArrayList la = (ArrayList) request.getAttribute("list");
> >   if ( la != null ) {
> > Iterator iter = la.iterator();
> > while(iter.hasNext()) {
> >   emp = (EmployeeBean)iter.next();
> > %>
> > <%= emp.getFirstName() %>
> > <%= emp.getLastName() %>
> > <%= emp.getTitle() %>
> > 
> > 
> > 
> > 
> >  />  <%
> > }
> >   }
> > %>
> > 
> > Could there be something wrong with the way we're defining our 
> > Javabeans?
> > 
> > Please folks.  A little help here.
> > 
> > Thanks in advance.
> > 
> > - Rich
> > 
> > -Original Message-
> > From: Michael J. McCormac [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 21, 2002 7:45 PM
> > To: [EMAIL PROTECTED]
> > Cc: Rich Sneiderman
> > Subject: RE: Strange javabean problem
> > 
> > 
> > > Hi Folks,
> > > 
> > > I'm using Tomcat 4.01 with Jbuilder 6.  I've got a 
> strange problem. 
> > > It seems that if I try to dump data from a Java bean using the 
> > >  tag I don't get the data.  However, if I
> > reference
> > > the value of the bean directly in a scriptlet it works fine.
> > 
> > greetings all,
> > 
> > i am having pretty much the same problem, but the 
> implementation is a 
> > little bit different.  i tried using an rmi process to retrieve the 
> > bean directly from the JSP like so:
> > 
> > 
> > <%
> > rmiInt rmiServer = (rmiInt)Naming.lookup( "//server/service" );
> > myBean = (MyClass)rmiServer.getBean();
> > %>
> >   <-
> > doesn't work!
> > 
> > one way i've managed to work around the problem was by creating and 
> > loading the beans in a servlet first, throwing the beans in the 
> > session object, then redirecting to the JSP file where i could pull 
> > them back out of the session like this:
> > 
> > 
> > <% session.getAttribute( "mybean" ); %>
> >  <- works ok!!
> > 
> > but i don't like this solution...  it's inelegant ;)
> > 
> > thanks,
> > mike
> > 
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> > 
> > --
> > T

RE: oracle/TC4.0.2/linux

2002-02-22 Thread Randy Layman


Because the Contexts are managed by Tomcat you need to put the
classes12.jar into the CATALINA_HOME/lib/common directory (Tomcat needs to
see them, lib/container might also work).

Randy

> -Original Message-
> From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 2:06 PM
> To: Tomcat Users List
> Subject: Re: oracle/TC4.0.2/linux
> 
> 
> I have already rename classes12.zip in classes12.jar
> I obtain : No suitable driver
> this code works :
>  String url="jdbc:oracle:thin:@62.52.53.213:1521:db8ir3";
>  String password="jdev";
>  String user="jdev";
>  String driver = "oracle.jdbc.driver.OracleDriver";
>//Class.forName(driver).newInstance();<-- so the driver is in 
> CLASSPATH
> Connection conn = 
> DriverManager.getConnection(url,user,password);
> 
> 
> this no
> try{
>Context envCtx = (Context) initCtx.lookup("java:comp/env");
> System.out.println("2");
>DataSource ds = (DataSource)envCtx.lookup("jdbc/HelloDB");
> System.out.println("DataSource="+ds );//DataSource=Enabled
>Connection conn = ds.getConnection();
> }catch (Exception e) {
> System.out.println("erreur"+e.getMessage() ); //No Suitable Driver
> 
> Have you any idea ??
> 
> P.S : The same configuaration and same code under WinNT works
> 
> 
> Randy Layman wrote:
> 
> > The most common problem is not renaming classesXXX.zip to
> >classesXXX.jar.  (Tomcat doesn't automatically see ZIP 
> files, but it does
> >JAR).
> >
> > Randy
> >
> >>-Original Message-
> >>From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> >>Sent: Friday, February 22, 2002 1:00 PM
> >>To: Tomcat Users List
> >>Subject: oracle/TC4.0.2/linux
> >>
> >>
> >>Has anybody succeeded in making this specific configuration 
> working ?
> >>Has anybody can access to a database with a Datasource??
> >>Could you send me you're configuration please...
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe:   
> 
> >>For additional commands: 
> 
> >>Troubles with the list: 
> 
> >>
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> >
> 
> 

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




Re: oracle/TC4.0.2/linux

2002-02-22 Thread remy.menetrieux

I have already rename classes12.zip in classes12.jar
I obtain : No suitable driver
this code works :
 String url="jdbc:oracle:thin:@62.52.53.213:1521:db8ir3";
 String password="jdev";
 String user="jdev";
 String driver = "oracle.jdbc.driver.OracleDriver";
   //Class.forName(driver).newInstance();<-- so the driver is in 
CLASSPATH
Connection conn = DriverManager.getConnection(url,user,password);


this no
try{
   Context envCtx = (Context) initCtx.lookup("java:comp/env");
System.out.println("2");
   DataSource ds = (DataSource)envCtx.lookup("jdbc/HelloDB");
System.out.println("DataSource="+ds );//DataSource=Enabled
   Connection conn = ds.getConnection();
}catch (Exception e) {
System.out.println("erreur"+e.getMessage() ); //No Suitable Driver

Have you any idea ??

P.S : The same configuaration and same code under WinNT works


Randy Layman wrote:

>   The most common problem is not renaming classesXXX.zip to
>classesXXX.jar.  (Tomcat doesn't automatically see ZIP files, but it does
>JAR).
>
>   Randy
>
>>-Original Message-
>>From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, February 22, 2002 1:00 PM
>>To: Tomcat Users List
>>Subject: oracle/TC4.0.2/linux
>>
>>
>>Has anybody succeeded in making this specific configuration working ?
>>Has anybody can access to a database with a Datasource??
>>Could you send me you're configuration please...
>>
>>
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>




Re: AW: J2EE 1.3 RI + Tomcat 4.0.1

2002-02-22 Thread Craig R. McClanahan



On Fri, 22 Feb 2002, Lauer, Oliver wrote:

> Date: Fri, 22 Feb 2002 10:47:00 +0100
> From: "Lauer, Oliver" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: AW: J2EE 1.3 RI + Tomcat 4.0.1
>
> Hi Craig,
>
> "the J2EE RI does not support this (access to EJBs from remote JVMs).
>  You'll need to use a different container."
>
> it does if you provide your own Context within TC.
>

Sounds like I owe the man a beer  :-).  You learn something every day.

Although I'm not sure that relying on internal implementation classes in
the RI (which could change) really qualifies as "supports" ...

> Oliver
>

Craig


> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> >
>
>
> -Ursprüngliche Nachricht-
> Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 1. Februar 2002 22:58
> An: Tomcat Users List
> Betreff: Re: J2EE 1.3 RI + Tomcat 4.0.1
>
>
>
>
> On Fri, 1 Feb 2002, Matthew wrote:
>
> > Date: Fri, 1 Feb 2002 13:55:50 +0100
> > From: Matthew <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re: J2EE 1.3 RI + Tomcat 4.0.1
> >
> > Hi Craig,
> >
> > That's the problem: I NEED separate instance of Tomcat. So I am repeating
> > the question once more:
> >
> > Were anyone succesfull in deploying EAR application on J2EE RI + Tomcat
> > combination. That means using RI as EJB container and Tomcat as Web
> > container? If so send detail spec here plz...
> >
>
> The J2EE RI does not support this (access to EJBs from remote JVMs).
> You'll need to use a different container.
>
> Craig
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
>nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
>auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
>unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
>Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
>den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
>vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, 
>sich mit dem Absender der E-Mail in Verbindung zu setzen.
> 
> For legal and security reasons the information provided in this e-mail is not 
>legally binding. Upon request we would be pleased to provide you with a legally 
>binding confirmation in written form. Any form of unauthorised use, publication, 
>reproduction, copying or disclosure of the content of this e-mail is not permitted. 
>This message is exclusively for the person addressed or their representative. If you 
>are not the intended recipient of this message and its contents, please notify the 
>sender immediately.
>
> ==
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




RE: Tomcat Servlet Setup (NEWBIE)

2002-02-22 Thread Mark Johnson

Does that mean that if I want to use the Xalan jar files that I originally
installed under /usr/java/xalan-j_2_3_1/bin/ that I need to copy the jar
files and put them under /usr/local/tomcat-4.0.1/common/lib?  

Can I create a directory under the lib, for example
(/usr/local/tomcat-4.0.1/common/lib/xalan), and copy them there? Will that
work?


-Original Message-
From: Anton Brazhnyk [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 9:42 AM
To: Tomcat Users List
Subject: RE: Tomcat Servlet Setup (NEWBIE)


Hi,

Tomcat4 doesn't use CLASSPATH to find libraries.
You have to put your classes12.jar either to
$CATALINA_HOME/common/lib or to WEB-INF/lib of
your web-application.
And one more thing it MUST be jar, so you have to
rename your classes12.zip to classes12.jar.

Anton


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




AW: catalina.policy

2002-02-22 Thread juraj Lenharcik

Hi,

I have tried something like 

grant codebase "file:${catalina.home}/webapps/auth/WEB-INF/lib/-" {

but it always comes this exception. The calling class is in the jar archive.



$ log4j:WARN Caught Exception while in Loader.getResource. This may be
innocuous
.
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 getClassLoader)
at
java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:270)
at
java.security.AccessController.checkPermission(AccessController.java:
401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.ClassLoader.getParent(ClassLoader.java:708)
at
org.apache.catalina.loader.WebappClassLoader.toString(WebappClassLoad
er.java:807)
at java.lang.String.valueOf(String.java:2173)
at java.lang.StringBuffer.append(StringBuffer.java:369)
at org.apache.log4j.helpers.Loader.getResource(Loader.java:78)
at org.apache.log4j.Category.(Category.java:138)
at di.config.startup.Log4jInit.(Log4jInit.java:35)
^^ 

juraj




-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 22. Februar 2002 19:21
An: Tomcat Users List
Betreff: Re: catalina.policy



Try running tomcat with
CATALINA_OPTS=-Djava.security.debug=access,failure

It should help pinpoint which class is trying to access the D:
\server\jakarta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf file

Thanks.
RS





juraj Lenharcik <[EMAIL PROTECTED]> on 02/22/2002 10:57:35 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat-User@Jakarta. Apache. Org (E-Mail)"
  <[EMAIL PROTECTED]>
cc:

Subject:  catalina.policy

Hello,

I run catalina (TC 4.0.2-b2) with the security manager. After starting I
get
a java.security.AccessControlException. I have extended the catalina.policy
with:

// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant {


   permission java.io.FilePermission
"${catalina.home}/webapps/auth/WEB-INF/log4j.lcf", "read,write";
   permission java.lang.RuntimePermission "getClassLoader";
...
};

then it runs fine. But when I say:

grant codebase "file:${catalina.home}/webapps/auth/WEB-INF/lib/DIAA.jar" {
   // for log4j things important
   permission java.io.FilePermission
"${catalina.home}/webapps/auth/WEB-INF/log4j.lcf", "read,write";
   permission java.lang.RuntimePermission "getClassLoader";
};

I get the exception.

$ Using CATALINA_BASE: D:\server\jakarta-tomcat-4.0.2-b2
Using CATALINA_HOME: D:\server\jakarta-tomcat-4.0.2-b2
Using CLASSPATH:
D:\server\jakarta-tomcat-4.0.2-b2\bin\bootstrap.jar;C:\j2sd
k1.4.0\lib\tools.jar
Using JAVA_HOME: C:\j2sdk1.4.0

.

... in die Log4J Configdatei ---
java.secur
ity.AccessControlException: access denied (java.io.FilePermission
D:\server\jaka
rta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf write)

Have someone an idea why?

thanks
juraj


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









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

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




RE: classes visibility in the WEB-INF dir ----> SOLVED

2002-02-22 Thread Craig R. McClanahan



On Fri, 22 Feb 2002, Sampige, Srinivas wrote:

> Date: Fri, 22 Feb 2002 10:04:10 -0800
> From: "Sampige, Srinivas" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: classes visibility in the WEB-INF dir > SOLVED
>
> Now more than one person has faced this problem. Please refer to my posting
> titled "Configuring my own servlets on Tomcat4.0". Have the Tomcat
> developers addressed this issue in the documentation?(at least I couldn't
> find it...am I missing something?). This makes developement higly
> unproductive. For you reference this is what I posted earlier(for which I
> got replies) -

Which "this issue" are you speaking of?  If it's the fact that WEB-INF has
to be capitalized, that is documented in the Servlet Specification
(because it is common to all servlet containers, not just Tomcat):

  http://java.sun.com/products/servlet/download.html

In addition, any book or article or tutorial about building web
applications will certainly mention it.

If "this issue" means that you didn't know you have to match your
directory structure under /WEB-INF/classes to the package hierarchy of
your classes, that is fundamental Java programming -- amply covered in the
many books and tutorials about the language itself.  A good place to start
is .

If it's some other issue, then you'll have to tell me what it was before I
can tell you if it's been addressed in the documentation.  I'm afraid that
I cannot read your mind :-).

> 
> Hi
>  I downloaded Tomcat4.0 just now and insalled it. I am able to run the
> example servlets. When I try to create my own servlets OR whehn I try to
> deploy and run those web apps that were working on the older version
> (Tomcat3.2) the new servlets don't run. Any clues? I looked at the
> documentation but could not find anything.
>

Quite frankly, Srinivas, it should not surprise anyone that this problem
report did not get any useful feedback.  After all, does it describe the
error messages that you got?  Or, does it quote stack traces from the log
files?  NOBODY can give much in the way of useful guidance based on the
above paragraph, because there are many thousands of possible reasons for
things going wrong -- 99.9% of them being user error or misunderstanding.

Moral of the story -- if you want help, the best way to get the right
answers quickly is to provide as much information as possible about the
problems you are facing (as *many* people do on TOMCAT-USER):
- Operating system version
- JDK version
- Tomcat version (for example, *which* Tomcat 4.0?)
- Web server version (if relevant)
- Web connector -- mod_jk, mod_webapp, etc. -- version (if relevant)
- Concise description of the problem
- Error messages or stack traces that you received
  in the response page or log files
- What you expected to have happen (you'd be surprised how many
  "bug reports" are really misunderstandings of how servlets work,
  or about what certain configuration settings mean).

> thanks
> -Srinivas

Craig McClanahan



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




Clarification: Same host multiple ports don't work?

2002-02-22 Thread Anders Rundgren

http://myhost:8000/app
http://myhost:9000/app

Should be possible to configure independtly,  I.e. app could
be different for the two ports.

But the Tomcat mapping schemes does not seem to include port and host.

/anders

- Original Message - 
From: "Anders Rundgren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 15:50
Subject: Same host multiple ports don't work?


Hi,

In IIS I'm able to define virtual servers using the same host-name
but different ports.   These virtual servers have independent paths
(applications) as you would expect.

I can't see any similar functionality in Tomcat or am I just reading
the config documents wrong???

regard,
Anders R


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



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




Re: catalina.policy

2002-02-22 Thread rsequeira


Try running tomcat with
CATALINA_OPTS=-Djava.security.debug=access,failure

It should help pinpoint which class is trying to access the D:
\server\jakarta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf file

Thanks.
RS





juraj Lenharcik <[EMAIL PROTECTED]> on 02/22/2002 10:57:35 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "Tomcat-User@Jakarta. Apache. Org (E-Mail)"
  <[EMAIL PROTECTED]>
cc:

Subject:  catalina.policy

Hello,

I run catalina (TC 4.0.2-b2) with the security manager. After starting I
get
a java.security.AccessControlException. I have extended the catalina.policy
with:

// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant {


   permission java.io.FilePermission
"${catalina.home}/webapps/auth/WEB-INF/log4j.lcf", "read,write";
   permission java.lang.RuntimePermission "getClassLoader";
...
};

then it runs fine. But when I say:

grant codebase "file:${catalina.home}/webapps/auth/WEB-INF/lib/DIAA.jar" {
   // for log4j things important
   permission java.io.FilePermission
"${catalina.home}/webapps/auth/WEB-INF/log4j.lcf", "read,write";
   permission java.lang.RuntimePermission "getClassLoader";
};

I get the exception.

$ Using CATALINA_BASE: D:\server\jakarta-tomcat-4.0.2-b2
Using CATALINA_HOME: D:\server\jakarta-tomcat-4.0.2-b2
Using CLASSPATH:
D:\server\jakarta-tomcat-4.0.2-b2\bin\bootstrap.jar;C:\j2sd
k1.4.0\lib\tools.jar
Using JAVA_HOME: C:\j2sdk1.4.0

.

... in die Log4J Configdatei ---
java.secur
ity.AccessControlException: access denied (java.io.FilePermission
D:\server\jaka
rta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf write)

Have someone an idea why?

thanks
juraj


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









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




RE: oracle/TC4.0.2/linux

2002-02-22 Thread Randy Layman


The most common problem is not renaming classesXXX.zip to
classesXXX.jar.  (Tomcat doesn't automatically see ZIP files, but it does
JAR).

Randy

> -Original Message-
> From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 1:00 PM
> To: Tomcat Users List
> Subject: oracle/TC4.0.2/linux
> 
> 
> Has anybody succeeded in making this specific configuration working ?
> Has anybody can access to a database with a Datasource??
> Could you send me you're configuration please...
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




RE: classes visibility in the WEB-INF dir ----> SOLVED

2002-02-22 Thread Sampige, Srinivas

Now more than one person has faced this problem. Please refer to my posting
titled "Configuring my own servlets on Tomcat4.0". Have the Tomcat
developers addressed this issue in the documentation?(at least I couldn't
find it...am I missing something?). This makes developement higly
unproductive. For you reference this is what I posted earlier(for which I
got replies) -

Hi
 I downloaded Tomcat4.0 just now and insalled it. I am able to run the
example servlets. When I try to create my own servlets OR whehn I try to
deploy and run those web apps that were working on the older version
(Tomcat3.2) the new servlets don't run. Any clues? I looked at the
documentation but could not find anything.

thanks
-Srinivas
--

thanks
Srinivas

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

-Original Message-
From: Dmitry Nikelshpur [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 2:04 AM
To: Tomcat Users List
Subject: Re: classes visibility in the WEB-INF dir > SOLVED


I had something 'similar' happen when I was installing Tomcat 4.0.2...
I could not get servlets in webapps/myapp/web-inf/classes to be found.
I kept changing paths, web/server.xml, etc., but nothing seemed to work.
However, /examples and another WAR file were working fine.
What I did was:
1) I copied the servlets into one of the directories that were working 
(eg. examples).
 The servlets were being found
2) I copied all code from the directory that was not working into the 
/examples directory.
3) renamed the directory to the old nameand all works fine ever since.

Things like this have worked for me in the past when I get REALLY 
frustratedWas I really missing something (doubtful I was misspelling 
the servlet's name in this case)...This is reminiscent of invisible 
characters :-)  ...or something was causing the servlets not to be loaded?!?

Dmitry

Amine AMAR wrote:

>Hi,
> I tried to jar the classes directory and reload TC, but I have the same
behavior.
>
>I also tried creating a class kitabe.SearchUtilities2 with exacty the same
code as SearchUtilities (using save as). SearchUtilities2
>works fine, but not SearchUtilities.
>
>I then tried to rename my new SearchUtilities2 to SearchUtilities ---> THEN
IT DID WORK.
>
>This is very weard :?). I used to delete all .class files and recompile to
be sure that the files get recompiled, and that there is
>no problem related to that. If anyone of you have seen this behavior,
please let us know.
>
>Thank's all for your help
>
>Amine
>
>- Original Message -
>From: "Larry Isaacs" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Sent: Wednesday, February 20, 2002 7:02 PM
>Subject: RE: classes visibility in the WEB-INF dir
>
>
>>Do you know if any bean or servlet in the ketabe web application
>>successfully loads kitabe.SearchUtilities.  If you are not sure,
>>you could try:
>>
>><% kitabe.SearchUtilities su = new kitabe.SearchUtilities() %>
>>
>>on a test JSP page in ketabe and see if it compiles.
>>
>>Cheers,
>>Larry
>>
>>>-Original Message-
>>>From: Amine AMAR [mailto:[EMAIL PROTECTED]]
>>>Sent: Wednesday, February 20, 2002 1:35 PM
>>>To: Tomcat Users List
>>>Subject: Re: classes visibility in the WEB-INF dir
>>>
>>>
>>>Hi,
>>>
>>>Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory.
>>>Line 60 in kitabe.dal.home.AuthorHome.findByName() contain
>>>only a call for the constructor of kitabe.SearchUtilities
>>>(SearchUtilities su = new SearchUtilities();)
>>>
>>>Regards,
>>>Amine
>>>
>>>- Original Message -
>>>From: "Larry Isaacs" <[EMAIL PROTECTED]>
>>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>>Sent: Wednesday, February 20, 2002 5:47 PM
>>>Subject: RE: classes visibility in the WEB-INF dir
>>>
>>>
Are all "kitabe" classes located in your /ketabe/WEB-INF/classes
directory?  Also, to you know what the link is between what
kitabe.dal.home.AuthorHome.findByName() is doing around line 60
and kitabe.SearchUtilities?

Cheers,
Larry


>-Original Message-
>From: Amine AMAR [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 20, 2002 11:34 AM
>To: Tomcat Users List
>Subject: Re: classes visibility in the WEB-INF dir
>
>
>Hi,
>Sorry for misleading you. my directories are kitabe and com.
>The pb comes from the kitabe directory. the 'dir' was just for the
>exemple.
>here after the whole log file
>-
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploying class
>repositories to work directory
>C:\jakarta-tomcat-4.0.1\work\localhost\ketabe
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
>/WEB-INF/lib/classes12.jar to
>
>>>c:\www\ketabe\WEB-INF\lib\classes12.jar
>>>
>2002-02-20 15:56:15 We

oracle/TC4.0.2/linux

2002-02-22 Thread remy.menetrieux

Has anybody succeeded in making this specific configuration working ?
Has anybody can access to a database with a Datasource??
Could you send me you're configuration please...




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




Re: no re-load of indirect class

2002-02-22 Thread Craig R. McClanahan



On Fri, 22 Feb 2002, Joel Rees wrote:

> Date: Fri, 22 Feb 2002 21:41:24 +0900
> From: Joel Rees <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: no re-load of indirect class
>
> Indirectly referred classes don't seem to get reloaded. Is this a known
> behavior?
>
> I have one class referencing another before going out to a jsp page, and I
> have to shut tomcat down and bring it back up after re-compiling the
> indirectly referred class, to get the changes to have any effect.
>
> Is this just another of those things I'm being thick-headed about?
>

Depends on the Tomcat version, and where your classes are.

If you're using Tomcat 4, and all the relevant classes are in
/WEB-INF/classes or /WEB-INF/lib, this should work fine.  I know for sure
that the Tomcat 3.2 webapp class loader didn't deal with stuff like this
very well.  Don't know about 3.3.

> Joel Rees
> Alps Giken Kansai Systems Develoment
> Suita, Osaka
>

Craig


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




Re: TC4 and cgi

2002-02-22 Thread Paul D. Bain

At Friday 2/22/02 11:58 AM, you wrote:
>Folks:
>
>I'm running Tomcat 4.0.2 on Solaris.  I'm trying to
>configure Tomcat to support perl cgis, but I'm getting
>404.

 I am not an expert on Tomcat 4, but am 90% sure that it cannot 
begin execution of any executable program/script other than a servlet/JSP. 
My understanding (which may be flawed) of this issue is that, if you want 
to run both Perl and servlets, you must put an Apache web server in front 
of Tomcat and have it process requests according to whether they invoke 
Perl files (e.g., the request is for a file whose suffix is ".pl") or a 
servlet (which typically has a different suffix, to wit, ".jsp" or 
".java"). Apache would process requests for the former via CGI and send 
requests for the latter to Tomcat.


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




RE: Strange javabean problem

2002-02-22 Thread Rich Sneiderman

Sorry about that.  I should have included how I declared the bean.  The
 tag is the 2nd line in the page, right after the
 tag. The full tag reads:



I've traced through the servlet code and the bean's getters are being
called even in the getProperty cases.  

In the generated servlet code the scriptlet's version of getting the
title is:

  out.print( emp.getTitle() );

The getProperties version is:
 
out.print(JspRuntimeLibrary.toStringtest.EmployeeBean)pageContext.fi
ndAttribute("emp")).getTitle(;

- Rich

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 22, 2002 7:59 AM
To: 'Tomcat Users List'
Subject: RE: Strange javabean problem



You are not creating a bean named emp for the jsp:getProperty.
You need to use jsp:useBean first (I believe) or use
<%=emp.getFirstName()%>.

Randy

> -Original Message-
> From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 11:39 AM
> To: Tomcat Users List
> Subject: RE: Strange javabean problem
> 
> 
> I can't believe we're the only people who have ever seen this problem.
> 
> I'm still having the problem but I got to the same place differently.
> 
> I load the data from a data base in a servlet.  The servlet reads from

> the database it creates a javabean for each record and adds it to a 
> ListArray.  I then add the ArrayList to the request object and forward

> on to my JSP.  It's this ArrayList that I'm iterating through in my 
> JSP when I have the problem.
> 
> Again here is my code snippet that fails:
> 
> <%
>   ArrayList la = (ArrayList) request.getAttribute("list");
>   if ( la != null ) {
> Iterator iter = la.iterator();
> while(iter.hasNext()) {
>   emp = (EmployeeBean)iter.next();
> %>
> <%= emp.getFirstName() %>
> <%= emp.getLastName() %>
> <%= emp.getTitle() %>
> 
> 
> 
> 
>   <%
> }
>   }
> %>
> 
> Could there be something wrong with the way we're defining our 
> Javabeans?
> 
> Please folks.  A little help here.
> 
> Thanks in advance.
> 
> - Rich
> 
> -Original Message-
> From: Michael J. McCormac [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 7:45 PM
> To: [EMAIL PROTECTED]
> Cc: Rich Sneiderman
> Subject: RE: Strange javabean problem
> 
> 
> > Hi Folks,
> > 
> > I'm using Tomcat 4.01 with Jbuilder 6.  I've got a strange problem. 
> > It seems that if I try to dump data from a Java bean using the 
> >  tag I don't get the data.  However, if I
> reference
> > the value of the bean directly in a scriptlet it works fine.
> 
> greetings all,
> 
> i am having pretty much the same problem, but the implementation is a 
> little bit different.  i tried using an rmi process to retrieve the 
> bean directly from the JSP like so:
> 
> 
> <%
>   rmiInt rmiServer = (rmiInt)Naming.lookup( "//server/service" );
>   myBean = (MyClass)rmiServer.getBean();
> %>
>   <-
> doesn't work!
> 
> one way i've managed to work around the problem was by creating and 
> loading the beans in a servlet first, throwing the beans in the 
> session object, then redirecting to the JSP file where i could pull 
> them back out of the session like this:
> 
> 
> <% session.getAttribute( "mybean" ); %>
>  <- works ok!!
> 
> but i don't like this solution...  it's inelegant ;)
> 
> thanks,
> mike
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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


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




AW: JSP not returning full page problem

2002-02-22 Thread Ralph Einfeldt

Not Faster but less redundancy:

String mSelected
for (int a=1;a<32;a++)
{
if ( a==day )
  mSelected = "SELECTED";
} else {
  mSelected = "";
} 
%>
  VALUE="<%= a %>"><%= a %>
<%
} 
%>

Or a bit shorter but harder to read:

<% for (int a=1;a<32;a++) { %>
<%= SELECTED %><% } %> VALUE="<%= a
%>"><%= a %>
<% } %>

Or even shorter:
<% for (int a=1;a<32;a++) { %>
 VALUE="<%= a %>"><%= a
%>
<% } %>

Or if you need this in more places:

<%!
String getSelected(boolean aSelected) {
  if (aSelected) {
return "SELECTED";
  } else {
return "":
  }
}
%>
<% for (int a=1;a<32;a++) { %>
 VALUE="<%= a %>"><%= a
%>
<% } %>

> -Ursprüngliche Nachricht-
> Von: David Cassidy [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 22. Februar 2002 17:49
> An: Tomcat Users List
> Betreff: Re: JSP not returning full page problem
 
> would be easier as ..
> 
> for (int a=1;a<32;a++)
> {
> if ( a==day )
> out.write("" 
> +a+"\n");
> else
>   out.write("" +a+"\n");
>  }


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




TC4 and cgi

2002-02-22 Thread Jared Nedzel

Folks:

I'm running Tomcat 4.0.2 on Solaris.  I'm trying to
configure Tomcat to support perl cgis, but I'm getting
404.  I've done the following so far:

I've copied $CATALINA_HOME/server/lib/servlets-ssi.renametojar
to $CATALINE_HOME/server/lib/servlets-ssi.jar

I've copied $CATALINA_HOME/server/lib/servlets-cgi.renametojar
to $CATALINE_HOME/server/lib/servlets-cgi.jar

I've edited $CATALINA_HOME/conf/web.xml as follows:

  - commented in servlet ssi
  - commented in servlet cgi
  - commented in servlet mapping for ssi
  - commented in servlet mapping for cgi

I've created an app directory $CATALINA_HOME/webapps/websub.
Inside that directory, I've created a WEB-INF directory.
Inside that, I've created a cgi directory.  I've put my perl
cgi's inside the cgi directory.

Do I need a web.xml inside the WEB-INF directory?  And if
so, what should it contain?

I'd really appreciate it if someone could point me towards a
perl cgi "hello world" configuration for Tomcat 4.

Thanks,

Jared Nedzel
[EMAIL PROTECTED]


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




catalina.policy

2002-02-22 Thread juraj Lenharcik

Hello,

I run catalina (TC 4.0.2-b2) with the security manager. After starting I get
a java.security.AccessControlException. I have extended the catalina.policy
with:

// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
grant { 


   permission java.io.FilePermission
"${catalina.home}/webapps/auth/WEB-INF/log4j.lcf", "read,write";
   permission java.lang.RuntimePermission "getClassLoader";
...
}; 

then it runs fine. But when I say:

grant codebase "file:${catalina.home}/webapps/auth/WEB-INF/lib/DIAA.jar" {
   // for log4j things important
   permission java.io.FilePermission
"${catalina.home}/webapps/auth/WEB-INF/log4j.lcf", "read,write";
   permission java.lang.RuntimePermission "getClassLoader";
};

I get the exception. 

$ Using CATALINA_BASE: D:\server\jakarta-tomcat-4.0.2-b2
Using CATALINA_HOME: D:\server\jakarta-tomcat-4.0.2-b2
Using CLASSPATH:
D:\server\jakarta-tomcat-4.0.2-b2\bin\bootstrap.jar;C:\j2sd
k1.4.0\lib\tools.jar
Using JAVA_HOME: C:\j2sdk1.4.0

.

... in die Log4J Configdatei ---
java.secur
ity.AccessControlException: access denied (java.io.FilePermission
D:\server\jaka
rta-tomcat-4.0.2-b2\webapps\auth\WEB-INF\log4j.lcf write)

Have someone an idea why?

thanks
juraj


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




Re: JSP not returning full page problem

2002-02-22 Thread David Cassidy

Ian,

On comment
custom tags... Have a **big** read. they make jsp alot more readable.

is this visible on the net ? - ie can I see it in action ?

On which statement does the data finish ?
could you attach the output ?

Are there any exceptions generated in the tomcat logs ?

you might find rs.getString("column_name")  easier to read than  rs.getString(1)

It's a little more important when it's the data back from a view - where your DBA
can 'move' things around - as they want (bit me in the ass - view change not the DBA!)



Just a little one ...

   
SELECTED <%}%> VALUE="01">01
SELECTED <%}%> VALUE="02">02
SELECTED <%}%> VALUE="03">03
SELECTED <%}%> VALUE="04">04

would be easier as ..

for (int a=1;a<32;a++)
{
if ( a==day )
out.write("" +a+"\n");
else
  out.write("" +a+"\n");
 }

Although i'm sure there are faster ways :) - anyone ?

D



Ian Hilliard wrote:

> Thanks for the prompt reply,  here is the JSP that I am having problems
> with,
>
> as I say it is not returning any more than a certain amount of the page, if
> I decrease the amount of data per line the output becomes more but still
> hits the limit, I have a screen shot if it will make it clearer,
>
> <%@ page import="java.sql.*" %>
> <%! protected String driver="sun.jdbc.odbc.JdbcOdbcDriver";
> protected String url="jdbc:odbc:ian";
> protected String userid="system";
> protected String password="manager"; %>
>
> <%! public static String FIRST_QUERY =
> "SELECT row_id, " +
> "timesheet, " +
> "emp_no, " +
> "expense_date, " +
> "customer_no, " +
> "rechargeable, " +
> "receipt_no, " +
> "expense_type, " +
> "expense_amount, " +
> "foreign_exchange_rate_type, " +
> "foreign_exchange_rate, " +
> "actual_amount, " +
> "vat, " +
> "vat_rate_type, " +
> "vat_rate, " +
> "amount_vatable, " +
> "amount_of_vat, " +
> "oracle_work, " +
> "mileage_from, " +
> "mileage_to, " +
> "mileage_rate_ee, " +
> "mileage_rate_er, " +
> "description " +
> "FROM   expenses " +
> "WHERE  emp_no=? and timesheet=? " +
> "ORDER BY expense_date, customer_no, to_number(receipt_no)";
> %>
> <%! public static String SECOND_QUERY =
> "SELECT customer_no, customer_description " +
> "FROM   customer_no " +
> "ORDER BY customer_no";
> %>
> <%! public static String THIRD_QUERY =
> "SELECT expense_type " +
> "FROM   expense_type " +
> "ORDER BY expense_type";
> %>
> <%! public static String FORTH_QUERY =
> "SELECT rate_type, rate_value " +
> "FROM   foreign_exchange_rate " +
> "ORDER BY rate_type";
> %>
> <%! public static String FIFTH_QUERY =
> "SELECT vat_type, vat_rate_value " +
> "FROM   vat_rate " +
> "ORDER BY vat_type";
> %>
> <%
> String empNo = (String) session.getAttribute("empNo");
> String Timesheet = request.getParameter("Timesheet");
> String _template = (String) session.getAttribute("_template");
> String customerNo = "";
> String customerDesc = "";
> String expenseType = "";
> String foreignExchangeRateType = "";
> String foreignExchangeRateValue = "";
> String vatType = "";
> String vatRateValue = "";
> String comment = "";
> String mileageFrom = "";
> String mileageTo = "";
> %>
> <%
> PreparedStatement stmt;
> ResultSet rs;
> PreparedStatement stmt1;
> ResultSet rs1;
> PreparedStatement stmt2;
> ResultSet rs2;
> PreparedStatement stmt3;
> ResultSet rs3;
> PreparedStatement stmt4;
> ResultSet rs4;
> %>
> 
> 
> Symatrix Ltd.
> 
> 
> 
> 
>  action="/symatrix/update_row_ex.jsp" target="mainFrame">
> <%
> Class.forName(driver);
> Connection conn = DriverManager.getConnection(url, userid, password);
>
> stmt = conn.prepareStatement(FIRST_QUERY);
> stmt.setString(1, empNo);
> stmt.setString(2, Timesheet);
>
> rs = stmt.executeQuery();
> %>
>  STYLE="font-family:Verdana,Helvetica,Arial;font-size:7pt">
>   
> Update
> Date
> Customer
> Rechargeable
> Receipt No
> Type
> Net Amount
> Exchange Rate
> VAT
> VAT Rate Type
> VATable Amount
> Oracle Work
> Mileage From
> Mileage To
> Mileage Rate EE
> Mileage Rate ER
> Comment
>   
>
> <%  String currentCustomerNo = "";
> String currentExpenseType = "";
> String currentForeignExchangeRateType = "";
> String currentVatType = "";
> String daydate = "";
> int day = 0;
> int month = 0;
> int year = 0;
> String rowColour = "#99";
> int checkBoxCount = 1;
>
> while (rs.next()) {
> if (rowColour.equalsIgnoreCase("#99

RE: Strange javabean problem

2002-02-22 Thread Randy Layman


You are not creating a bean named emp for the jsp:getProperty.  You
need to use jsp:useBean first (I believe) or use <%=emp.getFirstName()%>.

Randy

> -Original Message-
> From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 11:39 AM
> To: Tomcat Users List
> Subject: RE: Strange javabean problem
> 
> 
> I can't believe we're the only people who have ever seen this problem.
> 
> I'm still having the problem but I got to the same place differently.
> 
> I load the data from a data base in a servlet.  The servlet reads from
> the database it creates a javabean for each record and adds it to a
> ListArray.  I then add the ArrayList to the request object and forward
> on to my JSP.  It's this ArrayList that I'm iterating through 
> in my JSP
> when I have the problem.
> 
> Again here is my code snippet that fails:
> 
> <%
>   ArrayList la = (ArrayList) request.getAttribute("list");
>   if ( la != null ) {
> Iterator iter = la.iterator();
> while(iter.hasNext()) {
>   emp = (EmployeeBean)iter.next();
> %>
> <%= emp.getFirstName() %>
> <%= emp.getLastName() %>
> <%= emp.getTitle() %>
> 
> 
> 
> 
>   <%
> }
>   }
> %>
> 
> Could there be something wrong with the way we're defining our
> Javabeans?
> 
> Please folks.  A little help here.
> 
> Thanks in advance.
> 
> - Rich
> 
> -Original Message-
> From: Michael J. McCormac [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 21, 2002 7:45 PM
> To: [EMAIL PROTECTED]
> Cc: Rich Sneiderman
> Subject: RE: Strange javabean problem
> 
> 
> > Hi Folks,
> > 
> > I'm using Tomcat 4.01 with Jbuilder 6.  I've got a strange problem.
> > It seems that if I try to dump data from a Java bean using the
> >  tag I don't get the data.  However, if I 
> reference 
> > the value of the bean directly in a scriptlet it works fine.
> 
> greetings all,
> 
> i am having pretty much the same problem, but the implementation is a
> little bit different.  i tried using an rmi process to 
> retrieve the bean
> directly from the JSP like so:
> 
> 
> <%
>   rmiInt rmiServer = (rmiInt)Naming.lookup( "//server/service" );
>   myBean = (MyClass)rmiServer.getBean();
> %>
>   <- 
> doesn't work!
> 
> one way i've managed to work around the problem was by creating and
> loading the beans in a servlet first, throwing the beans in 
> the session
> object, then redirecting to the JSP file where i could pull them back
> out of the session like this:
> 
> 
> <% session.getAttribute( "mybean" ); %>
>  <- works ok!!
> 
> but i don't like this solution...  it's inelegant ;)
> 
> thanks,
> mike
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




AW: JSP not returning full page problem

2002-02-22 Thread Ralph Einfeldt

Make shure that your page doesn't throw an exeption.

If a page is very long and an exception happens,
the error directive wiil not always work, because
part of the page has already bean transmitted to 
the client.

Best embed your scriptlet in a try/catch block
and log the Exception/Throwable.

> -Ursprüngliche Nachricht-
> Von: Ian Hilliard [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 22. Februar 2002 17:25
> An: [EMAIL PROTECTED]
> Betreff: JSP not returning full page problem
> 
> 


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




TC 3.2.x work with JDK1.4

2002-02-22 Thread Brian Radovich

Howdy

Does anyone know if Tomcat 3.2.3 or 3.2.4 will work with j2se1.4?

Thanks

Brian

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




RE: Strange javabean problem

2002-02-22 Thread Rich Sneiderman

I can't believe we're the only people who have ever seen this problem.

I'm still having the problem but I got to the same place differently.

I load the data from a data base in a servlet.  The servlet reads from
the database it creates a javabean for each record and adds it to a
ListArray.  I then add the ArrayList to the request object and forward
on to my JSP.  It's this ArrayList that I'm iterating through in my JSP
when I have the problem.

Again here is my code snippet that fails:

<%
  ArrayList la = (ArrayList) request.getAttribute("list");
  if ( la != null ) {
Iterator iter = la.iterator();
while(iter.hasNext()) {
  emp = (EmployeeBean)iter.next();
%>
<%= emp.getFirstName() %>
<%= emp.getLastName() %>
<%= emp.getTitle() %>




  <%
}
  }
%>

Could there be something wrong with the way we're defining our
Javabeans?

Please folks.  A little help here.

Thanks in advance.

- Rich

-Original Message-
From: Michael J. McCormac [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 21, 2002 7:45 PM
To: [EMAIL PROTECTED]
Cc: Rich Sneiderman
Subject: RE: Strange javabean problem


> Hi Folks,
> 
> I'm using Tomcat 4.01 with Jbuilder 6.  I've got a strange problem.
> It seems that if I try to dump data from a Java bean using the
>  tag I don't get the data.  However, if I reference 
> the value of the bean directly in a scriptlet it works fine.

greetings all,

i am having pretty much the same problem, but the implementation is a
little bit different.  i tried using an rmi process to retrieve the bean
directly from the JSP like so:


<%
rmiInt rmiServer = (rmiInt)Naming.lookup( "//server/service" );
myBean = (MyClass)rmiServer.getBean();
%>
  <- doesn't work!

one way i've managed to work around the problem was by creating and
loading the beans in a servlet first, throwing the beans in the session
object, then redirecting to the JSP file where i could pull them back
out of the session like this:


<% session.getAttribute( "mybean" ); %>
 <- works ok!!

but i don't like this solution...  it's inelegant ;)

thanks,
mike


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


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




JSP not returning full page problem

2002-02-22 Thread Ian Hilliard

Thanks for the prompt reply,  here is the JSP that I am having problems
with,

as I say it is not returning any more than a certain amount of the page, if
I decrease the amount of data per line the output becomes more but still
hits the limit, I have a screen shot if it will make it clearer,

<%@ page import="java.sql.*" %>
<%! protected String driver="sun.jdbc.odbc.JdbcOdbcDriver";
protected String url="jdbc:odbc:ian";
protected String userid="system";
protected String password="manager"; %>

<%! public static String FIRST_QUERY =
"SELECT row_id, " +
"timesheet, " +
"emp_no, " +
"expense_date, " +
"customer_no, " +
"rechargeable, " +
"receipt_no, " +
"expense_type, " +
"expense_amount, " +
"foreign_exchange_rate_type, " +
"foreign_exchange_rate, " +
"actual_amount, " +
"vat, " +
"vat_rate_type, " +
"vat_rate, " +
"amount_vatable, " +
"amount_of_vat, " +
"oracle_work, " +
"mileage_from, " +
"mileage_to, " +
"mileage_rate_ee, " +
"mileage_rate_er, " +
"description " +
"FROM   expenses " +
"WHERE  emp_no=? and timesheet=? " +
"ORDER BY expense_date, customer_no, to_number(receipt_no)";
%>
<%! public static String SECOND_QUERY =
"SELECT customer_no, customer_description " +
"FROM   customer_no " +
"ORDER BY customer_no";
%>
<%! public static String THIRD_QUERY =
"SELECT expense_type " +
"FROM   expense_type " +
"ORDER BY expense_type";
%>
<%! public static String FORTH_QUERY =
"SELECT rate_type, rate_value " +
"FROM   foreign_exchange_rate " +
"ORDER BY rate_type";
%>
<%! public static String FIFTH_QUERY =
"SELECT vat_type, vat_rate_value " +
"FROM   vat_rate " +
"ORDER BY vat_type";
%>
<%
String empNo = (String) session.getAttribute("empNo");
String Timesheet = request.getParameter("Timesheet");
String _template = (String) session.getAttribute("_template");
String customerNo = "";
String customerDesc = "";
String expenseType = "";
String foreignExchangeRateType = "";
String foreignExchangeRateValue = "";
String vatType = "";
String vatRateValue = "";
String comment = "";
String mileageFrom = "";
String mileageTo = "";
%>
<%
PreparedStatement stmt;
ResultSet rs;
PreparedStatement stmt1;
ResultSet rs1;
PreparedStatement stmt2;
ResultSet rs2;
PreparedStatement stmt3;
ResultSet rs3;
PreparedStatement stmt4;
ResultSet rs4;
%>


Symatrix Ltd.





<%
Class.forName(driver);
Connection conn = DriverManager.getConnection(url, userid, password);

stmt = conn.prepareStatement(FIRST_QUERY);
stmt.setString(1, empNo);
stmt.setString(2, Timesheet);

rs = stmt.executeQuery();
%>

  
Update
Date
Customer
Rechargeable
Receipt No
Type
Net Amount
Exchange Rate
VAT
VAT Rate Type
VATable Amount
Oracle Work
Mileage From
Mileage To
Mileage Rate EE
Mileage Rate ER
Comment
  

<%  String currentCustomerNo = "";
String currentExpenseType = "";
String currentForeignExchangeRateType = "";
String currentVatType = "";
String daydate = "";
int day = 0;
int month = 0;
int year = 0;
String rowColour = "#99";
int checkBoxCount = 1;

while (rs.next()) {
if (rowColour.equalsIgnoreCase("#99"))
{
rowColour = "#CC";
%>

<%  }
else
{
rowColour = "#99";
%>

<%  }


%>


<%  daydate = rs.getString(4);
currentCustomerNo = rs.getString(5);
day = Integer.parseInt(daydate.substring(8,10));
month = Integer.parseInt(daydate.substring(6,7));
year = Integer.parseInt(daydate.substring(0,4));
%>


SELECTED <%}%> VALUE="01">01
SELECTED <%}%> VALUE="02">02
SELECTED <%}%> VALUE="03">03
SELECTED <%}%> VALUE="04">04
SELECTED <%}%> VALUE="05">05
SELECTED <%}%> VALUE="06">06
SELECTED <%}%> VALUE="07">07
SELECTED <%}%> VALUE="08">08
SELECTED <%}%> VALUE="09">09
SELECTED <%}%> 
VALUE="10">10
SELECTED <%}%> 
VALUE="11">11
SELECTED <%}%> 
VALUE="12">12
SELECTED <%}%> 
VALUE="13">13
SELECTED <%}%> 
VALUE="14">14
SELECTED <%}%> 
VALUE="15">15
SELECTED <%}%> 
VALUE="16">16
   

RE: Configuring my own servlets on Tomcat4.0

2002-02-22 Thread Bigelow, Mark

Did you use the newer version of the web.xml for you apps?  I found that my
apps would not run with the older version.
Mark

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 4:54 PM
To: TomcatUser (E-mail)
Subject: Configuring my own servlets on Tomcat4.0


Hi
 I downloaded Tomcat4.0 just now and insalled it. I am able to run the
example servlets. When I try to create my own servlets OR whehn I try to
deploy and run those web apps that were working on the older version
(Tomcat3.2) the new servlets don't run. Any clues? I looked at the
documentation but could not find anything.

thanks
-Srinivas

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

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




RE: Tomcat Servlet Setup (NEWBIE)

2002-02-22 Thread Anton Brazhnyk

Hi,

Tomcat4 doesn't use CLASSPATH to find libraries.
You have to put your classes12.jar either to
$CATALINA_HOME/common/lib or to WEB-INF/lib of
your web-application.
And one more thing it MUST be jar, so you have to
rename your classes12.zip to classes12.jar.

Anton


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 5:58 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat Servlet Setup (NEWBIE)
> 
> 
> 
> 
> I apologise in advance for asking this as it has probably been 
> covered countless
> times before, but I'm afraid I am a newbie who needs an answer 
> quickly and the
> List Archive is currently down!
> 
> I have modified the JdbcCheckup.java program so that it connects 
> to our Oracle
> server using the Oracle JDBC Driver.  This works perfectly well, 
> but ideally I
> want to prompt for the various parameters (username, password etc) via a
> webpage, so I'm trying to create a servlet version of my code.
> 
> The problem is that for some reason, the servlet version cannot 
> establish a
> connection to the DB, even though it is virtually identical to my 
> previous Java
> program.  The issue appears to be with the following line of code...
> 
> Class.forName ("oracle.jdbc.driver.OracleDriver");
> 
> ...which I assume means the program cannot find the JDBC Driver.
> 
> I realise this is almost certainly a classpath issue, and my classpath is
> defined under /root/.bash_profile as follows...
> 
> PATH=/usr/java/jdk1.3.1_02/bin:/usr/local/sbin:/usr/sbin:/sbin:$PA
> TH:$HOME/bin:/var/tomcat4/common/lib
> 
> BASH_ENV=$HOME/.bashrc
> USERNAME="root"
> CLASSPATH=/usr/java/jdk1.3.1_02/classes12.zip:/var/tomcat4/webapps
/james/:/var/tomcat4/common/lib/servlet.jar:/var/tomca
> 
> t4/common/lib/classes12.zip:/var/tomcat4/common/lib/zip/classes/:/
> usr/java/jdk1.3.1_02/lib/tools.jar
> 
> export USERNAME BASH_ENV PATH CLASSPATH
> 
> Can anyone see where I'm going wrong?  Please reply to me off-list.
> 
> Thanks in advance,
> 
> James
> 


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




Re: Java servlet and mailing

2002-02-22 Thread Uma Maheswar

Hi,
There is a ready made programme out there in www.globalleafs.com . You can
download it from our site.

Uma


- Original Message -
From: "Simon" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 4:01 AM
Subject: Java servlet and mailing


> Dear,
>
> I come from PHP world, so that i don't really know about this.
>
> If i need to sent out an email in my serlvet program, do i need to
download
> and install javamail?
> (I did a mail() in PHP, which calls /bin/mail indeed, most likely...)
>
> According to this FAQ saying:
> http://java.sun.com/products/javamail/FAQ.html#1
>
> Q: What is the JavaMailTM API?
> A: The JavaMailTM API is a set of abstract APIs that model a mail system.
> The API provides a platform independent and protocol independent framework
> to build Java technology based email client applications. The JavaMail API
> provides facilities for reading and sending email. Service providers
> implement particular protocols. Several service providers are included
with
> the JavaMail API package; others are available separately. The JavaMail
API
> is implemented as a Java optional package that can be used on JDK 1.1.6
and
> later. The JavaMail API is also a required part of the JavaTM 2 Platform,
> Enterprise Edition (J2EETM).
>
> Do I have J2SE, i don't have JavaMail right?
> So, the easy way out, is to install J2EE in the first place, rather than
> J2SE?
>
> I don't this sounds stupid, but please help.
>
> Many thanks!
>
> Simon.
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




strange AccessLogInterceptor problem on Unix

2002-02-22 Thread Alexandre Victoor

Hello !
I use tomcat 3.3 on win2k and freebsd. On win2k the "apache style" logs 
work fine but on freebsd I don't have any info ( IP or address ) on the 
remote host. It is like the method request.getRemoteHost() is not working...
Anybody had this problem before ?
Thanks

Alex




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




Re: web.xml in Tomcat 4.0 -- HELP

2002-02-22 Thread Steve Fyfe

The name of the WEB-INF folder must be all capital letters. If you truely did name it 
Web-Inf Tomcat should ignore the folder.

Steve Fyfe
CNI Corporation
394 Elm Street
Milford NH 03055

[EMAIL PROTECTED]
(603) 673-6600 x242

>>> [EMAIL PROTECTED] Thursday, February 21, 2002 12:15:52 PM >>>
No body replied to this yet .. I'd like to explain it
again and see if some body can help me.

I have a web application running perfectly fine with
Tomcat 3.2.1. When I upgrade to 4.0.2 I couldn't run
that.

After installing 4.0.2, I've added a servlet context
for my web application in
/conf/server.xml
and registered my servlet (servlet name:
MainController) in WEBAPP/Web-Inf/web.xml. I've also
added a url-pattern for it.

After all that and restarting tomcat, I've tried to
access that servlet by localhost:8080/testwebapp/main
- I'm getting a response 404 error. The error is some
thing like this:

--
Apache Tomcat/4.0.2 - HTTP Status 404 - /main

type: Status report

message: /main

description: The requested resource (/main) is not
available.
---

What is that I'm missing? Can some body please help
...

-Surya

--- Surya Suravarapu <[EMAIL PROTECTED]> wrote:
> I've observed that Tomcat is reading conf/web.xml in
> version 4.0 unlike 3.2. 
> 
> I have a web-inf/web.xml in my web application
> folder.
> I have my servlet registered there and have a
> URL-pattern mapped for it. But when I try to run the
> application I am getting 404 File Not Found error.
> 
> Error message:
> Apache Tomcat/4.0.2 - HTTP Status 404 - /main
> 
> Can some body please help me.
> 
> Thanks.
> -Surya
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com 

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



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




RE: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?

2002-02-22 Thread Jarecsni János


Hi,

ok, now it's working well. I had to set JAVA_HOME in run_with_catalina.bat

set JAVA_HOME=F:\J2SDK1.4.0 <--- it was missing :)
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;%JAVA_HOME%/lib/tools.jar

Thanks!
János

--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392

|-Original Message-
|From: Randy Layman [mailto:[EMAIL PROTECTED]]
|Sent: Friday, February 22, 2002 3:04 PM
|To: 'Tomcat Users List'
|Subject: RE: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?
|
|
|
|   This error message indicates that you are not running Catalina in
|JDK 1.4 because the JDK produces file in format 48, but the previous
|versions of the JDK/JRE are not able to read the file format (which is
|indicated by the "version is to recent for this tool to understand").
|
|   Double check how you start JBoss to verify that it is running on the
|new JDK and not using just the first JRE in your path.  You also might want
|to try and remove all old versions of Java.
|
|   Randy
|
|
|> -Original Message-
|> From: Jarecsni János [mailto:[EMAIL PROTECTED]]
|> Sent: Friday, February 22, 2002 9:25 AM
|> To: Tomcat Users List
|> Subject: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?
|> Importance: High
|>
|>
|> Hi,
|>
|> I'm a bit frustrated... I've just tried Catalina 4.0.2
|> (release) [embedded
|> in JBoss 2.4.4] on J2SDK 1.4.0 (Win32) and it doesn't work.
|> The JSP compiler
|> complains in some cases about the 48.0 class file version:
|>
|>
|> [ERROR,EmbeddedCatalinaServiceSX] ApplicationDispatcher[/istore]
|> Servlet.service() for servlet jsp threw exception
|> org.apache.jasper.JasperException: Unable to compile class
|> for JSPerror:
|> Invalid class file format in f:\j2sdk1.4.0\jre\
|> lib\rt.jar(java/lang/Object.class).  The major.minor version
|> '48.0' is too
|> recent for this tool to understand.
|>
|> F:\JBoss-2.4.4_Tomcat-4.0.2b\catalina\work\localhost\istore\bi
|bliofil_0005fe
|> n$jsp.java:0: Class java.lang.Object not fou
|> nd in class javax.servlet.GenericServlet.
|> package org.apache.jsp;
|> ^
|> 2 errors
|>
|> at
|> org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
|> at
|> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
|> at
|> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
|ecessary(JspSe
|> rvlet.java:177)
|> at
|> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
|> (JspServlet.ja
|> va:189)
|> at
|> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
|.java:382)
|> at
|> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
|> at
|> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
|> at
|> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
|ionDispatcher.
|> java:683)
|>
|> Has anyone of you run into a similar problem? It would be
|> good if we could
|> upgrade the JVM because we have other problems with 1.3.1_02
|>
|>
|> Cheers,
|> János
|>
|> --
|> Jarecsni, János
|> MORGAN HILL CONSULTING, Internet Applications Unit
|> mailto:[EMAIL PROTECTED]
|> http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392
|>
|>
|> --
|> To unsubscribe:   
|> For additional commands: 
|> Troubles with the list: 
|>
|
|--
|To unsubscribe:   
|For additional commands: 
|Troubles with the list: 
|
|


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




Same host multiple ports don't work?

2002-02-22 Thread Anders Rundgren

Hi,

In IIS I'm able to define virtual servers using the same host-name
but different ports.   These virtual servers have independent paths
(applications) as you would expect.

I can't see any similar functionality in Tomcat or am I just reading
the config documents wrong???

regard,
Anders R


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




RE: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?

2002-02-22 Thread Jarecsni János

Yes.
Do you think it's a simple classpath problem?

Cheers,
János

--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392

|-Original Message-
|From: hanasaki [mailto:[EMAIL PROTECTED]]
|Sent: Friday, February 22, 2002 3:35 PM
|To: Tomcat Users List
|Subject: Re: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?
|
|
|Can you run it standalone?
|
|Jarecsni János wrote:
|> Hi,
|>
|> I'm a bit frustrated... I've just tried Catalina 4.0.2 (release)
|[embedded
|> in JBoss 2.4.4] on J2SDK 1.4.0 (Win32) and it doesn't work. The
|JSP compiler
|> complains in some cases about the 48.0 class file version:
|>
|>
|> [ERROR,EmbeddedCatalinaServiceSX] ApplicationDispatcher[/istore]
|> Servlet.service() for servlet jsp threw exception
|> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
|> Invalid class file format in f:\j2sdk1.4.0\jre\
|> lib\rt.jar(java/lang/Object.class).  The major.minor version
|'48.0' is too
|> recent for this tool to understand.
|>
|>
|F:\JBoss-2.4.4_Tomcat-4.0.2b\catalina\work\localhost\istore\bibliof
|il_0005fe
|> n$jsp.java:0: Class java.lang.Object not fou
|> nd in class javax.servlet.GenericServlet.
|> package org.apache.jsp;
|> ^
|> 2 errors
|>
|> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
|> at
|org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
|> at
|>
|org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecess
|ary(JspSe
|> rvlet.java:177)
|> at
|>
|org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspS
|ervlet.ja
|> va:189)
|> at
|> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
|> at
|org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
|> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
|> at
|>
|org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDi
|spatcher.
|> java:683)
|>
|> Has anyone of you run into a similar problem? It would be good
|if we could
|> upgrade the JVM because we have other problems with 1.3.1_02
|>
|>
|> Cheers,
|> János
|>
|> --
|> Jarecsni, János
|> MORGAN HILL CONSULTING, Internet Applications Unit
|> mailto:[EMAIL PROTECTED]
|> http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392
|>
|>
|> --
|> To unsubscribe:   
|> For additional commands: 
|> Troubles with the list: 
|>
|>
|
|
|--
|[EMAIL PROTECTED]
|   Spam : def: It's not kosher.
|
|
|--
|To unsubscribe:   
|For additional commands: 
|Troubles with the list: 
|
|


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




RE: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?

2002-02-22 Thread Randy Layman


This error message indicates that you are not running Catalina in
JDK 1.4 because the JDK produces file in format 48, but the previous
versions of the JDK/JRE are not able to read the file format (which is
indicated by the "version is to recent for this tool to understand").

Double check how you start JBoss to verify that it is running on the
new JDK and not using just the first JRE in your path.  You also might want
to try and remove all old versions of Java.

Randy


> -Original Message-
> From: Jarecsni János [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 9:25 AM
> To: Tomcat Users List
> Subject: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?
> Importance: High
> 
> 
> Hi,
> 
> I'm a bit frustrated... I've just tried Catalina 4.0.2 
> (release) [embedded
> in JBoss 2.4.4] on J2SDK 1.4.0 (Win32) and it doesn't work. 
> The JSP compiler
> complains in some cases about the 48.0 class file version:
> 
> 
> [ERROR,EmbeddedCatalinaServiceSX] ApplicationDispatcher[/istore]
> Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: Unable to compile class 
> for JSPerror:
> Invalid class file format in f:\j2sdk1.4.0\jre\
> lib\rt.jar(java/lang/Object.class).  The major.minor version 
> '48.0' is too
> recent for this tool to understand.
> 
> F:\JBoss-2.4.4_Tomcat-4.0.2b\catalina\work\localhost\istore\bi
bliofil_0005fe
> n$jsp.java:0: Class java.lang.Object not fou
> nd in class javax.servlet.GenericServlet.
> package org.apache.jsp;
> ^
> 2 errors
> 
> at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
> at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
ecessary(JspSe
> rvlet.java:177)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:189)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:382)
> at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
ionDispatcher.
> java:683)
> 
> Has anyone of you run into a similar problem? It would be 
> good if we could
> upgrade the JVM because we have other problems with 1.3.1_02
> 
> 
> Cheers,
> János
> 
> --
> Jarecsni, János
> MORGAN HILL CONSULTING, Internet Applications Unit
> mailto:[EMAIL PROTECTED]
> http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?

2002-02-22 Thread hanasaki

Can you run it standalone?

Jarecsni János wrote:
> Hi,
> 
> I'm a bit frustrated... I've just tried Catalina 4.0.2 (release) [embedded
> in JBoss 2.4.4] on J2SDK 1.4.0 (Win32) and it doesn't work. The JSP compiler
> complains in some cases about the 48.0 class file version:
> 
> 
> [ERROR,EmbeddedCatalinaServiceSX] ApplicationDispatcher[/istore]
> Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
> Invalid class file format in f:\j2sdk1.4.0\jre\
> lib\rt.jar(java/lang/Object.class).  The major.minor version '48.0' is too
> recent for this tool to understand.
> 
> F:\JBoss-2.4.4_Tomcat-4.0.2b\catalina\work\localhost\istore\bibliofil_0005fe
> n$jsp.java:0: Class java.lang.Object not fou
> nd in class javax.servlet.GenericServlet.
> package org.apache.jsp;
> ^
> 2 errors
> 
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> rvlet.java:177)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:189)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> java:683)
> 
> Has anyone of you run into a similar problem? It would be good if we could
> upgrade the JVM because we have other problems with 1.3.1_02
> 
> 
> Cheers,
> János
> 
> --
> Jarecsni, János
> MORGAN HILL CONSULTING, Internet Applications Unit
> mailto:[EMAIL PROTECTED]
> http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


-- 
[EMAIL PROTECTED]
Spam : def: It's not kosher.


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




RE: Starting JSP from HTML

2002-02-22 Thread Justin Rowles

> I am trying to start a JSP from an HTML page w/ the script:
> http://bmms.ibmms.com:8080/1st.jsp";
> where bmms.ibmms.com is the internal address of the JSP 
> location.  This
> works ine internally, but when I bring up the HTML page on 
> the internet,

It's prolly cos the name "bmms.ibmms.com" isn't in the internet DNS tables (I've 
checked), only in your internal networks routing tables, whatever they are.

What is that machine called from the rest of the world?  That's the name you need to 
use.

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Starting JSP from HTML

2002-02-22 Thread John Kolvereid

Hi,
I am trying to start a JSP from an HTML page w/ the script:
http://bmms.ibmms.com:8080/1st.jsp";
where bmms.ibmms.com is the internal address of the JSP location.  This
works ine internally, but when I bring up the HTML page on the internet,

it can't locate the proper server.  Is this a PORT issue, and if so
should this be addressed in the router.  Is it possible to make the JSP
port = 80.  I have tried repeatedly w/ no success.  I keep inserting
port="80" throughout the server.xml and it doesn't seem to respond.
Please advise.  Thanks.

--
  John Kolvereid
  http://www.akaodin.com
  http://www.kolvereid.com
  [EMAIL PROTECTED]
  1.610.296.4485



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




Re: I get an exception java.io.FileNotFoundException: Tomcat 4 ssl

2002-02-22 Thread Wolfgang Stein

Seems you have to much double quotes in th entry
  keystoreFile=""C:\WINDOWS\Profile\chucka\.keystore"

Gruß,
Wolfgang
 

> -Ursprüngliche Nachricht-
> Von: Chuck Amadi [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 22. Februar 2002 14:38
> An: tomcat
> Betreff: I get an exception java.io.FileNotFoundException: 
> Tomcat 4 ssl
> 
> 
> When Tomcat -4.0.2 starts up I get an exception 
> java.io.FileNotFoundException:
> 
> I have added a keystoreFile 
> attribute 
> keystoreFile="C:\WINDOWS\Profile\chucka\.keystore"
> 
> It still claims it can't find it - Thus basically how do i 
> add it to the 
> keystoreFile attribute as i am missing something quite obvisouly.
> 
> "C:\WINDOWS\Profile\chucka\.keystore" is the absolute path of my 
> .keystore File
> 
>  
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="" minProcessors="5" maxProcessors="75"
>enableLookups="true"
>acceptCount="10" debug="0" scheme="https" secure="true">
>className="org.apache.catalina.net.SSLServerSocketFactory"
>clientAuth="false"
> keystoreFile=""C:\WINDOWS\Profile\chucka\.keystore"
> keystorePass="test123"
> protocol="TLS"/>
> 
> 
> Any suggestions
> Cheers Chuck Amadi
> Systems Programmer
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>

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




Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?

2002-02-22 Thread Jarecsni János

Hi,

I'm a bit frustrated... I've just tried Catalina 4.0.2 (release) [embedded
in JBoss 2.4.4] on J2SDK 1.4.0 (Win32) and it doesn't work. The JSP compiler
complains in some cases about the 48.0 class file version:


[ERROR,EmbeddedCatalinaServiceSX] ApplicationDispatcher[/istore]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Invalid class file format in f:\j2sdk1.4.0\jre\
lib\rt.jar(java/lang/Object.class).  The major.minor version '48.0' is too
recent for this tool to understand.

F:\JBoss-2.4.4_Tomcat-4.0.2b\catalina\work\localhost\istore\bibliofil_0005fe
n$jsp.java:0: Class java.lang.Object not fou
nd in class javax.servlet.GenericServlet.
package org.apache.jsp;
^
2 errors

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)

Has anyone of you run into a similar problem? It would be good if we could
upgrade the JVM because we have other problems with 1.3.1_02


Cheers,
János

--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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




exception java.io.FileNotFoundException: Tomcat-4.0.2 ssl solved the problem should of used forward slashes oops stupid

2002-02-22 Thread Chuck Amadi

When Tomcat -4.0.2 starts up I get an exception 
java.io.FileNotFoundException:

I have added a keystoreFile attribute 
keystoreFile="C:\WINDOWS\Profile\chucka\.keystore"

It still claims it can't find it - Thus basically how do i add it to the 
keystoreFile attribute as i am missing something quite obvisouly.

"C:\WINDOWS\Profile\chucka\.keystore" is the absolute path of my 
.keystore File


   
 
   

Any suggestions
Cheers Chuck Amadi
Systems Programmer



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




Re: Configuring my own servlets on Tomcat4.0

2002-02-22 Thread H Socks

I've also just installed Tomcat 4. I had a bit of 
trouble at first, but got my servlets working in
the examples directory. Then I moved them to my own
application directory.

Things to look for:
1. I put a "package" statement in each servlet. e.g.
   "mywebapp". Make a subdirectory called mywebapp
   on the classes directory for your web application.
2. Set up the web.xml file for the application with
   entries for each servlet. Since they are in
   packages (e.g. package mywebapp;) then they
   will be known as mywebapp.MyServlet (for class
   from MyServlet.java).

   The web.xml file needs lines like these for each
   servlet (replace [ ] with lt and gt brackets):

   [servlet]
 [servlet-name]MyServlet[/servlet-name]
 [servlet-class]mywebapp.MyServlet[/servlet-class]
   [/servlet]

   This then hides the mywebapp subdirectory when the
   servlet is called, and the URL will be

   http://localhost:8080/app_dir/servletMyServlet

This should work!

Rob


 --- Dmitry Nikelshpur <[EMAIL PROTECTED]> wrote: >
Don't know if your problem is same as what happened
> to me, but you may 
> want to try this:
> Copy your application files into the examples
> directory. You may need to 
> edit the web.xml file accordingly (maybe just for
> one servlet initially).
> See if the servlet is found...If this works then
> just rename the 
> examples directory to whatever and voila
> 
> Dmitry
> 
> I'll be surprised if this works, but it did the
> trick for me..very wierd 
> stuff though :-)
> 
> Sampige, Srinivas wrote:
> 
> >Hi
> > I downloaded Tomcat4.0 just now and insalled it. I
> am able to run the
> >example servlets. When I try to create my own
> servlets OR whehn I try to
> >deploy and run those web apps that were working on
> the older version
> >(Tomcat3.2) the new servlets don't run. Any clues?
> I looked at the
> >documentation but could not find anything.
> >
> >thanks
> >-Srinivas
> >
> >--
> >To unsubscribe:  
> 
> >For additional commands:
> 
> >Troubles with the list:
> 
> >
> >
> >
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
>  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




RE: I get an exception java.io.FileNotFoundException: Tomcat 4 ss l

2002-02-22 Thread Pal, Anshu

Look at the keystoreFile attribute. You have 2 quotes (") there in the
beginning.. If that is not a typo it may be the problem.

Hope it helps

Anshu Pal

-Original Message-
From: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 8:38 AM
To: tomcat
Subject: I get an exception java.io.FileNotFoundException: Tomcat 4 ssl


When Tomcat -4.0.2 starts up I get an exception 
java.io.FileNotFoundException:

I have added a keystoreFile attribute 
keystoreFile="C:\WINDOWS\Profile\chucka\.keystore"

It still claims it can't find it - Thus basically how do i add it to the 
keystoreFile attribute as i am missing something quite obvisouly.

"C:\WINDOWS\Profile\chucka\.keystore" is the absolute path of my 
.keystore File

 

  


Any suggestions
Cheers Chuck Amadi
Systems Programmer


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

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




AW: I get an exception java.io.FileNotFoundException: Tomcat 4 ssl

2002-02-22 Thread Ralph Einfeldt

Make shure that the user that runs tomcat has the proper
permissions to read that file and the parent directories.

> -Ursprüngliche Nachricht-
> Von: Chuck Amadi [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 22. Februar 2002 14:38
> An: tomcat
> Betreff: I get an exception java.io.FileNotFoundException: 
> Tomcat 4 ssl
> 
> 
> When Tomcat -4.0.2 starts up I get an exception 
> java.io.FileNotFoundException:
> 
> I have added a keystoreFile 
> attribute 
> keystoreFile="C:\WINDOWS\Profile\chucka\.keystore"

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




Internal Server Error

2002-02-22 Thread Vinay Singh

Hello All,

I am running an application on Tomcat 3.2.3 , Apache 1.3.20 on Solaris 8. I
am running one tomcat instance with two workers (ajp12 and ajp13). Ajp 13 is
the one which is serving the request. 

I randomly get Internal Server Error, while browsing through the site and
then cannot see any of the pages. After this I am forced to restart tomcat.
Following is the log message in mod_jk.log -

___
[jk_ajp13_worker.c (204)]: connection_tcp_get_messa
vfull failed
[jk_ajp13_worker.c (622)]: Error reading request
[jk_ajp13_worker.c (492)]: Into jk_endpoint_t::done
_

Does anybody have any idea how to get rid of this.

> Vinay Singh
> Sapient New Delhi
> Cell   : +91-9810530548
>   Home: +91-11-6287733
> 



I get an exception java.io.FileNotFoundException: Tomcat 4 ssl

2002-02-22 Thread Chuck Amadi

When Tomcat -4.0.2 starts up I get an exception 
java.io.FileNotFoundException:

I have added a keystoreFile attribute 
keystoreFile="C:\WINDOWS\Profile\chucka\.keystore"

It still claims it can't find it - Thus basically how do i add it to the 
keystoreFile attribute as i am missing something quite obvisouly.

"C:\WINDOWS\Profile\chucka\.keystore" is the absolute path of my 
.keystore File

 

  


Any suggestions
Cheers Chuck Amadi
Systems Programmer


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




Any success with Tomcat 4.0.2 and client certificates in MS IE ?

2002-02-22 Thread Wolfgang Stein

Did anybody ever succeed in using client certs using MS IE ?

I tried with an openssl generated client cert,
also tried with a Thawte Freemail client cert,
all without success.

MS Internet Explorer always comes up with an empty
dialog box asking to select a client certificate.

The client certs work fine in Netscape Communicator.

I searched the archives and the WWW. A lot of people
encountered the same problem. Some guy talked about
differences in the ssl-handshake (search within 
  http://groups.google.com/
for
  SSL Client Authentication to Tomcat Web Server
)

His solution was a DN without eMail address generated
with a "Microsoft cert authority". I dont't have such
programm and cant generate such a request with openssl.

Any hints ? My boss will fire me if i spend some more
weeks on that problem :-).  I am tired of it, anyway.

Again: Did anybody ever succeed with MS IE + client certs + Tomcat?

Thanks in advance
Wolfgang Stein

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




AW: tomcat-4.0.2 keystore

2002-02-22 Thread Ralphn

Hi Chuck

It seems you have forgotten the "\" between C: and Windows

HTH
Ralph 


-Ursprungliche Nachricht-
Von: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 22. Februar 2002 14:10
An: tomcat
Betreff: tomcat-4.0.2  keystore


Hi . i am currently running tomcat4.0.2 M$98 .

I have created a certificate keystore by using the keytool and it 
resides at C:WINDOWS\Profile\chucka\.keystore.

In tomcat4.0.2\conf\server i have the following -



  


I had used certs that i created previously with tomcat-4.0.1  How do i 
set the correct path to the keystore.

Any Suggestions
Cheers Chuck Amadi
Systems Programmer


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

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




tomcat-4.0.2 keystore

2002-02-22 Thread Chuck Amadi

Hi . i am currently running tomcat4.0.2 M$98 .

I have created a certificate keystore by using the keytool and it 
resides at C:WINDOWS\Profile\chucka\.keystore.

In tomcat4.0.2\conf\server i have the following -



  


I had used certs that i created previously with tomcat-4.0.1  How do i 
set the correct path to the keystore.

Any Suggestions
Cheers Chuck Amadi
Systems Programmer


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




RE: CA guidance

2002-02-22 Thread Anton Brazhnyk

Hi,

> -Original Message-
> From: Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 5:22 PM
> To: Tomcat Users List
> Subject: CA guidance
> 
> 
> Hi, I'm using jdk1.4 final and I want to use SSL with Tomcat for
> CLIENT-CERT authentification.
> I've created self-signed certificate by keytool but how I can issue
> certificates for my company based on this(without third party CA)?
> 

I posted the following at least three times after I had found it in
this list. Why don't you use archives?

keytool -genkey -alias tomcat -keyalg RSA
keytool -certreq -alias tomcat -file my.csr

paste this into the signing authority request, you get back a cert that
you paste into a new file, i.e. mySigned.cer
make sure the root CA cert in you keystore or cacerts file as a
trusted certificate.
e.g.

keytool -import -alias RootCert -file RootCertificate.cer

keytool -import -trustcacerts -alias tomcat -file mySigned.cer

> Thanks in advice.
> 
> 
> 

Anton

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




RE: Strange javabean problem

2002-02-22 Thread Michael J. McCormac

> Hi Folks,
> 
> I'm using Tomcat 4.01 with Jbuilder 6.  I've got a strange problem.  
> It seems that if I try to dump data from a Java bean using the
>  tag I don't get the data.  However, if I reference 
> the value of the bean directly in a scriptlet it works fine.

greetings all,

i am having pretty much the same problem, but the implementation is a
little bit different.  i tried using an rmi process to retrieve the bean
directly from the JSP like so:


<%
rmiInt rmiServer = (rmiInt)Naming.lookup( "//server/service" );
myBean = (MyClass)rmiServer.getBean();
%>
  <- doesn't work!

one way i've managed to work around the problem was by creating and
loading the beans in a servlet first, throwing the beans in the session
object, then redirecting to the JSP file where i could pull them back
out of the session like this:


<% session.getAttribute( "mybean" ); %>
 <- works ok!!

but i don't like this solution...  it's inelegant ;)

thanks,
mike


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




Re: HELP PLEASE!!!: JSP/Tomcat/MySQL

2002-02-22 Thread Kurt Kurniawan

Probably you can also try to put your MySQL driver in the main ../jdk1.3.1/lib/ext/ 
directory. That's works fine for me... without putting the driver in the 
../web-inf/lib/

kurt

*
- NOTICE -
The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you 
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message 
and any attachments for viruses.  Under no circumstances do we accept 
liability for any loss or damage which may result from your receipt of 
this message or any attachments.
*


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




Re: Java servlet and mailing

2002-02-22 Thread Kurt Kurniawan

one simple way to do this is using this package:

sun.net.smtp.SmtpClient  You just have to import, and it comes with the J2SE, so don't 
have to do anythin'
But you need to have an SMTP server running.

import sun.net.smtp.SmtpClient;

and do : sun.net.smtp.SmtpClient sm = new sun.net.smtp.SmtpClient(mserver);

mserver is your SMTP server name. Can be the ip address if you like.
then:
sm.from("rfrom");
sm.to("rto@here");

rfrom and rto can be any String type, rto have to be email address of course. then do: 
PrintStream msg = sm.startMessage();

add:...
msg.println("To: ");
msg.println(rto);
msg.print("Subject: ");
msg.println("your message");
msg.println();
sm.closeServer();

That's it ! Don't forget to try and catch to see if this throws exceptions!

From:

Kurt

*
- NOTICE -
The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you 
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message 
and any attachments for viruses.  Under no circumstances do we accept 
liability for any loss or damage which may result from your receipt of 
this message or any attachments.
*


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




Re: Configuring my own servlets on Tomcat4.0

2002-02-22 Thread Kurt Kurniawan

the same thing happened to me. I found out that you have to placed all your web 
applications in Root directory. And have to put the servlets in Root/web-inf/classes 
somehow. I can't just put my apps in webapps directory, even if i set the web.xml 
files. Can not find a way to get around this yet. Anybody with clue plz post!

Kurt

*
- NOTICE -
The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you 
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message 
and any attachments for viruses.  Under no circumstances do we accept 
liability for any loss or damage which may result from your receipt of 
this message or any attachments.
*


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




Information required

2002-02-22 Thread shailesh


Hello,

I am shailesh, trying to implement the tomcat redirector on IIS.

I have followed all the steps mentioned in the tomcat-iis-howto.html
document.
On trying to execute the jsp pages from the IIS server,
I am getting HTTP 500 Internal server error on the web page.

On examining the IIS log file in the SYSTEM32/LogFiles directory , I am not
getting the
following line : GET "/jakarta/isapi_redirect.dll HTTP1.1".

1.The virtual directory that I have created is name as jakarta.
2.extension_uri is pointing to /jakarta/isapi_redirect.dll
3.The port settings for the worker.ajp12.port in the worker.properties file
and and the server.xml file is the same
   and its value is 8007.
4.On creating the virtual directory, the green coloured arrow (pointing
upwards) is visible.

The following strings have been created:

5.The value for extension_uri string is /jakarta/isapi_redirect.dll
6.The value for log_file is C:\jakarta-tomcat\logs\isapi.log
7.The value for log_level is info
8.The value for worker_file is C:\jakarta-tomcat\conf\workers.properties
9.The value for worker_mount_file is C:
\jakarta-tomcat\conf\uriworkermap.properties


Thanks & Regards



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




no re-load of indirect class

2002-02-22 Thread Joel Rees
Indirectly referred classes don't seem to get reloaded. Is this a known
behavior?

I have one class referencing another before going out to a jsp page, and I
have to shut tomcat down and bring it back up after re-compiling the
indirectly referred class, to get the changes to have any effect.

Is this just another of those things I'm being thick-headed about?

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka




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


Information required

2002-02-22 Thread shailesh


Hello,

I am shailesh, trying to implement the tomcat redirector on IIS.

I have followed all the steps mentioned in the tomcat-iis-howto.html
document.
On trying to execute the jsp pages from the IIS server,
I am getting HTTP 500 Internal server error on the web page.

On examining the IIS log file in the SYSTEM32/LogFiles directory , I am not
getting the
following line : GET "/jakarta/isapi_redirect.dll HTTP1.1".

1.The virtual directory that I have created is name as jakarta.
2.extension_uri is pointing to /jakarta/isapi_redirect.dll
3.The port settings for the worker.ajp12.port in the worker.properties file
and and the server.xml file is the same
   and its value is 8007.
4.On creating the virtual directory, the green coloured arrow (pointing
upwards) is visible.

The following strings have been created:

5.The value for extension_uri string is /jakarta/isapi_redirect.dll
6.The value for log_file is C:\jakarta-tomcat\logs\isapi.log
7.The value for log_level is info
8.The value for worker_file is C:\jakarta-tomcat\conf\workers.properties
9.The value for worker_mount_file is C:
\jakarta-tomcat\conf\uriworkermap.properties


Thanks & Regards




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




Re: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4

2002-02-22 Thread Dmitry Nikelshpur

Hi Sriram,

Try changing the .html extension to .jsp extensionThis should work 
if your JSP pages work :-)

Dmitry

Sriram Narayanan wrote:

>Hello all,
>
>I am able to use the RequestDispatcher forward control from one JSP page to another. 
>However I am unable to forward to HTML pages.
>>From what I read in the Servlet API spec (there's an example for /garden/ etc) and 
>the docs for RequestDispatcher(), one should indeed be 
>able to forward to HTML pages
>
>Here's what I have in my JSP:
>
><%getServletContext().getRequestDispatcher("/html/authhome.html").forward(request,response);%>
>
>And here's what I found in the generated JSP page:
>
>--- beginepartial quote -
>application = pageContext.getServletContext();
>config = pageContext.getServletConfig();
>session = pageContext.getSession();
>out = pageContext.getOut();
>
>// begin [file="/notauthorized.jsp";from=(0,2);to=(0,92)]
>
>getServletContext().getRequestDispatcher("/html/authhome.html").forward(request,response);
>// end
>// HTML // begin [file="/notauthorized.jsp";from=(0,94);to=(1,0)]
>out.write("\r\n");
>
>// end
>
>- end partial quote 
>
>Could someone please point me to what it is that I'm doing wrong ?
>
>I have only the Servlet API spec with me, and not the JSP spec, which I have not been 
>able to download yet (Internet connection problems)
>
>Thanks,
>
>Sriram
>
>
>
>_
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>



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




Re: classes visibility in the WEB-INF dir ----> SOLVED

2002-02-22 Thread Dmitry Nikelshpur

I had something 'similar' happen when I was installing Tomcat 4.0.2...
I could not get servlets in webapps/myapp/web-inf/classes to be found.
I kept changing paths, web/server.xml, etc., but nothing seemed to work.
However, /examples and another WAR file were working fine.
What I did was:
1) I copied the servlets into one of the directories that were working 
(eg. examples).
 The servlets were being found
2) I copied all code from the directory that was not working into the 
/examples directory.
3) renamed the directory to the old nameand all works fine ever since.

Things like this have worked for me in the past when I get REALLY 
frustratedWas I really missing something (doubtful I was misspelling 
the servlet's name in this case)...This is reminiscent of invisible 
characters :-)  ...or something was causing the servlets not to be loaded?!?

Dmitry

Amine AMAR wrote:

>Hi,
> I tried to jar the classes directory and reload TC, but I have the same behavior.
>
>I also tried creating a class kitabe.SearchUtilities2 with exacty the same code as 
>SearchUtilities (using save as). SearchUtilities2
>works fine, but not SearchUtilities.
>
>I then tried to rename my new SearchUtilities2 to SearchUtilities ---> THEN IT DID 
>WORK.
>
>This is very weard :?). I used to delete all .class files and recompile to be sure 
>that the files get recompiled, and that there is
>no problem related to that. If anyone of you have seen this behavior, please let us 
>know.
>
>Thank's all for your help
>
>Amine
>
>- Original Message -
>From: "Larry Isaacs" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Sent: Wednesday, February 20, 2002 7:02 PM
>Subject: RE: classes visibility in the WEB-INF dir
>
>
>>Do you know if any bean or servlet in the ketabe web application
>>successfully loads kitabe.SearchUtilities.  If you are not sure,
>>you could try:
>>
>><% kitabe.SearchUtilities su = new kitabe.SearchUtilities() %>
>>
>>on a test JSP page in ketabe and see if it compiles.
>>
>>Cheers,
>>Larry
>>
>>>-Original Message-
>>>From: Amine AMAR [mailto:[EMAIL PROTECTED]]
>>>Sent: Wednesday, February 20, 2002 1:35 PM
>>>To: Tomcat Users List
>>>Subject: Re: classes visibility in the WEB-INF dir
>>>
>>>
>>>Hi,
>>>
>>>Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory.
>>>Line 60 in kitabe.dal.home.AuthorHome.findByName() contain
>>>only a call for the constructor of kitabe.SearchUtilities
>>>(SearchUtilities su = new SearchUtilities();)
>>>
>>>Regards,
>>>Amine
>>>
>>>- Original Message -
>>>From: "Larry Isaacs" <[EMAIL PROTECTED]>
>>>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>>>Sent: Wednesday, February 20, 2002 5:47 PM
>>>Subject: RE: classes visibility in the WEB-INF dir
>>>
>>>
Are all "kitabe" classes located in your /ketabe/WEB-INF/classes
directory?  Also, to you know what the link is between what
kitabe.dal.home.AuthorHome.findByName() is doing around line 60
and kitabe.SearchUtilities?

Cheers,
Larry


>-Original Message-
>From: Amine AMAR [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 20, 2002 11:34 AM
>To: Tomcat Users List
>Subject: Re: classes visibility in the WEB-INF dir
>
>
>Hi,
>Sorry for misleading you. my directories are kitabe and com.
>The pb comes from the kitabe directory. the 'dir' was just for the
>exemple.
>here after the whole log file
>-
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploying class
>repositories to work directory
>C:\jakarta-tomcat-4.0.1\work\localhost\ketabe
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
>/WEB-INF/lib/classes12.jar to
>
>>>c:\www\ketabe\WEB-INF\lib\classes12.jar
>>>
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
>/WEB-INF/lib/crimson.jar to c:\www\ketabe\WEB-INF\lib\crimson.jar
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
>/WEB-INF/lib/log4j.jar to c:\www\ketabe\WEB-INF\lib\log4j.jar
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
>/WEB-INF/lib/poolman.jar to c:\www\ketabe\WEB-INF\lib\poolman.jar
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
>/WEB-INF/lib/xalan.jar to c:\www\ketabe\WEB-INF\lib\xalan.jar
>2002-02-20 15:56:15 WebappLoader[/ketabe]: Reloading checks
>are enabled for this Context
>2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding random
>number generator class java.security.SecureRandom
>2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding of
>random number generator has been completed
>2002-02-20 15:56:16 ContextConfig[/ketabe]: Added
>certificates -> request attribute Valve
>2002-02-20 15:56:16 StandardWrapper[/ketabe:default]: Loading
>container servlet default
>2002-02-20 15:56:16 default: init
>2002-02-20 15:56:16 StandardWrapper[/ketabe:invoker]: Loading
>container servlet invoker

Re: Configuring my own servlets on Tomcat4.0

2002-02-22 Thread Dmitry Nikelshpur

Don't know if your problem is same as what happened to me, but you may 
want to try this:
Copy your application files into the examples directory. You may need to 
edit the web.xml file accordingly (maybe just for one servlet initially).
See if the servlet is found...If this works then just rename the 
examples directory to whatever and voila

Dmitry

I'll be surprised if this works, but it did the trick for me..very wierd 
stuff though :-)

Sampige, Srinivas wrote:

>Hi
> I downloaded Tomcat4.0 just now and insalled it. I am able to run the
>example servlets. When I try to create my own servlets OR whehn I try to
>deploy and run those web apps that were working on the older version
>(Tomcat3.2) the new servlets don't run. Any clues? I looked at the
>documentation but could not find anything.
>
>thanks
>-Srinivas
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>



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




RES: change passwd for keystore

2002-02-22 Thread Angelica

I still having problem in change the passord of keystore
Could anybody help me please?

Thanks,
Angelica

-Mensagem original-
De: Angelica 
Enviada em: quinta-feira, 21 de fevereiro de 2002 17:04
Para: 'Tomcat Users List'
Assunto: RES: change passwd for keystore


Thanks Nathan,

but if I delete my keystore how can I recover it?
I don?t understand your sugestion

Angelica

-Mensagem original-
De: nathan phillips [mailto:[EMAIL PROTECTED]]
Enviada em: quinta-feira, 21 de fevereiro de 2002 16:57
Para: [EMAIL PROTECTED]
Assunto: Re: change passwd for keystore


I've just deleted my keystore and started over when I needed to change my 
password.  If you want to try this, find the file ".keystore" in your 
USER_HOME directory and delete it.


From: [EMAIL PROTECTED]
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: change passwd for keystore
Date: Thu, 21 Feb 2002 16:51:47 -0300
MIME-Version: 1.0
Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
MHotMailBE3E9AC2001740043114C0123183FED50; Thu, 21 Feb 2002 11:51:30 -0800
Received: (qmail 1242 invoked by uid 97); 21 Feb 2002 19:51:11 -
Received: (qmail 1231 invoked from network); 21 Feb 2002 19:51:10 -
>From tomcat-user-return-11852-nathanpp Thu, 21 Feb 2002 11:53:27 -0800
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Subscribe: 
List-Help: 
List-Post: 
List-Id: "Tomcat Users List" 
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
X-Mailer: Internet Mail Service (5.5.2653.19)
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

I?m trying others methods for install SSL CA Certificates on Tomcat4 and I
created a keystore with blank passwd anda now I
trying to change the passwd without sucessfull.
I simple made:
keytool -storepasswd
Enter keystore password:  changeit
then I made the comand:
keytool -keypasswd -alias importkey
Enter keystore password:  changeit
Enter key password for :  changeit
keytool error: java.security.UnrecoverableKeyException: Cannot recover key

How can I change my passwd without problems?
Could anybody help me?
I need this urgently

Thanks a lot.
Angelica

 >  -Mensagem original-
 > De:  Angelica
 > Enviada em:  terca-feira, 19 de fevereiro de 2002 15:23
 > Para:'[EMAIL PROTECTED]'
 > Assunto: Import CA SSL Certificate in Tomcat 4.0
 >
 >
 > Hello,
 >
 > I have been some problems with import SSL CA Certificates on Tomcat4.  It
 > just doesn?t running!!
 >
 > I generated a key with openssl e send it to authority VeriSign that send
 > me two files with the certificate. Then I have three files:
 > cetipnet.key (The public key I generated by openssl)
 > cetipnet.crt (The certificate sent to me by Verisign)
 > cetipnet.ca.crt (valid certificate by Certification Authority)
 >
 > I try do the following commands:
 >
 > keytool -import -v -trustcacerts -alias tomcat -file cetipnet.crt
 >
 > Then , when I start the tomcat and see by page https://localhost:8443
 > occurs error sayind that the page connot appears.
 >
 > I would like to know if there is some  way to import valid certificate by
 > Certification Authority (not selfSign) and how can I install it.
 >
 > When I try to generate a SSL certificate (RSA) for tomcat 4.0 it works
 > fine!! But I need to import a trusted CA Certificate from VeriSign and it
 > didn?t work.
 >
 > Could you help me please?
 >

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





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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

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




Re: Very Complex Tomcat 4 / Apache / Virtual Host question

2002-02-22 Thread chad kellerman

Les,

This part of Tomcat is a pain.  Actaully I am working on the same thing.  
Different directory structure but I want the same outcome.  I am not saying what I 
have done is right but it works.  At least so far.  It has only been running for a 
couple days with one vitual host, besides the actual host box name.


Red Hat 6.2 webapp module and tomcat 4.0.1

First the httpd.conf.  My directiry structure is different but just change it.

###Tomcat installation
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp jakarta.$hostboxservername.com:8008
###


THis section has to go below where you have the ServerName of the Host box declared.  
Or you get a bad host name error on apachectl configtest.

Next the Virtual Host.


User jak
Group jakartagrp
ServerName jakarta.gotc.net
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/jak/jakarta-www
TransferLog /home/jak/jakarta-logs/access-log
ScriptAlias /cgi-bin/ /home/jak/jakarta-www/cgi-bin/
WebAppConnection apoWarpConn warp jakarta.domain.net:8015
WebAppDeploy webapps  apoWarpConn/webapps/ 
WebAppDeploy  manager apoWarpConn /manager/
WebAppDeploy examples warpConnection /examples/


Once again all webapp module directives need to go after the ServerName.  I copied the 
examples from {TOMCAT_HOME}/webapps/examples to the Document root of the Virtual Host 
just to see if the damn things work.


  I have not touche the tomcat-users.xml or the web.xml in the {TOMCAT_HOME}/conf 
directory yet.  I am still going to do some testing on this configuration.  Plus I 
want to see if anyone have any feed back on how I can improve it.

Next is the server.xml configuration file.  I want all the log files for tomcat to go 
to my logs directory that I set in the Virtual Host section above.

Here is what I did to the server.xml file.
FIrst I changed The engine container.  I read in the tomcat3.2 docs that standalone is 
not the best performing engine, eventhough it is the default. ( I think its a java 
thing. :^)  So I changed it to In-process.  After I get everything configured I am 
going to test Out-of-process also.  But that is later.




Don't be confused with 


  

I left that alone.


Then I changed 




  I know localhost was supposed to be here, but whenever I tested the mail servlet, it 
acted "wierd".  But this way everything works good.


  Here it where I added the Virtual Host:


   



















  I put this whole section after the host section for the server and before the 




  

lines.


I still have to look into a few things.  My access logs for tomcat are not writing 
properly but everything else works.


   Now here is the most importatn part.  Make sure tomcat and apache are not running.  
Start tomcat first then apache, or it will not work.

That is what I have so far.  I might not be pretty or even right but it works.  Please 
it anyone has any suggestions let me, us, know.

Thanks

-chad






 
On Thu, 21 Feb 2002 22:46:23 -0500
"Les Hazlewood" <[EMAIL PROTECTED]> wrote:

> 
> Hi all, 
> 
> I've read a TON of literature over the last 3 days, and I've found much of 
> what I need to be lacking 
> 
> After reading full documentation on the jakarta website about how the 
> server.xml is organized for tomcat 4, I still have some questions... 
> 
> 
> I will first explain the desired setup, then I will show what I have. 
> 
> If you gracious folks can help me set this up, I will GLADLY set up a 
> complete HOW-TO replicating the solution on my website for all the world to 
> see.  Lord knows you probably get a lot of questions about this.  My hope is 
> to guide the user by the hand step by step for this complex process.  I have 
> been using Tomcat 3 for a long time with mod_jk and have been very happy, 
> but I now need the newer features of Tomcat 4. 
> 
> 
> Here's the setup (everywhere hereafter, I've replaced the actual domain 
> names with  for privacy...just know that everytime you see that, 
> its actually a domain name, and ignore the < > brackets :)) 
> 
> Redhat Linux 7.1
> Apache 1.3.19
> Java   JDK 1.4.0-rc
> Tomcat 4.0.2  Light Edition (since I have jdk 1.4)
>   installed in /usr/local/apache/jakarta/tomcat 
> 
> Virtual Host directories are located in:
>   /www/www..com/
>   /www/server..org/
>   /www/etc, etc, 
> 
> 
> Each domain name needs to run its own virtual machine, so I have set up the 
> following variables:
> $JAVA_HOME=/usr/local/java (where i have mine installed)
> $CATALINA_HOME = /usr/local/apache/jakarta/tomcat 
> 
> for each virtual host, I have a directory:
> /www/.com/tomcat 
> 
> this directory has the following subdirs and files for EACH Virtual Host:
> /www/.com/tomcat/bin/startup.sh
> /www/.com/tomcat/bin/shutdown.sh
> /www/.com/conf/server.xml
> /www/.com/conf/tomcat-users.xml
> /www/.com/conf/web.xml
> /www/.com/conf/catalina.policy
> /www/.com/

RE: Configuring Tomcat/apache service with mod_jk

2002-02-22 Thread Donald Lee

Go here,
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/
and download the file mod_jk-3.3-ap13-eapi.so and use that module.  it will
get rid of the eapi warning.  I don't know if it's preferable to change the
name of this file to mod_jk.so, but I just entered the name as is in
httpd.conf then used the AddModule mod_jk.c at the end of the AddModule
list.  I have detailed instructions here http://64.108.104.60/mod_jk.html


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Julien OIX
Sent: Thursday, February 21, 2002 5:14 AM
To: Tomcat list
Subject: Configuring Tomcat/apache service with mod_jk



When I start, my error_log says:

Starting httpd: [Thu Feb 21 09:33:37 2002] [warn] Loaded DSO
modules/mod_jk.so uses plain Apache 1.3 API, this module might crash
under EAPI! (please recompile it with -DEAPI)

How to recompile a RPM as said ?


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




RE: not suitable driver?

2002-02-22 Thread Justin Rowles

> getConnection("jdbc:mysql:3306://localhost/bukujsp?

Surely you mean:

getConnection("jdbc:mysql//localhost:3306/bukujsp?

They may be identical.  Anyone?

J.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Please check if this documentation on Tomcat 4 helps (it looks good)

2002-02-22 Thread Paulo Gaspar

I received this one via the webmaster mail and it looks interesting.
Paulo Gaspar

> -Original Message-
> From: Marty Hall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4 configuration and usage guide
> 
> 
> Hi. A lot of my students have had trouble setting up Tomcat 4 (ie 
> they didn't 
> go through the existing documentation carefully enough :-), so I put
> together a very hand-holding, step-by-step guide at
> http://www.moreservlets.com/Using-Tomcat-4.html
> 
> To my surprise, it has become pretty popular, with about 1,000 hits/day.
> 
> If the Tomcat-4 docs page wants to use it or link to it, feel free.
> 
> Cheers-
>   - Marty
> 
> 


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




AW: Is it possible to bind to EJB-s in a J2EE-complient waywith Tomcat 4?

2002-02-22 Thread Lauer, Oliver

You can use J2SDKEE1.3 or 1.3.1 as remote EJB-Container with TC. Up to now I
didn't manage to use the TC context, so I use my own.
Oliver 

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Anton Tagunov [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 8. Februar 2002 06:16
An: [EMAIL PROTECTED]
Betreff: Is it possible to bind to EJB-s in a J2EE-complient way with
Tomcat 4?


Hello, tomcat community!

I have a question regarding ejb-s and the J2EE-isms.

I know that the J2EE datasources are now available
with Tomcat. I may just configure conf/server.xml,
describe the datasource and go ahead. Very good.

1)

What about EJB-s? I understand that J2EE 1.3
mandates that the InitialContext be created with
as zero-argument constructor and that this
context should contain the EJB-s that have been
requested via  and 
elements in web.xml (along with other JNDI stuff
from web.xml)

1.1) Is this ejb functionality availalbe?
1.2) How to configure that?
1.3) What ejb containers may be used with Tomcat in
 a J2EE compliant way?
1.3.1) What ejb containers may run in the same jvm
   with Tomcat?
1.3.2) What ejb containers may run in a separate jvm?

2)
I understand that if we create InitialContexts
with special constructor and a special Map of parameters -
this has little to do with J2EE for web containers.

I guess that in this situation
- every creation of InitialContext requires establishing at
  least one new network connection
- hence may be as slow as creating a new database connection
- the InitialContext obtained has nothing to do with the
  ,  in web-xml
   and other environment stuff from web.xml.
Are all these statements correct?

3)

I failed to find anything in the docs.
The  element in the servler.xml
has remained a mistery for me.
Is it just a way to create a 
entry that is virtually added to all web.xml
files?

3.1) If yes, where's the  analog?

4) Would also be interesting to hear
   comments on the Tomcat 3.x family too

5) How are EJBs binded to JNDI namely for
   5.1) JBoss+Tomcat 3.2?
   5.2) JBOss+Tomcat 4?
   I know that this is best read in docs,
   but in general, just some configuration
   file per web app? Additional deployment
   descriptor put to WEB-INF?
   (Plus some JBoss-private setup)

   Do these JBoss+Tomcat combinations always
   run in the same jvm (this is actually a
   duplicate

6) Can JBoss/Tomcat run in differenct jvms?
   (Any versions of both?)

  

-- 
 - Anton

 mailto:[EMAIL PROTECTED]
 [EMAIL PROTECTED]



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


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


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




Re: not suitable driver?

2002-02-22 Thread Anja Falkner

Hi Isak,

the DriverManager has a method called availableDriver or so. Use this to
show, if your driver is registered.

If yes, your driver could be registered, but can not do his work with the
database. This is no problem of Tomcat.

If no, the driver.jar was not found by tomcat. Then try
Class.forName("org.gjt.mm.mysql.Driver").getInstance();

If this doesn't help, look to your context. Do you have a own context for
your webapplication. Create one and put the driver.jar to WEB-INF/lib.

Anja







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




not suitable driver?

2002-02-22 Thread Isak Rickyanto

I have this problem and please help me...

I have installed mm.mysql driver ( jar file )
in :
C:\tomcat4\lib
c:\tomcat4\webapps\Root\WEB-INF\lib\
c:\jdk1.3.1\lib\jre\ext
c:\tomcat4\common\lib

I have run this code , previous I have succeded run this program, but now it
show error :

javax.servlet.ServletException: No suitable driver

The CODES :
<%@ page language="java" import="java.sql.*"  %>
<%
ResultSet myResultSet=null;

Class.forName("org.gjt.mm.mysql.Driver");
Connection
myConn=DriverManager.getConnection("jdbc:mysql:3306://localhost/bukujsp?user
=root&password=ganteng");

Statement stmt=myConn.createStatement();

String kueri="INSERT INTO buku(isbn,judul,pengarang,penerbit,tahunterbit)
VALUES('9792023526','Belajar Sendiri Pemrograman PHP', 'M.Farid Aziz', 'Elex
Media Komputindo', '2001')";

int isitabel=stmt.executeUpdate(kueri);
%>



Membuat Tabel Buku dengan JSP


<%
if (isitabel==1){
out.println("Penambahan Data pada Tabel Berhasil");
out.println("Kueri yang dilakukan :"+kueri);
}
else
{
out.println("Penambahan Data Gagal");
}

stmt.close();
myConn.close();
%>







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




Re: A simple query

2002-02-22 Thread Joel Rees

Webapp, "webapps", "WEB-INF", WARs, it all gets _so_ confusing.

(What has happened to my brain? 8-<)

- Original Message -
Jan Søgaard corrected:


Hi.

If you mean, whether you are able to place the Servlet, (I don't know
about jsp, but I guess it is the same)
code outside the webapps directory, the answer is YES.

In your server.xml file, you are able to specify the docbase of your
code:
E.g.



In this way you can place the directories, located under the webapps, in
other places.

BR Jan

-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED]]
Sent: 22. februar 2002 10:00
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: A simple query


- Original Message -
Vishal Mukherjee queried:

> Is it mecessary to keep the physical folder under the webapps
directory.

If you mean to ask whether you must keep the folder containing the jsp
and
java source files inside the webapps directory, I think the answer is
yes.

** "inside a webapp directory," (Which is not the "webapps" directory.) **

But don't give up.

You can make your own webapps directories, which do not need to be kept
in

** "make your own webapp directories," **

the tomcat directory. The way you do this depends on your version of
tomcat:

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/appdev/index.html
(and follow the "Deployment Organization" link)

V. 3.2 uses  entries in the conf/server.xml file, which I only
figured out recently.

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html

V. 3.3 allows using the  entry in apps-appPath.xml files in
/conf.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html

I haven't messed with v. 4, so I don't know yet.




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




  1   2   >