RE: Antwort: RE: Antwort: RE: user principal, realm

2003-04-01 Thread Ralph Einfeldt
As I understood your problem I think that you have to
implement your own RequestWrapper as your username is 
not in an official attribute but a private one. (So 
tomcat wouldn't know how to give this information to 
a realm)

More on extending a RequestWrapper:
http://java.sun.com/products/servlet/Filters.html#72674

Also note that Realms are tomcat specific.

If you are trying o deal with Realms and BasicAuthenticator
these will couple your application strongly with tomcat:

"Although the Servlet Specification describes a portable 
mechanism for applications to declare their security 
requirements (in the web.xml deployment descriptor), 
there is no portable API defining the interface between 
a servlet container and the associated user and role 
information. In many cases, however, it is desireable 
to "connect" a servlet container to some existing 
authentication database or mechanism that already exists 
in the production environment. Therefore, Tomcat 4 
defines a Java interface (org.apache.catalina.Realm) 
that can be implemented by "plug in" components to 
establish this connection. "

From: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.htm


> -Original Message-
> From: Oliver Wulff [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 9:25 AM
> To: Tomcat Users List
> Subject: Antwort: RE: Antwort: RE: user principal, realm
> 
> 
> 
> org.apache.catalina.connector.RequestWrapper
> 
> I'm wondering if I could just implement my custom 
> authenticator (compare BasicAuthenticator.java) or a 
> custom Realm. But I don't know how I can register my authenticator.
> As mentioned already I want to read the delegated user from a 
> http header
> attribute and register it. Here the way how the 
> BasicAuthenticator does it:
> register(request, response, principal, 
> Constants.BASIC_METHOD, username,
> password);
> 
> My problem, am I free in choosing a constant? I don't have a password
> because authentication has been done in the apache server 
> which is in front
> of tomcat.
> 
> I don't know if I have to write a custom authenticator, a 
> custom Realm or
> overwrite RequestWrapper. In all cases, how can I integrate my custom
> classes in tomcat? I don't want to build a custom tomcat release.
> Integration should be possible by configuration.
> 
> 
> 
> 
> 
> 
> *** BITTE BEACHTEN ***
> Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
> möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
> Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
> genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
> irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
> Ausschluss jeder Reproduktion zu zerstören und die absendende Person
> umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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



RE: Taglib on tomcat 4.1.24

2003-04-01 Thread Arnaud HERITIER
Hi Dick.

I'm agree with you and I will follow your advices.

If I find some problems I'll post a Bug on Bugzilla.

Thx for your explanations.

Cheer

Arnaud

> -Message d'origine-
> De : Dick Zetterberg [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 1 avril 2003 17:42
> À : [EMAIL PROTECTED]
> Objet : Re: Taglib on tomcat 4.1.24
>
>
> >
> > I'm agree with you but what about properties used by the tag ??
> > For instances variables I can reset them in the begin of doStartTag.
> > But for an optional attribute of a tag I can't.
> > If for example I have a property foo :
> >
> > String foo = "";
> >
> > If I use a first time the tag with this property :
> > 
> >
> > and a second time without this property
> > 
> >
> > In the second time my property is always setted to "bar"
> and not to "".
> > I can't reset it manually in the doStartTag because I will
> delete the value
> > is the property is setted.
> >
> Hi,
>
> I do not think you should do anything in your tag to manage
> or reset that. Since the sets of attributes are different for
> the two invocations they same tag instance should not be used
> for them.
> So you should never try to modify the attributes of your tag
> (with attributes I mean the attributes you have specified in
> your tag library descriptor), from within your tag. The
> container should handle them.
> For example, in Resin, if the same tag is called with the
> same attribute several times Resin does not even call the
> setXXX method for that attribute the second time, since it
> knows that the attribute has not changed.
> Now if your example with mylib:mytag above does not work, and
> you are not messing with the attributes then of course it is
> possible that it is a Tomcat bug. I use Tomcat4.1.12 and have
> similar tags and they work ok though.
> Hope this was of any help.
>
> Best regards,
>
> Dick Zetterberg
> [EMAIL PROTECTED]
>
>
>
>
>
>
>


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



RE: Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Michael Mattox
I've narrowed this down to the fact that Tomcat isn't finding my
mbeans-descriptor.xml file.  I put this in my server.xml file:

  

But I have no idea where to place the actual mbean-descriptors.xml file.
Right now I have it with my Java classes under my WEB-INF/classes directory
but Tomcat must be looking for it some place else.

Michael




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



Antwort: RE: Antwort: RE: user principal, realm

2003-04-01 Thread Oliver Wulff

org.apache.catalina.connector.RequestWrapper

I'm wondering if I could just implement my custom authenticator (compare
BasicAuthenticator.java) or a custom Realm. But I don't know how I can
register my authenticator.
As mentioned already I want to read the delegated user from a http header
attribute and register it. Here the way how the BasicAuthenticator does it:
register(request, response, principal, Constants.BASIC_METHOD, username,
password);

My problem, am I free in choosing a constant? I don't have a password
because authentication has been done in the apache server which is in front
of tomcat.

I don't know if I have to write a custom authenticator, a custom Realm or
overwrite RequestWrapper. In all cases, how can I integrate my custom
classes in tomcat? I don't want to build a custom tomcat release.
Integration should be possible by configuration.






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.



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



RE: Antwort: RE: user principal, realm

2003-04-01 Thread Ralph Einfeldt
Which class/methods are you talking about ?

> -Original Message-
> From: Oliver Wulff [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:02 PM
> To: Tomcat Users List
> Subject: Antwort: RE: user principal, realm
> 
> I took a look to JavaDoc and saw that all methods are deprecated. 
> Is it really the right way? My first thought was that it's very low level.
> 

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



Re: JSP pages will not work for me. Please help

2003-04-01 Thread Bill Barker
It looks like you've got a stray XML parser lying around somewhere.  My
first guess would be $JAVA_HOME/jre/lib/ext, but you should check all of the
usual suspects.

"Donie Kelly" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all, I posted this earlier and no response and I've been looking at it
> ever since to no avail. I have two machines behind a load balancer ant he
> jsp pages work on one and not the other. Both machine use the same release
> of software for both jdk and tomcat and our application is identical on
both
> machine.
>
> Something is obviously different on the non-working machine but as you can
> see the exception is not too helpful.
>
> Please cast an over it if you have time and maybe you can see something
I'm
> missing.
>
> StandardContext[]: Servlet  threw load() exception
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
> at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3267)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.ClassCastException
> at
>
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
> java:93)
> at
>
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
> at
>
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
> che.java:165)
> at
>
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:1
> 38)
> at
>
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:32
> 4)
> at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3267)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
>
> Thanks
> Donie
>




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



RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Ralph Einfeldt
Is it possible that you have a tools.jar in the tomcat classpath
that is older than j2sdk1.4.1_01 ? (AFAIK some versions of
tomcat where delivered with tools.jar)

> -Original Message-
> From: Robert Priest [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 10:22 PM
> To: [EMAIL PROTECTED]
> Subject: Jasper Error wrong version of Object.class (48.0 , should be
> 47.0)
> 
> cannot access java.lang.Object bad class file: 
> C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class 
> file has wrong version 48.0, should be 47.0 Please remove or 
> make sure it appears in the correct subdirectory of the 
> classpath. public String getServletInfo() { 
> 

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



Re: compilation of mod_jk, Solaris 8 (intel) using ANT

2003-04-01 Thread Bill Barker
I did this once a while back, just to see how.  Then I decided to stick with
"configure" and "make".

The main thing that is needed is to add ${java.home}/../include/solaris to
the  section of jk/native/build.xml.  If you a building from CVS
HEAD, that should be enough.  If you are building from the 4.1.x source
distro, then don't bother adding the check, since it doesn't evaluate the OS
anyway.

Also, you can avoid the sym-link with cc by defining:
build.native.cc=gcc
in jk/build.properties

"Filip Hanik" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hey ya'all
>
> I am compiling mod_jk on Solaris 8 on intel platform using ANT. I am
> compiling everything fine except jk_jni_worker.c that completely barfs on
> me.
>
> I had to do some tweaks before I could get the rest to work here are the
> steps
>
> 1. Add libtool to my path
> 2. Create a symbolic link from /usr/local/bin/gcc to cc and add that to my
> path so when the program invokes cc it actually runs gcc.
>
> forget about mod_jk2, that one has so many errors it hurts my eyes :)
> but for mod_jk the only file that doesn't compile is jk_jni_worker.c, now
I
> am compiling with jdk 1.4.1, and the errors I am getting is some missing
or
> invalid header files from JAVA_HOME/include
>
> anyone succesfully compiled with another jdk, or with jdk1.4
>
> Filip




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



Tomcat on Win2k with IIS problem

2003-04-01 Thread Serges N. Zubkoff
Hi all. I have connected Tomcat 4.1.18 on Win2k to IIS with
isapi_redirector2.dll. Everyting works except data uploading through
octed stream. When I try to save info to a file (GZip) archive comes
wrong. Snding data to Tomcat directly or usiage of the old
isapi_redirector.dll solves the problem. Had anybody got such kind of
issue?


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



RE: Configuring Tomcat for multiple applications/users

2003-04-01 Thread Filip Hanik
just install several version of tomcat like

c:\tomcat\jakarta-tomcat-5
c:\tomcat\jakarta-tomcat-4.24.1-A
c:\tomcat\jakarta-tomcat-4.24.1-B

and then under each conf/ directory, modify the port numbers in the
server.xml
Filip

> -Original Message-
> From: dwightHugget [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 8:37 PM
> To: Tomcat Users List
> Subject: Configuring Tomcat for multiple applications/users
>
>
> Can anyone point me to how to get this type of setup.
> I want to have multiple instance of tomcat running on the same
> machine under
> different ports, say 80, 8080, & .
> Would I achieve this if I setup an env variable called CATALINA_BASE as
> described in the RUNNING.txt file ?
>
> I have only one server box and want to have a production,
> development, and
> experiment capability.
>
> Finally, how can I run 2 different release of Tomcat ?
> Say, I want to run 4.1.24 and 5 on the same machine.
>
> thanks
> --
> Dwight Hugget
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: GUI for ant ...

2003-04-01 Thread David Orriss Jr
On Monday, March 31, 2003 9:06 AM,
Reynir Hübner <[EMAIL PROTECTED]> wrote:

> Hi guys..
>
> How about http://ant.apache.org/projects/antidote/index.html
>
> -reynir
>

Hey.. thanks for sharing.  That'll be a big help.  We're trying to get our
projects in jbuilder built around using ANT instead of the JBuilder build
system.  This will be a big help...

--
David Orriss Jr.

Please email me if you want my ICQ/AIM/IM ID's.



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



RE: Tomcat 4.1.24 Jasper Compile Problem

2003-04-01 Thread Steve Vanspall
Thanks, that will be my last resort.

It's a pity that's what has to be done, because the older versions are fine
with spaces in the path

Steve

-Original Message-
From: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 April 2003 2:37 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.24 Jasper Compile Problem



> [javac] javac: invalid flag: C:\Program

Avoid using directory name with spaces, try to install your tomcat in
c:\tomcat41 for example.



- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 12:16 PM
Subject: Tomcat 4.1.24 Jasper Compile Problem


> Hi there,
>
> I have this problem where Tomcat 4.1.24 doesn't let me compile the jsp's,
I
> assume, as you will se ein the error message, that tomcat has a problem
with
> there being spaces in the path to where it can find the JSP java code
files.
>
> in my case this is under the Program Files/Apache Group/Tomcat 4.1
> directory.
>
> the error I am getting is
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: -1 in the jsp file: null
>
> Generated servlet error:
> [javac] Since fork is true, ignoring compiler setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler setting.
> [javac] javac: invalid flag: C:\Program
> [javac] Usage: javac
> [javac] where possible options include:
> [javac]   -gGenerate all debugging info
> [javac]   -g:none   Generate no debugging info
> [javac]   -g:{lines,vars,source}Generate only some debugging info
> [javac]   -nowarn   Generate no warnings
> [javac]   -verbose  Output messages about what the
> compiler is doing
> [javac]   -deprecation  Output source locations where
> deprecated APIs are used
> [javac]   -classpath  Specify where to find user class files
> [javac]   -sourcepath Specify where to find input source files
> [javac]   -bootclasspath  Override location of bootstrap class
files
> [javac]   -extdirsOverride location of installed
extensions
> [javac]   -d Specify where to place generated class files
> [javac]   -encoding   Specify character encoding used by source
> files
> [javac]   -source  Provide source compatibility with specified
> release
> [javac]   -target  Generate class files for specific VM
version
> [javac]   -help Print a synopsis of standard
options
>
> 4.1.19 had this problem also, 4.1.18 doesn't though.
>
> I figured I would see if anyone is aware of this problem, and a way around
> it. Prefereably, that solution would not be move webapp to a path that has
> no spaces in it.
>
> I was hoping that the problem would be fixed in this version, yes i did
> report the bug to apache.
>
> The reason I need 4.1.18+ is because there is a logging problem with
4.1.18
> and SSL
>
> Any help would be appreciated
>
> Regards
>
> Steve
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



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



Re: Tomcat 4.1.24 Jasper Compile Problem

2003-04-01 Thread Rosdi bin Kasim

> [javac] javac: invalid flag: C:\Program

Avoid using directory name with spaces, try to install your tomcat in
c:\tomcat41 for example.



- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 12:16 PM
Subject: Tomcat 4.1.24 Jasper Compile Problem


> Hi there,
>
> I have this problem where Tomcat 4.1.24 doesn't let me compile the jsp's,
I
> assume, as you will se ein the error message, that tomcat has a problem
with
> there being spaces in the path to where it can find the JSP java code
files.
>
> in my case this is under the Program Files/Apache Group/Tomcat 4.1
> directory.
>
> the error I am getting is
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: -1 in the jsp file: null
>
> Generated servlet error:
> [javac] Since fork is true, ignoring compiler setting.
> [javac] Compiling 1 source file
> [javac] Since fork is true, ignoring compiler setting.
> [javac] javac: invalid flag: C:\Program
> [javac] Usage: javac
> [javac] where possible options include:
> [javac]   -gGenerate all debugging info
> [javac]   -g:none   Generate no debugging info
> [javac]   -g:{lines,vars,source}Generate only some debugging info
> [javac]   -nowarn   Generate no warnings
> [javac]   -verbose  Output messages about what the
> compiler is doing
> [javac]   -deprecation  Output source locations where
> deprecated APIs are used
> [javac]   -classpath  Specify where to find user class files
> [javac]   -sourcepath Specify where to find input source files
> [javac]   -bootclasspath  Override location of bootstrap class
files
> [javac]   -extdirsOverride location of installed
extensions
> [javac]   -d Specify where to place generated class files
> [javac]   -encoding   Specify character encoding used by source
> files
> [javac]   -source  Provide source compatibility with specified
> release
> [javac]   -target  Generate class files for specific VM
version
> [javac]   -help Print a synopsis of standard
options
>
> 4.1.19 had this problem also, 4.1.18 doesn't though.
>
> I figured I would see if anyone is aware of this problem, and a way around
> it. Prefereably, that solution would not be move webapp to a path that has
> no spaces in it.
>
> I was hoping that the problem would be fixed in this version, yes i did
> report the bug to apache.
>
> The reason I need 4.1.18+ is because there is a logging problem with
4.1.18
> and SSL
>
> Any help would be appreciated
>
> Regards
>
> Steve
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Configuring Tomcat for multiple applications/users

2003-04-01 Thread dwightHugget
Can anyone point me to how to get this type of setup.
I want to have multiple instance of tomcat running on the same machine under 
different ports, say 80, 8080, & .
Would I achieve this if I setup an env variable called CATALINA_BASE as 
described in the RUNNING.txt file ?

I have only one server box and want to have a production, development, and 
experiment capability.

Finally, how can I run 2 different release of Tomcat ?
Say, I want to run 4.1.24 and 5 on the same machine.

thanks
-- 
Dwight Hugget


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



Tomcat 4.1.24 Jasper Compile Problem

2003-04-01 Thread Steve Vanspall
Hi there,

I have this problem where Tomcat 4.1.24 doesn't let me compile the jsp's, I
assume, as you will se ein the error message, that tomcat has a problem with
there being spaces in the path to where it can find the JSP java code files.

in my case this is under the Program Files/Apache Group/Tomcat 4.1
directory.

the error I am getting is

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] javac: invalid flag: C:\Program
[javac] Usage: javac
[javac] where possible options include:
[javac]   -gGenerate all debugging info
[javac]   -g:none   Generate no debugging info
[javac]   -g:{lines,vars,source}Generate only some debugging info
[javac]   -nowarn   Generate no warnings
[javac]   -verbose  Output messages about what the
compiler is doing
[javac]   -deprecation  Output source locations where
deprecated APIs are used
[javac]   -classpath  Specify where to find user class files
[javac]   -sourcepath Specify where to find input source files
[javac]   -bootclasspath  Override location of bootstrap class files
[javac]   -extdirsOverride location of installed extensions
[javac]   -d Specify where to place generated class files
[javac]   -encoding   Specify character encoding used by source
files
[javac]   -source  Provide source compatibility with specified
release
[javac]   -target  Generate class files for specific VM version
[javac]   -help Print a synopsis of standard options

4.1.19 had this problem also, 4.1.18 doesn't though.

I figured I would see if anyone is aware of this problem, and a way around
it. Prefereably, that solution would not be move webapp to a path that has
no spaces in it.

I was hoping that the problem would be fixed in this version, yes i did
report the bug to apache.

The reason I need 4.1.18+ is because there is a logging problem with 4.1.18
and SSL

Any help would be appreciated

Regards

Steve


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



SSL via files for Apache ?

2003-04-01 Thread Jano Fetyko
Hi all,
 
I have search the archive but didn't find an answer to my dilema. Our admin got me SSL 
certificate and private key that they use on their Apache server for SSL. It's signed 
by Verisign. 
 
I was wondering if there is a way to use these files to create the keystore instead of 
going through the process of creating the self signed cert. , submitting to Verisign 
and then adding those to keystore as described in the Tomcat SSL how to. ???
 
My concern is that since we already have these files and it has been payed for, we 
don't want to pay Verisgn again to sign another certificate.
 
Thank you for all your response.
 
Jano


Re: Memory Woes

2003-04-01 Thread Mark Pease
Jake - you are a genius!  I reverted back to 1.4.0_03 and the memory leak
problem seems to have gone away.  I am heavily dependent on StringBuffers
for generating XML, so this bug was really causing problems.

Thanks for your time!
Mark

- Original Message -
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 31, 2003 11:28 AM
Subject: Re: Memory Woes


>
> Possibly this StringBufffer.toString() memory leak bug in j2sdk1.4.1?
What
> JDK do you use?  j2sdk1.4.0 doesn't suffer from this issue...
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 03:05 PM 3/30/2003 -0500, you wrote:
> >Actually, this is 100% servlet-powered... no JSP pages are used.  Anyone
> >else know of any issues?
> >
> >Mark
> >
> >- Original Message -
> >From: <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, March 28, 2003 8:17 AM
> >Subject: Memory Woes
> >
> >
> >Hello,
> >
> >Has anyone had any memory issues when running Tomcat in a production
> >environment where it stays up for weeks?  I have a webapp that is fairly
> >intense, using the Struts framework (which is great, by the way!)  with
> >streaming data to sockets and database logging to mySQL.  I have several
of
> >these apps running in one Tomcat installation.
> >
> >My problem is that memory usage keeps steadily creeping up on me until I
> >start
> >getting the dreaded java.lang.OutOfMemoryError (or something like that).
> >
> >I bumped up the memory settings for the JVM memory settings, which simply
> >delays the problem, but it still happens. (-Xmx... )
> >
> >I have also profiled the application, and found that after garbage
> >collection
> >all of my objects go back to the original usage levels (as far as
> >instances). None of them are continually appending to a string or
anything
> >like that... mainly just state information.
> >
> >I'm not sure where to go from here - having to occasionally restart
Tomcat
> >once a month is not a workable solution for me.
> >
> >Any advice would be GREATLY appreciated!
> >
> >Mark
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: session between domains

2003-04-01 Thread Filip Hanik
aahhh, now I see, you are asking about sessions between domains.
That is always gonna be impossible with tomcat as it is right now.
My question answered how to make a cookie persist across domains.

the answer on how to do the "sessions between domains" depends on how much
data you store in the session.

If you session has a tiny footprint, then store the data in the cookie
itself.
If you session has a medium footprint, then you could store session data in
the database,and then access it from all your servers since your "own"
cookie will have the ID.
If your session has a large footprint, then you performance is gonna be slow
no matter what, since I assume that your different tomcats are running on
different servers.

Filip

> -Original Message-
> From: Troy A. Griffitts [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:05 PM
> To: Tomcat Users List
> Subject: Re: session between domains
>
>
> Filip,
>   Right, I think I understand your response, but, I believe I
> only have 1
> webapp on the server.
>
>   Regardless, I thank you for your assessment of the problem, and for
> your helpful suggestion.  But I'm not quite sure what you mean:
>
> "then keep track of it yourself"
>
> Are you suggesting that I set the jsessionid in my own cookie?  If so, I
> couldn't find a function to get it, much less another function to use
> the jsessionid to retrieve the associated session object.
>
> Otherwise, are you suggesting that I just extract the data that I need
> from the session and set cookies for it all, then grab the cookie data
> on the secure page?
>
> Could i post to the secure page with the data maybe?
>
> hr
>
>
>
> Filip Hanik wrote:
> > tomcat sessions are not only specific to your domain, but also
> to the actual
> > webapp.
> >
> > tomcat per spec can not share cookies across webapps, even less across
> > domain.
> >
> > why dont you set your own cookie, and set the domain to
> myserver.com, and
> > then keep track of it yourself
> >
> > Filip
> >
> >
> >>-Original Message-
> >>From: Troy A. Griffitts [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, April 01, 2003 4:40 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: session between domains
> >>
> >>
> >>Hey guys.  I have a standard site, say:
> >>
> >>http://mysite.myserver.com
> >>
> >>And eventually the user gets to a place where we'll need to jump them to
> >>something like:
> >>
> >>https://secure.myserver.com
> >>
> >>to take their credit card information.  I lose my session when doing
> >>this.  Both URLs point to the same server and are served by the same
> >>webapp-- I can shop the whole site on https://secure.myserver.com/, but
> >>I can't make the jump.
> >>
> >>I'm guessing it probably has something to do with my jsessionid being
> >>stored as a cookie.  I was wondering if I could force the
> >>';jsessionid=...' to the url or something.
> >>
> >>
> >>Otherwise, how does one usually handle such a common thing with tomcat?
> >>
> >>-Troy.
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: Out of memory error

2003-04-01 Thread Goehring, Chuck Mr., RCI - San Diego


I just looked at this in Bug Parade.  They put out a J2SE Version 1.4.1_02 but the 
release notes don't mention this bug. The bug (4724129) is still listed as "In 
progress". I don't see a "Known problem" section of the release notes either.

This probably explains a bunch of problems reported recently on this list.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:38 PM
To: Tomcat Users List
Subject: RE: Out of memory error



could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
>I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
>switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
>it solved the problem.
>
>Steve
>
>-Original Message-
>From: Darian Shimy [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 1:16 PM
>To: 'Tomcat Users List'
>Subject: RE: Out of memory error
>
>
>Set the memory using -Xmx and -Xms.  This should take care of the memory
>problems.
>
>If you want to monitor the heap usage, add -verbose:gc
>
>--
>Darian Shimy
>
> > -Original Message-
> > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 31, 2003 12:21 PM
> > To: Tomcat Users List
> > Subject: Out of memory error
> >
> >
> > Hi,
> >
> > Very occasionally my Tomcat server runs into out of memory
> > errors. I'ts not
> > a heavily used server, less than 10 users a day I'd guess on
> > an Intranet.
> > But every month or so it runs into memory problems. The
> > newest ones occurred
> > yesterday and I didn't hear about them until today. When I
> > investigated I
> > found hundreds of these lines repeating themselves in the
> > catalina log.
> >
> > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > 'nnn.nnn.nn.nn'
> >
> > They were eventually followed by this:
> >
> > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > java.lang.OutOfMemoryError
> >
> > Can anyone tell me whether the first lines indicate a cause
> > of the out of
> > memory error or whether they're just another symptom of running out of
> > memory?
> >
> > Thanks for any ideas,
> >
> > Ken
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: time zone

2003-04-01 Thread Chakradhar Tallam
thanks greg. that did the trick.

-Original Message-
From: Greg Speechley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 11:04 AM
To: Tomcat Users List
Subject: RE: time zone


I had the same problem when we put service pack 3 onto a win2k box. See bug
report 4762673 at java.sun.com.

The problem is that the jre time is set to GMT by sp3. To fix it change the
timezone to something different, save it then change it back to your
timezone. Restart tomcat and problem should be fixed :)

> -Original Message-
> From: Chakradhar Tallam [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 2 April 2003 10:05 AM
> To: 'Tomcat Users List'
> Subject: RE: time zone
>
>
> the machine (operating system) is in correct time zone, but when
> tomcat runs
> it shows GMT times on tomcat's console.
>
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 10:37 AM
> To: Tomcat Users List
> Subject: RE: time zone
>
>
> change it on your machine (operating system)
>
> Filip
>
> > -Original Message-
> > From: Chakradhar Tallam [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 01, 2003 4:17 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: time zone
> >
> >
> > hi,
> >
> > here is a quick question. how do i change the time zone that
> > tomcat runs in?
> >
> > thanks in advance,
> >
> > -
> > Chakradhar Tallam
> > Consultant
> > Object Consulting
> > Level 11 / 75 Miller Street, North Sydney, NSW - 2060
> > Phone: +61 2 9459 3356 Fax: +61 2 9955 6659
> > Email: [EMAIL PROTECTED]
> > Web: http://www.objectconsulting.com.au/
> > 
> > consulting | development | training | support
> > our experience makes the difference
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


Re: session between domains

2003-04-01 Thread Troy A. Griffitts
Filip,
	Right, I think I understand your response, but, I believe I only have 1 
webapp on the server.

	Regardless, I thank you for your assessment of the problem, and for 
your helpful suggestion.  But I'm not quite sure what you mean:

"then keep track of it yourself"

Are you suggesting that I set the jsessionid in my own cookie?  If so, I 
couldn't find a function to get it, much less another function to use 
the jsessionid to retrieve the associated session object.

Otherwise, are you suggesting that I just extract the data that I need 
from the session and set cookies for it all, then grab the cookie data 
on the secure page?

Could i post to the secure page with the data maybe?

hr



Filip Hanik wrote:
tomcat sessions are not only specific to your domain, but also to the actual
webapp.
tomcat per spec can not share cookies across webapps, even less across
domain.
why dont you set your own cookie, and set the domain to myserver.com, and
then keep track of it yourself
Filip


-Original Message-
From: Troy A. Griffitts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 4:40 PM
To: [EMAIL PROTECTED]
Subject: session between domains
Hey guys.  I have a standard site, say:

http://mysite.myserver.com

And eventually the user gets to a place where we'll need to jump them to
something like:
https://secure.myserver.com

to take their credit card information.  I lose my session when doing
this.  Both URLs point to the same server and are served by the same
webapp-- I can shop the whole site on https://secure.myserver.com/, but
I can't make the jump.
I'm guessing it probably has something to do with my jsessionid being
stored as a cookie.  I was wondering if I could force the
';jsessionid=...' to the url or something.
Otherwise, how does one usually handle such a common thing with tomcat?

	-Troy.

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



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


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


RE: time zone

2003-04-01 Thread Greg Speechley
I had the same problem when we put service pack 3 onto a win2k box. See bug
report 4762673 at java.sun.com.

The problem is that the jre time is set to GMT by sp3. To fix it change the
timezone to something different, save it then change it back to your
timezone. Restart tomcat and problem should be fixed :)

> -Original Message-
> From: Chakradhar Tallam [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 2 April 2003 10:05 AM
> To: 'Tomcat Users List'
> Subject: RE: time zone
>
>
> the machine (operating system) is in correct time zone, but when
> tomcat runs
> it shows GMT times on tomcat's console.
>
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 10:37 AM
> To: Tomcat Users List
> Subject: RE: time zone
>
>
> change it on your machine (operating system)
>
> Filip
>
> > -Original Message-
> > From: Chakradhar Tallam [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 01, 2003 4:17 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: time zone
> >
> >
> > hi,
> >
> > here is a quick question. how do i change the time zone that
> > tomcat runs in?
> >
> > thanks in advance,
> >
> > -
> > Chakradhar Tallam
> > Consultant
> > Object Consulting
> > Level 11 / 75 Miller Street, North Sydney, NSW - 2060
> > Phone: +61 2 9459 3356 Fax: +61 2 9955 6659
> > Email: [EMAIL PROTECTED]
> > Web: http://www.objectconsulting.com.au/
> > 
> > consulting | development | training | support
> > our experience makes the difference
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: Getting pretty far off topic here

2003-04-01 Thread mike jackson
java.lang.reflection... ;)

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 4:49 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Reflection is my friend? You haven't looked in my mirror lately!

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:38 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


It's that last little bit that's the hard part.  If you can I'd put a
column
in the database that id's the card type (assuming you don't have that
already).

Also, remember that reflection is your friend...

Good luck.

--mikej

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 4:19 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Thanks: I think just writing it down, Again, Helps me think it through. 
I've got the main steps you mention Mike, it's just that last little
bit:
what do I do with this now?
I am going to play with string manipulation stuff and see where that
gets
me.

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


First things first, you need some standard way to determine the card
type.  

Then you need a configuration file which says do this for this card
type.  

This could be a series of rules to follow, or could be a list of objects
to
instantiate to process the card type.  

If it's going to go the object route you probably need to have a set of
interfaces that all different card handlers need to implement, and
possibly
a super class of some sort.

Anyway, enjoy working on it.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:55 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Here's some more info:

One database, several tables (about twenty).

The tables hold information about someone who uses the card, a
cardholder.

Each card has a particular type.

Each card type uses different information, for example one card type may
need the cardholder's name and address, while another may only need to
know
their number.

For the user (not to be confused with the cardholder) to use the system
they
need to be able to work with each kind of card and ONLY the data that is
relevant to that card.

The user also needs to be able to add new card types that use particular
data. This is why I think I need to store the information about which
fields
are relevant in a standard way. As new cards are added there needs to be
a
process in place for storing the information about that card.

I don't know what a rule processor or a rules engine is. 

My sense is that this is not a really complicated problem just one that
needs a fiendishly clever and simple solution. That's all ;).

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


1) Just to be sure, databases or tables?  Or since it's Oracle, do you
mean
different Schemas?  If it's different schemas then I'd create synonyms
into
a new schema for each of the different data sources (tables / schemas /
databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at
what's
common between the different card types, and figure out how to determine
which card type you are working with.  Then based on the card type you
have
a rules engine, which may or may not load custom code for that card
type.  

Then again this sounds like you have a really elaborate need here, it's
not
going to be really easy to point you in a direction unless we have a
better
picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the
database.
Each card accesses a different collection of data from different
attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of
data.
The number of possible new cards is relatively infinite. That is why I
can't
do a specific JSP file 

RE: session between domains

2003-04-01 Thread Filip Hanik
tomcat sessions are not only specific to your domain, but also to the actual
webapp.

tomcat per spec can not share cookies across webapps, even less across
domain.

why dont you set your own cookie, and set the domain to myserver.com, and
then keep track of it yourself

Filip

> -Original Message-
> From: Troy A. Griffitts [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 4:40 PM
> To: [EMAIL PROTECTED]
> Subject: session between domains
>
>
> Hey guys.  I have a standard site, say:
>
> http://mysite.myserver.com
>
> And eventually the user gets to a place where we'll need to jump them to
> something like:
>
> https://secure.myserver.com
>
> to take their credit card information.  I lose my session when doing
> this.  Both URLs point to the same server and are served by the same
> webapp-- I can shop the whole site on https://secure.myserver.com/, but
> I can't make the jump.
>
> I'm guessing it probably has something to do with my jsessionid being
> stored as a cookie.  I was wondering if I could force the
> ';jsessionid=...' to the url or something.
>
>
> Otherwise, how does one usually handle such a common thing with tomcat?
>
>   -Troy.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: Getting pretty far off topic here

2003-04-01 Thread Sandra Patricia Hunter
Reflection is my friend? You haven't looked in my mirror lately!

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:38 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


It's that last little bit that's the hard part.  If you can I'd put a column
in the database that id's the card type (assuming you don't have that
already).

Also, remember that reflection is your friend...

Good luck.

--mikej

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 4:19 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Thanks: I think just writing it down, Again, Helps me think it through. 
I've got the main steps you mention Mike, it's just that last little
bit:
what do I do with this now?
I am going to play with string manipulation stuff and see where that gets
me.

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


First things first, you need some standard way to determine the card type.  

Then you need a configuration file which says do this for this card type.  

This could be a series of rules to follow, or could be a list of objects to
instantiate to process the card type.  

If it's going to go the object route you probably need to have a set of
interfaces that all different card handlers need to implement, and possibly
a super class of some sort.

Anyway, enjoy working on it.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:55 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Here's some more info:

One database, several tables (about twenty).

The tables hold information about someone who uses the card, a cardholder.

Each card has a particular type.

Each card type uses different information, for example one card type may
need the cardholder's name and address, while another may only need to know
their number.

For the user (not to be confused with the cardholder) to use the system they
need to be able to work with each kind of card and ONLY the data that is
relevant to that card.

The user also needs to be able to add new card types that use particular
data. This is why I think I need to store the information about which fields
are relevant in a standard way. As new cards are added there needs to be a
process in place for storing the information about that card.

I don't know what a rule processor or a rules engine is. 

My sense is that this is not a really complicated problem just one that
needs a fiendishly clever and simple solution. That's all ;).

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


1) Just to be sure, databases or tables?  Or since it's Oracle, do you mean
different Schemas?  If it's different schemas then I'd create synonyms into
a new schema for each of the different data sources (tables / schemas /
databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at what's
common between the different card types, and figure out how to determine
which card type you are working with.  Then based on the card type you have
a rules engine, which may or may not load custom code for that card type.  

Then again this sounds like you have a really elaborate need here, it's not
going to be really easy to point you in a direction unless we have a better
picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the database.
Each card accesses a different collection of data from different attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of data.
The number of possible new cards is relatively infinite. That is why I can't
do a specific JSP file for each card type: the card types that exist now may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so that I
can access them when I need to display data about that 

RE: time zone

2003-04-01 Thread Chakradhar Tallam
the machine (operating system) is in correct time zone, but when tomcat runs
it shows GMT times on tomcat's console.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 10:37 AM
To: Tomcat Users List
Subject: RE: time zone


change it on your machine (operating system)

Filip

> -Original Message-
> From: Chakradhar Tallam [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 4:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: time zone
> 
> 
> hi,
>  
> here is a quick question. how do i change the time zone that 
> tomcat runs in?
>  
> thanks in advance,
> 
> - 
> Chakradhar Tallam 
> Consultant 
> Object Consulting 
> Level 11 / 75 Miller Street, North Sydney, NSW - 2060 
> Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
> Email: [EMAIL PROTECTED] 
> Web: http://www.objectconsulting.com.au/
>   
> consulting | development | training | support 
> our experience makes the difference 
> 
>  
> 

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


session between domains

2003-04-01 Thread Troy A. Griffitts
Hey guys.  I have a standard site, say:

http://mysite.myserver.com

And eventually the user gets to a place where we'll need to jump them to 
something like:

https://secure.myserver.com

to take their credit card information.  I lose my session when doing 
this.  Both URLs point to the same server and are served by the same 
webapp-- I can shop the whole site on https://secure.myserver.com/, but 
I can't make the jump.

I'm guessing it probably has something to do with my jsessionid being 
stored as a cookie.  I was wondering if I could force the 
';jsessionid=...' to the url or something.

Otherwise, how does one usually handle such a common thing with tomcat?

	-Troy.

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


RE: Getting pretty far off topic here

2003-04-01 Thread mike jackson
It's that last little bit that's the hard part.  If you can I'd put a
column in the database that id's the card type (assuming you don't have
that already).

Also, remember that reflection is your friend...

Good luck.

--mikej

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 4:19 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Thanks: I think just writing it down, Again, Helps me think it through. 
I've got the main steps you mention Mike, it's just that last little
bit:
what do I do with this now?
I am going to play with string manipulation stuff and see where that
gets
me.

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


First things first, you need some standard way to determine the card
type.  

Then you need a configuration file which says do this for this card
type.  

This could be a series of rules to follow, or could be a list of objects
to
instantiate to process the card type.  

If it's going to go the object route you probably need to have a set of
interfaces that all different card handlers need to implement, and
possibly
a super class of some sort.

Anyway, enjoy working on it.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:55 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Here's some more info:

One database, several tables (about twenty).

The tables hold information about someone who uses the card, a
cardholder.

Each card has a particular type.

Each card type uses different information, for example one card type may
need the cardholder's name and address, while another may only need to
know
their number.

For the user (not to be confused with the cardholder) to use the system
they
need to be able to work with each kind of card and ONLY the data that is
relevant to that card.

The user also needs to be able to add new card types that use particular
data. This is why I think I need to store the information about which
fields
are relevant in a standard way. As new cards are added there needs to be
a
process in place for storing the information about that card.

I don't know what a rule processor or a rules engine is. 

My sense is that this is not a really complicated problem just one that
needs a fiendishly clever and simple solution. That's all ;).

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


1) Just to be sure, databases or tables?  Or since it's Oracle, do you
mean
different Schemas?  If it's different schemas then I'd create synonyms
into
a new schema for each of the different data sources (tables / schemas /
databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at
what's
common between the different card types, and figure out how to determine
which card type you are working with.  Then based on the card type you
have
a rules engine, which may or may not load custom code for that card
type.  

Then again this sounds like you have a really elaborate need here, it's
not
going to be really easy to point you in a direction unless we have a
better
picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the
database.
Each card accesses a different collection of data from different
attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of
data.
The number of possible new cards is relatively infinite. That is why I
can't
do a specific JSP file for each card type: the card types that exist now
may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so
that I
can access them when I need to display data about that particular card?
How
do I create new files of relevant fields when I create new cards?

I originally stored an SQL string that selects the relevant fields with
the
table that holds other information about the card type. But what do I do
with it then? How do I take that SQL string and turn it into text 

RE: time zone

2003-04-01 Thread Filip Hanik
change it on your machine (operating system)

Filip

> -Original Message-
> From: Chakradhar Tallam [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 4:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: time zone
> 
> 
> hi,
>  
> here is a quick question. how do i change the time zone that 
> tomcat runs in?
>  
> thanks in advance,
> 
> - 
> Chakradhar Tallam 
> Consultant 
> Object Consulting 
> Level 11 / 75 Miller Street, North Sydney, NSW - 2060 
> Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
> Email: [EMAIL PROTECTED] 
> Web: http://www.objectconsulting.com.au/
>   
> consulting | development | training | support 
> our experience makes the difference 
> 
>  
> 

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



RE: Out of memory error

2003-04-01 Thread Jacob Kjome
Oh, definitely, yes.  If you haven't used the -Xmx option then you are 
limiting yourself to 64meg of memory maximum!  You can hit that pretty quickly.

Jake

At 06:22 PM 4/1/2003 -0500, you wrote:
Thanks Nikolaos,

The multiple (100 per minute) mapping server lines occur before the out of
memory error. But I now see that I also get these on days when there is no
memory problem. So I guess they're unrelated. It just seems odd to see so
many of them.
I'll try the -Xms and -Xmx solutions and see if that helps. As I said it
doesn't happen often but it would be nice to track down the cause (or at
least fix it so it doesn't recur).
Ken

-Original Message-
From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 6:07 PM
To: Tomcat Users List
Subject: RE: Out of memory error
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>
> But no one has answered my original question: Do the 100s of multiple
> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> possible cause of the memory error? They just look odd to me and so I
> wondered if they might be the cause of the problem.
Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent
state and I would not be surprised that you get lots of other error messages
thereafter.
The important question is are any of these messages appearing *before* the
initial out of memory error or *after* - if the're any before then I would
suggest investigating them otherwise I would guess that fixing your out of
memory error may fix your other error messages.
--Nikolaos

> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:38 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


time zone

2003-04-01 Thread Chakradhar Tallam
hi,
 
here is a quick question. how do i change the time zone that tomcat runs in?
 
thanks in advance,

- 
Chakradhar Tallam 
Consultant 
Object Consulting 
Level 11 / 75 Miller Street, North Sydney, NSW - 2060 
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: [EMAIL PROTECTED] 
Web: http://www.objectconsulting.com.au/
  
consulting | development | training | support 
our experience makes the difference 

 


RE: Getting pretty far off topic here

2003-04-01 Thread Sandra Patricia Hunter
Thanks: I think just writing it down, Again, Helps me think it through. 
I've got the main steps you mention Mike, it's just that last little bit:
what do I do with this now?
I am going to play with string manipulation stuff and see where that gets
me.

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:12 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


First things first, you need some standard way to determine the card type.  

Then you need a configuration file which says do this for this card type.  

This could be a series of rules to follow, or could be a list of objects to
instantiate to process the card type.  

If it's going to go the object route you probably need to have a set of
interfaces that all different card handlers need to implement, and possibly
a super class of some sort.

Anyway, enjoy working on it.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:55 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Here's some more info:

One database, several tables (about twenty).

The tables hold information about someone who uses the card, a cardholder.

Each card has a particular type.

Each card type uses different information, for example one card type may
need the cardholder's name and address, while another may only need to know
their number.

For the user (not to be confused with the cardholder) to use the system they
need to be able to work with each kind of card and ONLY the data that is
relevant to that card.

The user also needs to be able to add new card types that use particular
data. This is why I think I need to store the information about which fields
are relevant in a standard way. As new cards are added there needs to be a
process in place for storing the information about that card.

I don't know what a rule processor or a rules engine is. 

My sense is that this is not a really complicated problem just one that
needs a fiendishly clever and simple solution. That's all ;).

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


1) Just to be sure, databases or tables?  Or since it's Oracle, do you mean
different Schemas?  If it's different schemas then I'd create synonyms into
a new schema for each of the different data sources (tables / schemas /
databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at what's
common between the different card types, and figure out how to determine
which card type you are working with.  Then based on the card type you have
a rules engine, which may or may not load custom code for that card type.  

Then again this sounds like you have a really elaborate need here, it's not
going to be really easy to point you in a direction unless we have a better
picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the database.
Each card accesses a different collection of data from different attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of data.
The number of possible new cards is relatively infinite. That is why I can't
do a specific JSP file for each card type: the card types that exist now may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so that I
can access them when I need to display data about that particular card? How
do I create new files of relevant fields when I create new cards?

I originally stored an SQL string that selects the relevant fields with the
table that holds other information about the card type. But what do I do
with it then? How do I take that SQL string and turn it into text boxes and
labels and drop down boxes?

Is there a better way of doing this that someone can think of?

Sandra Patricia Hunter
Systems Development and Web Design 
 


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



-
To unsubscribe, e-ma

RE: Getting pretty far off topic here

2003-04-01 Thread mike jackson
First things first, you need some standard way to determine the card
type.  

Then you need a configuration file which says do this for this card
type.  

This could be a series of rules to follow, or could be a list of objects
to instantiate to process the card type.  

If it's going to go the object route you probably need to have a set of
interfaces that all different card handlers need to implement, and
possibly a super class of some sort.

Anyway, enjoy working on it.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:55 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here

Here's some more info:

One database, several tables (about twenty).

The tables hold information about someone who uses the card, a
cardholder.

Each card has a particular type.

Each card type uses different information, for example one card type may
need the cardholder's name and address, while another may only need to
know
their number.

For the user (not to be confused with the cardholder) to use the system
they
need to be able to work with each kind of card and ONLY the data that is
relevant to that card.

The user also needs to be able to add new card types that use particular
data. This is why I think I need to store the information about which
fields
are relevant in a standard way. As new cards are added there needs to be
a
process in place for storing the information about that card.

I don't know what a rule processor or a rules engine is. 

My sense is that this is not a really complicated problem just one that
needs a fiendishly clever and simple solution. That's all ;).

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


1) Just to be sure, databases or tables?  Or since it's Oracle, do you
mean
different Schemas?  If it's different schemas then I'd create synonyms
into
a new schema for each of the different data sources (tables / schemas /
databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at
what's
common between the different card types, and figure out how to determine
which card type you are working with.  Then based on the card type you
have
a rules engine, which may or may not load custom code for that card
type.  

Then again this sounds like you have a really elaborate need here, it's
not
going to be really easy to point you in a direction unless we have a
better
picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the
database.
Each card accesses a different collection of data from different
attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of
data.
The number of possible new cards is relatively infinite. That is why I
can't
do a specific JSP file for each card type: the card types that exist now
may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so
that I
can access them when I need to display data about that particular card?
How
do I create new files of relevant fields when I create new cards?

I originally stored an SQL string that selects the relevant fields with
the
table that holds other information about the card type. But what do I do
with it then? How do I take that SQL string and turn it into text boxes
and
labels and drop down boxes?

Is there a better way of doing this that someone can think of?

Sandra Patricia Hunter
Systems Development and Web Design 
 


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



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


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



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



RE: Getting pretty far off topic here

2003-04-01 Thread mike jackson
That's kind a where I'm going.  I know I could build a system to do
this, regardless of the complexity.  However that said, I don't know
that I want to spend the hours it'll take to understand the problem and
work out a good and workable solution.

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

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 4:02 PM
To: Tomcat Users List
Subject: RE: Getting pretty far off topic here

he he he, isn't this what you are getting paid to figure out :)

have a wonderful April fools day

Filip

> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:55 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting pretty far off topic here
>
>
> Here's some more info:
>
> One database, several tables (about twenty).
>
> The tables hold information about someone who uses the card, a
cardholder.
>
> Each card has a particular type.
>
> Each card type uses different information, for example one card type
may
> need the cardholder's name and address, while another may only
> need to know
> their number.
>
> For the user (not to be confused with the cardholder) to use the
> system they
> need to be able to work with each kind of card and ONLY the data that
is
> relevant to that card.
>
> The user also needs to be able to add new card types that use
particular
> data. This is why I think I need to store the information about
> which fields
> are relevant in a standard way. As new cards are added there needs to
be a
> process in place for storing the information about that card.
>
> I don't know what a rule processor or a rules engine is.
>
> My sense is that this is not a really complicated problem just one
that
> needs a fiendishly clever and simple solution. That's all ;).
>
> Sandra Patricia Hunter
> Systems Development and Web Design
>
>
>
> -Original Message-
> From: mike jackson [mailto:[EMAIL PROTECTED]
> Sent: April 1, 2003 3:42 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting pretty far off topic here
>
>
> 1) Just to be sure, databases or tables?  Or since it's Oracle,
> do you mean
> different Schemas?  If it's different schemas then I'd create
> synonyms into
> a new schema for each of the different data sources (tables / schemas
/
> databases whatever).
>
> 2) Sounds like you need a rule processor.  If it were me I'd look
> at what's
> common between the different card types, and figure out how to
determine
> which card type you are working with.  Then based on the card
> type you have
> a rules engine, which may or may not load custom code for that
> card type.
>
> Then again this sounds like you have a really elaborate need
> here, it's not
> going to be really easy to point you in a direction unless we
> have a better
> picture of what is going on.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:34 PM
> To: 'Tomcat Users List'
> Subject: Getting pretty far off topic here
>
> I am stumped about how to manage a process.
>
> Here is what I need to do:
> I have several "cards". Each card accesses specific data from the
> database.
> Each card accesses a different collection of data from different
> attributes
> of different tables.
> For the user to work with the data (add, update, delete, search) the
JSP
> file must display the appropriate text boxes and drop down boxes for
the
> data relevant to that card. This will be different for each card.
>
> There will be new cards created that will have their own
> collection of data.
> The number of possible new cards is relatively infinite. That is
> why I can't
> do a specific JSP file for each card type: the card types that
> exist now may
> disappear and new ones may appear.
>
> How do I store the names of fields that are relevant to that card
> so that I
> can access them when I need to display data about that particular
> card? How
> do I create new files of relevant fields when I create new cards?
>
> I originally stored an SQL string that selects the relevant
> fields with the
> table that holds other information about the card type. But what do I
do
> with it then? How do I take that SQL string and turn it into text
> boxes and
> labels and drop down boxes?
>
> Is there a better way of doing this that someone can think of?
>
> Sandra Patricia Hunter
> Systems Development and Web Design
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-

RE: Getting pretty far off topic here

2003-04-01 Thread Sandra Patricia Hunter
Tee hee. Thanks Filip! Lunch is on me!

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 4:02 PM
To: Tomcat Users List
Subject: RE: Getting pretty far off topic here


he he he, isn't this what you are getting paid to figure out :)

have a wonderful April fools day

Filip

> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:55 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting pretty far off topic here
>
>
> Here's some more info:
>
> One database, several tables (about twenty).
>
> The tables hold information about someone who uses the card, a 
> cardholder.
>
> Each card has a particular type.
>
> Each card type uses different information, for example one card type 
> may need the cardholder's name and address, while another may only 
> need to know their number.
>
> For the user (not to be confused with the cardholder) to use the 
> system they need to be able to work with each kind of card and ONLY 
> the data that is relevant to that card.
>
> The user also needs to be able to add new card types that use 
> particular data. This is why I think I need to store the information 
> about which fields are relevant in a standard way. As new cards are 
> added there needs to be a process in place for storing the information 
> about that card.
>
> I don't know what a rule processor or a rules engine is.
>
> My sense is that this is not a really complicated problem just one 
> that needs a fiendishly clever and simple solution. That's all ;).
>
> Sandra Patricia Hunter
> Systems Development and Web Design
>
>
>
> -Original Message-
> From: mike jackson [mailto:[EMAIL PROTECTED]
> Sent: April 1, 2003 3:42 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting pretty far off topic here
>
>
> 1) Just to be sure, databases or tables?  Or since it's Oracle, do you 
> mean different Schemas?  If it's different schemas then I'd create
> synonyms into
> a new schema for each of the different data sources (tables / schemas /
> databases whatever).
>
> 2) Sounds like you need a rule processor.  If it were me I'd look at 
> what's common between the different card types, and figure out how to 
> determine which card type you are working with.  Then based on the 
> card type you have
> a rules engine, which may or may not load custom code for that
> card type.
>
> Then again this sounds like you have a really elaborate need here, 
> it's not going to be really easy to point you in a direction unless we
> have a better
> picture of what is going on.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:34 PM
> To: 'Tomcat Users List'
> Subject: Getting pretty far off topic here
>
> I am stumped about how to manage a process.
>
> Here is what I need to do:
> I have several "cards". Each card accesses specific data from the 
> database. Each card accesses a different collection of data from 
> different attributes
> of different tables.
> For the user to work with the data (add, update, delete, search) the JSP
> file must display the appropriate text boxes and drop down boxes for the
> data relevant to that card. This will be different for each card.
>
> There will be new cards created that will have their own collection of 
> data. The number of possible new cards is relatively infinite. That is
> why I can't
> do a specific JSP file for each card type: the card types that
> exist now may
> disappear and new ones may appear.
>
> How do I store the names of fields that are relevant to that card so 
> that I can access them when I need to display data about that 
> particular card? How
> do I create new files of relevant fields when I create new cards?
>
> I originally stored an SQL string that selects the relevant fields 
> with the table that holds other information about the card type. But 
> what do I do with it then? How do I take that SQL string and turn it 
> into text boxes and
> labels and drop down boxes?
>
> Is there a better way of doing this that someone can think of?
>
> Sandra Patricia Hunter
> Systems Development and Web Design
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


-

RE: Getting pretty far off topic here

2003-04-01 Thread Filip Hanik
he he he, isn't this what you are getting paid to figure out :)

have a wonderful April fools day

Filip

> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:55 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting pretty far off topic here
>
>
> Here's some more info:
>
> One database, several tables (about twenty).
>
> The tables hold information about someone who uses the card, a cardholder.
>
> Each card has a particular type.
>
> Each card type uses different information, for example one card type may
> need the cardholder's name and address, while another may only
> need to know
> their number.
>
> For the user (not to be confused with the cardholder) to use the
> system they
> need to be able to work with each kind of card and ONLY the data that is
> relevant to that card.
>
> The user also needs to be able to add new card types that use particular
> data. This is why I think I need to store the information about
> which fields
> are relevant in a standard way. As new cards are added there needs to be a
> process in place for storing the information about that card.
>
> I don't know what a rule processor or a rules engine is.
>
> My sense is that this is not a really complicated problem just one that
> needs a fiendishly clever and simple solution. That's all ;).
>
> Sandra Patricia Hunter
> Systems Development and Web Design
>
>
>
> -Original Message-
> From: mike jackson [mailto:[EMAIL PROTECTED]
> Sent: April 1, 2003 3:42 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting pretty far off topic here
>
>
> 1) Just to be sure, databases or tables?  Or since it's Oracle,
> do you mean
> different Schemas?  If it's different schemas then I'd create
> synonyms into
> a new schema for each of the different data sources (tables / schemas /
> databases whatever).
>
> 2) Sounds like you need a rule processor.  If it were me I'd look
> at what's
> common between the different card types, and figure out how to determine
> which card type you are working with.  Then based on the card
> type you have
> a rules engine, which may or may not load custom code for that
> card type.
>
> Then again this sounds like you have a really elaborate need
> here, it's not
> going to be really easy to point you in a direction unless we
> have a better
> picture of what is going on.
>
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
>
> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:34 PM
> To: 'Tomcat Users List'
> Subject: Getting pretty far off topic here
>
> I am stumped about how to manage a process.
>
> Here is what I need to do:
> I have several "cards". Each card accesses specific data from the
> database.
> Each card accesses a different collection of data from different
> attributes
> of different tables.
> For the user to work with the data (add, update, delete, search) the JSP
> file must display the appropriate text boxes and drop down boxes for the
> data relevant to that card. This will be different for each card.
>
> There will be new cards created that will have their own
> collection of data.
> The number of possible new cards is relatively infinite. That is
> why I can't
> do a specific JSP file for each card type: the card types that
> exist now may
> disappear and new ones may appear.
>
> How do I store the names of fields that are relevant to that card
> so that I
> can access them when I need to display data about that particular
> card? How
> do I create new files of relevant fields when I create new cards?
>
> I originally stored an SQL string that selects the relevant
> fields with the
> table that holds other information about the card type. But what do I do
> with it then? How do I take that SQL string and turn it into text
> boxes and
> labels and drop down boxes?
>
> Is there a better way of doing this that someone can think of?
>
> Sandra Patricia Hunter
> Systems Development and Web Design
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: Getting pretty far off topic here

2003-04-01 Thread Sandra Patricia Hunter
Here's some more info:

One database, several tables (about twenty).

The tables hold information about someone who uses the card, a cardholder.

Each card has a particular type.

Each card type uses different information, for example one card type may
need the cardholder's name and address, while another may only need to know
their number.

For the user (not to be confused with the cardholder) to use the system they
need to be able to work with each kind of card and ONLY the data that is
relevant to that card.

The user also needs to be able to add new card types that use particular
data. This is why I think I need to store the information about which fields
are relevant in a standard way. As new cards are added there needs to be a
process in place for storing the information about that card.

I don't know what a rule processor or a rules engine is. 

My sense is that this is not a really complicated problem just one that
needs a fiendishly clever and simple solution. That's all ;).

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: mike jackson [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 3:42 PM
To: 'Tomcat Users List'
Subject: RE: Getting pretty far off topic here


1) Just to be sure, databases or tables?  Or since it's Oracle, do you mean
different Schemas?  If it's different schemas then I'd create synonyms into
a new schema for each of the different data sources (tables / schemas /
databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at what's
common between the different card types, and figure out how to determine
which card type you are working with.  Then based on the card type you have
a rules engine, which may or may not load custom code for that card type.  

Then again this sounds like you have a really elaborate need here, it's not
going to be really easy to point you in a direction unless we have a better
picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the database.
Each card accesses a different collection of data from different attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of data.
The number of possible new cards is relatively infinite. That is why I can't
do a specific JSP file for each card type: the card types that exist now may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so that I
can access them when I need to display data about that particular card? How
do I create new files of relevant fields when I create new cards?

I originally stored an SQL string that selects the relevant fields with the
table that holds other information about the card type. But what do I do
with it then? How do I take that SQL string and turn it into text boxes and
labels and drop down boxes?

Is there a better way of doing this that someone can think of?

Sandra Patricia Hunter
Systems Development and Web Design 
 


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



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


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



RE: Getting pretty far off topic here

2003-04-01 Thread mike jackson
1) Just to be sure, databases or tables?  Or since it's Oracle, do you
mean different Schemas?  If it's different schemas then I'd create
synonyms into a new schema for each of the different data sources
(tables / schemas / databases whatever).

2) Sounds like you need a rule processor.  If it were me I'd look at
what's common between the different card types, and figure out how to
determine which card type you are working with.  Then based on the card
type you have a rules engine, which may or may not load custom code for
that card type.  

Then again this sounds like you have a really elaborate need here, it's
not going to be really easy to point you in a direction unless we have a
better picture of what is going on.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 3:34 PM
To: 'Tomcat Users List'
Subject: Getting pretty far off topic here

I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the
database.
Each card accesses a different collection of data from different
attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of
data.
The number of possible new cards is relatively infinite. That is why I
can't
do a specific JSP file for each card type: the card types that exist now
may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so
that I
can access them when I need to display data about that particular card?
How
do I create new files of relevant fields when I create new cards?

I originally stored an SQL string that selects the relevant fields with
the
table that holds other information about the card type. But what do I do
with it then? How do I take that SQL string and turn it into text boxes
and
labels and drop down boxes?

Is there a better way of doing this that someone can think of?

Sandra Patricia Hunter
Systems Development and Web Design 
 


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



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



Getting pretty far off topic here

2003-04-01 Thread Sandra Patricia Hunter
I am stumped about how to manage a process.
 
Here is what I need to do:
I have several "cards". Each card accesses specific data from the database.
Each card accesses a different collection of data from different attributes
of different tables. 
For the user to work with the data (add, update, delete, search) the JSP
file must display the appropriate text boxes and drop down boxes for the
data relevant to that card. This will be different for each card. 

There will be new cards created that will have their own collection of data.
The number of possible new cards is relatively infinite. That is why I can't
do a specific JSP file for each card type: the card types that exist now may
disappear and new ones may appear.

How do I store the names of fields that are relevant to that card so that I
can access them when I need to display data about that particular card? How
do I create new files of relevant fields when I create new cards?

I originally stored an SQL string that selects the relevant fields with the
table that holds other information about the card type. But what do I do
with it then? How do I take that SQL string and turn it into text boxes and
labels and drop down boxes?

Is there a better way of doing this that someone can think of?

Sandra Patricia Hunter
Systems Development and Web Design 
 


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



RE: Out of memory error

2003-04-01 Thread Januski, Ken
Thanks Nikolaos,

The multiple (100 per minute) mapping server lines occur before the out of
memory error. But I now see that I also get these on days when there is no
memory problem. So I guess they're unrelated. It just seems odd to see so
many of them.

I'll try the -Xms and -Xmx solutions and see if that helps. As I said it
doesn't happen often but it would be nice to track down the cause (or at
least fix it so it doesn't recur).

Ken

-Original Message-
From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 6:07 PM
To: Tomcat Users List
Subject: RE: Out of memory error


> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>
> But no one has answered my original question: Do the 100s of multiple
> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> possible cause of the memory error? They just look odd to me and so I
> wondered if they might be the cause of the problem.

Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent
state and I would not be surprised that you get lots of other error messages
thereafter.

The important question is are any of these messages appearing *before* the
initial out of memory error or *after* - if the're any before then I would
suggest investigating them otherwise I would guess that fixing your out of
memory error may fix your other error messages.

--Nikolaos


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:38 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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

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



RE: JDBC-ODBC bridge error

2003-04-01 Thread mike jackson
Remember though that Oracle and Access syntax is a little different.  If
most cases it doesn't matter, but sometimes it does.  For instance, if
you're working with dates it's a little different (if you're converting
the date from a SQL date to a text date).

However, that said, here's some things to consider:

1) PreparedStatements seem to be faster for data access when you're
talking to Oracle.  I don't know why this is, but when I switched from
Statements to PreparedStatements my speed went up.  Also with
PreparedStatements you don't have to worry about cleaning the input from
users prior to putting it into the SQL (example you're looking for
"'this'", the "'" is a reserved character).

2) If you're working with Oracle they have a XSQL Servlet in the XDK.
It's faster for accessing the database than anything I've been able to
write.  However that Servlet won't talk to Access.  This is also nice
because you can setup one xsql file to get the data and several xsl
files to format it for display.

3) If your web app is updating tables in Oracle you really ought to use
stored procedures in the database.  Access stored procedures and Oracle
stored procedures aren't the same syntax wise.  And they'll probably act
differently as well.

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

-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2003 2:13 PM
To: 'Tomcat Users List'
Subject: RE: JDBC-ODBC bridge error

Thanks guys! This is what works:
String sqlString = "SELECT str_card_fields FROM card_type WHERE
str_card_type='"+cardType+"';";

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 2:06 PM
To: Tomcat Users List
Subject: RE: JDBC-ODBC bridge error


it is just a typo, I think what you want is this

String sqlString = "SELECT card_type.str_card_fields FROM card_type
WHERE
(((card_type.str_card_type='"+cardType+"'));";

cardType, is from you java and is a parameter

Filip

> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 1:54 PM
> To: 'Tomcat Users List'
> Subject: JDBC-ODBC bridge error
>
>
> I am using the JDBC-ODBC bridge driver during development because I 
> don't want to load Oracle on my system here and am using Access for 
> now, and will be using Oracle in the final production. I know I know: 
> it isn't good but I
> don't think it is the heart of the problem.
> I don't know if that is the source of the problem but I am getting
this
> error message:
> [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected
1.
> only on one page while the others using the same driver don't produce
that
> error. It may just be an SQL error. Here is the code snippet:
>
> String cardType = manageData.getCardType();%>
>  cardType: <%=cardType%> //this is just a debug line and 
> produces the required value
> <%
> String sqlString = "SELECT card_type.str_card_fields FROM
card_type
> WHERE (((card_type.str_card_type=cardType));";
>
> ResultSet rs = statement.executeQuery (sqlString);
>


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


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



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



connector ssl for apache / tomcat windows

2003-04-01 Thread noel . jean-baptiste
Hi, 
Wich connectors must i used if i want a secure connexion (ssl)
Under winXP Apache 1.3.27, tomcat 4.0.6 ?
And under winXP Apache 1.3.27, tomcat 4.1.xx ?
And under winXP Apache 2, tomcat 4.1.xx ?

Thanks 





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



RE: Out of memory error

2003-04-01 Thread Nikolaos Giannopoulos
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>
> But no one has answered my original question: Do the 100s of multiple
> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> possible cause of the memory error? They just look odd to me and so I
> wondered if they might be the cause of the problem.

Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent
state and I would not be surprised that you get lots of other error messages
thereafter.

The important question is are any of these messages appearing *before* the
initial out of memory error or *after* - if the're any before then I would
suggest investigating them otherwise I would guess that fixing your out of
memory error may fix your other error messages.

--Nikolaos


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:38 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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



RE: How to hand in the passwords to 3000 users [urgent!]

2003-04-01 Thread Goehring, Chuck Mr., RCI - San Diego

Nancy,

Hope I understood you problem correctly.  It might be worth doing a signup 
application, then advertise it through the management chain of command with a url and 
instructions.  Have the app capture the information to a text file or database.  Get 
the email, username and password that way.  I think I'd also put password change & 
mailback capabilities in the app so you don't have to change passwords for users all 
the time.  

Chuck


-Original Message-
From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:55 PM
To: Tomcat Users List
Subject: How to hand in the passwords to 3000 users [urgent!]


Hi all!

I'm trying to entablish the best way to hand in their own user_id and
password to the 3000 users of an applicattion developed to Internet.

I don't know which could be the best way to do this without forgetting
the security because each user has some confidential information in
his/her session.

Could you please help me?
Any clue could help me!
Thanks in advance!

Nancy.

ps. I don't have their e-mails so, descart the email way.




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


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



RE: Out of memory error

2003-04-01 Thread Januski, Ken
No, I'm using 1.4.0, so that shouldn't be it.

But no one has answered my original question: Do the 100s of multiple
"mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
possible cause of the memory error? They just look odd to me and so I
wondered if they might be the cause of the problem.

I also have 2 instances of Tomcat running as services and need to add the
memory settings there in registry. I'll try that but I'm still curious about
my original question.

Thanks again,

Ken




-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 5:38 PM
To: Tomcat Users List
Subject: RE: Out of memory error



could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
>I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
>switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
>it solved the problem.
>
>Steve
>
>-Original Message-
>From: Darian Shimy [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 1:16 PM
>To: 'Tomcat Users List'
>Subject: RE: Out of memory error
>
>
>Set the memory using -Xmx and -Xms.  This should take care of the memory
>problems.
>
>If you want to monitor the heap usage, add -verbose:gc
>
>--
>Darian Shimy
>
> > -Original Message-
> > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 31, 2003 12:21 PM
> > To: Tomcat Users List
> > Subject: Out of memory error
> >
> >
> > Hi,
> >
> > Very occasionally my Tomcat server runs into out of memory
> > errors. I'ts not
> > a heavily used server, less than 10 users a day I'd guess on
> > an Intranet.
> > But every month or so it runs into memory problems. The
> > newest ones occurred
> > yesterday and I didn't hear about them until today. When I
> > investigated I
> > found hundreds of these lines repeating themselves in the
> > catalina log.
> >
> > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > 'nnn.nnn.nn.nn'
> >
> > They were eventually followed by this:
> >
> > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > java.lang.OutOfMemoryError
> >
> > Can anyone tell me whether the first lines indicate a cause
> > of the out of
> > memory error or whether they're just another symptom of running out of
> > memory?
> >
> > Thanks for any ideas,
> >
> > Ken
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

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



JDBCRealm magic table names?

2003-04-01 Thread G. Wade Johnson
I just spent two hours tracking down a problem caused by new Oracle
tables we created for my application. I'm running Tomcat 4.1.18 with
Java 1.4.1.

Our DBA created tables for my system to use with authentication thru
the JDBCRealm. I populated the table and attempted to log in. The
system consistently refused my login.

After digging in the source of JDBCRealm, I found that no matter what
I did, the request for the password would return null if the name of
the table is 'WEB_USER'. If I change the name of the table, everything
works.

Does this make sense to anyone?

I can have the table name changed, but I'd like to know why that
name is special.

G. Wade

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



RE: Out of memory error

2003-04-01 Thread Nikolaos Giannopoulos
(1) We are seeing what seems to be this bug as well (we have no JSPs in our
app btw) - Could it be that by using IBM's JRE for 1.4 that Steve
essentially worked around this bug

(2) I think its silly that SUN has slated fixing this bug for 1.5 and their
workaround makes very little sense - Anyone know what the following stated
work around translates to in actual code?

"Don't reuse StringBuffers. If you do reuse them, check their capacity and
make sure that you aren't making tiny Strings from huge StringBuffers"

(3) Steve, last time I downloaded an IBM JRE (a real long time ago) it was a
real pain as it was (a) buried within many nested web pages and (b) was part
of a websphere download - Do you offhand have a direct link to (just) IBM's
1.4 JRE?

Thanks,

--Nikolaos


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>



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



RE: Out of memory error

2003-04-01 Thread Jacob Kjome
could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
it solved the problem.

Steve

-Original Message-
From: Darian Shimy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 1:16 PM
To: 'Tomcat Users List'
Subject: RE: Out of memory error
Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.
If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 31, 2003 12:21 PM
> To: Tomcat Users List
> Subject: Out of memory error
>
>
> Hi,
>
> Very occasionally my Tomcat server runs into out of memory
> errors. I'ts not
> a heavily used server, less than 10 users a day I'd guess on
> an Intranet.
> But every month or so it runs into memory problems. The
> newest ones occurred
> yesterday and I didn't hear about them until today. When I
> investigated I
> found hundreds of these lines repeating themselves in the
> catalina log.
>
> 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> 'nnn.nnn.nn.nn'
>
> They were eventually followed by this:
>
> 2003-03-30 22:38:08 HttpProcessor[80][1] process
> java.lang.OutOfMemoryError
>
> Can anyone tell me whether the first lines indicate a cause
> of the out of
> memory error or whether they're just another symptom of running out of
> memory?
>
> Thanks for any ideas,
>
> Ken
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


jasper2/jspc null pointer errors on jsps with taglib/jstl

2003-04-01 Thread Hammad Sophie
Hi.

My project has jsps, some of which use jstl/jakarta taglibs.
I use ant to pre-compile/compile my jsps manually. All jsps which dont use
taglibs still precompile/compile happily. However jsps with jstl/taglibs do
NOT compile with ant because of some nullpointer exception:

jsp_precompile:
 [jspc] Compiling 64 source
filesC:\jakarta\tomcat\work\Standalone\localhost\northstar
  [jasperc] 2003-03-31 04:08:57 - ERROR-the file
'\Accounting\GL\Budgets\budgetSetupWizard\budgetList.jsp' generated the
following general exception: java.lang.NullPointerException
  [jasperc] error:org.apache.jasper.JasperException: Error compiling
\Accounting\GL\Budgets\budgetSetupWizard\budgetList.jsp
  [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:596)
  [jasperc] at org.apache.jasper.JspC.execute(JspC.java:800)
  [jasperc] at org.apache.jasper.JspC.main(JspC.java:822)
  [jasperc] Java Result: 9

The interesting thing is that these same jsps run with no problem on tomcat,
i.e. tomcat will precompile/compile them at run time and they work fine

Does anyone know whats going on? How can I get Ant to do the precompile.

I posted this on the ant-user list thinking it was an Ant problem. However,
it seems like it is more of a jasper/tomcat issue My message on the
ant-user list and its reply:
http://marc.theaimsgroup.com/?t=10491575861&r=1&w=2

My environment:
ant 1.5.2
tomcat 4.1.21
taglibs 1.0
jdk 1.4.1_01

Thanks.

Hammad.


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



RE: Out of memory error

2003-04-01 Thread Turoff, Steve
I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but 
nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem.

Steve

-Original Message-
From: Darian Shimy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 1:16 PM
To: 'Tomcat Users List'
Subject: RE: Out of memory error


Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.

If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy 

> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 31, 2003 12:21 PM
> To: Tomcat Users List
> Subject: Out of memory error
> 
> 
> Hi,
> 
> Very occasionally my Tomcat server runs into out of memory 
> errors. I'ts not
> a heavily used server, less than 10 users a day I'd guess on 
> an Intranet.
> But every month or so it runs into memory problems. The 
> newest ones occurred
> yesterday and I didn't hear about them until today. When I 
> investigated I
> found hundreds of these lines repeating themselves in the 
> catalina log. 
> 
> 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> 'nnn.nnn.nn.nn'
> 
> They were eventually followed by this:
> 
> 2003-03-30 22:38:08 HttpProcessor[80][1] process
> java.lang.OutOfMemoryError
> 
> Can anyone tell me whether the first lines indicate a cause 
> of the out of
> memory error or whether they're just another symptom of running out of
> memory?
> 
> Thanks for any ideas,
> 
> Ken
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: JDBC-ODBC bridge error

2003-04-01 Thread Sandra Patricia Hunter
Thanks guys! This is what works:
String sqlString = "SELECT str_card_fields FROM card_type WHERE
str_card_type='"+cardType+"';";

Sandra Patricia Hunter
Systems Development and Web Design 
 


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: April 1, 2003 2:06 PM
To: Tomcat Users List
Subject: RE: JDBC-ODBC bridge error


it is just a typo, I think what you want is this

String sqlString = "SELECT card_type.str_card_fields FROM card_type  WHERE
(((card_type.str_card_type='"+cardType+"'));";

cardType, is from you java and is a parameter

Filip

> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 1:54 PM
> To: 'Tomcat Users List'
> Subject: JDBC-ODBC bridge error
>
>
> I am using the JDBC-ODBC bridge driver during development because I 
> don't want to load Oracle on my system here and am using Access for 
> now, and will be using Oracle in the final production. I know I know: 
> it isn't good but I
> don't think it is the heart of the problem.
> I don't know if that is the source of the problem but I am getting this
> error message:
> [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
> only on one page while the others using the same driver don't produce that
> error. It may just be an SQL error. Here is the code snippet:
>
> String cardType = manageData.getCardType();%>
>  cardType: <%=cardType%> //this is just a debug line and 
> produces the required value
> <%
> String sqlString = "SELECT card_type.str_card_fields FROM card_type
> WHERE (((card_type.str_card_type=cardType));";
>
> ResultSet rs = statement.executeQuery (sqlString);
>


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


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



RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Robert Priest
Thanks for the reply.
I just downloaded 1.4.1_

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:27 PM
To: Tomcat Users List
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)



Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>org.apache.jasper.JasperException: Unable to compile class for JSP An
error
>occurred at line: -1 in the jsp file: null Generated servlet error:
[javac]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



RE: JDBC-ODBC bridge error

2003-04-01 Thread Filip Hanik
it is just a typo, I think what you want is this

String sqlString = "SELECT card_type.str_card_fields FROM card_type  WHERE
(((card_type.str_card_type='"+cardType+"'));";

cardType, is from you java and is a parameter

Filip

> -Original Message-
> From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 1:54 PM
> To: 'Tomcat Users List'
> Subject: JDBC-ODBC bridge error
>
>
> I am using the JDBC-ODBC bridge driver during development because I don't
> want to load Oracle on my system here and am using Access for
> now, and will
> be using Oracle in the final production. I know I know: it isn't
> good but I
> don't think it is the heart of the problem.
> I don't know if that is the source of the problem but I am getting this
> error message:
> [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
> only on one page while the others using the same driver don't produce that
> error. It may just be an SQL error. Here is the code snippet:
>
> String cardType = manageData.getCardType();%>
>  cardType: <%=cardType%> //this is just a debug line
> and produces
> the required value
> <%
> String sqlString = "SELECT card_type.str_card_fields FROM card_type
> WHERE (((card_type.str_card_type=cardType));";
>
> ResultSet rs = statement.executeQuery (sqlString);
>


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



RE: JDBC-ODBC bridge error

2003-04-01 Thread Jan Behrens
Hi Sandra,

> String sqlString = "SELECT card_type.str_card_fields FROM card_type
> WHERE (((card_type.str_card_type=cardType));";

you are using 3 opening brackets and only 2 closing ones in your where
condition. IMHO it would be correct SQL to write:
"SELECT card_type.str_card_fields FROM card_type WHERE
card_type.str_card_type=cardType;" instead, no need for brackets there.

Regards Jan



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



RE: JDBC-ODBC bridge error

2003-04-01 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
I get errors like that with coldfusion pages connecting to access if the
variable type does not match the database field or if the value is null.

if the database field is a string you I need to use single quotes around the
value in the sql statement

   String sqlString = "SELECT card_type.str_card_fields FROM card_type
WHERE (((card_type.str_card_type='cardType'));";

Also, how are you getting the value of cardtype into the select string if
everything is within the double quotes?

what about

   String sqlString = "SELECT card_type.str_card_fields FROM card_type
WHERE (((card_type.str_card_type='"+cardType+"'));";


-Original Message-
From: Sandra Patricia Hunter [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:54 PM
To: 'Tomcat Users List'
Subject: JDBC-ODBC bridge error


I am using the JDBC-ODBC bridge driver during development because I don't
want to load Oracle on my system here and am using Access for now, and will
be using Oracle in the final production. I know I know: it isn't good but I
don't think it is the heart of the problem.
I don't know if that is the source of the problem but I am getting this
error message:
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
only on one page while the others using the same driver don't produce that
error. It may just be an SQL error. Here is the code snippet:
 
String cardType = manageData.getCardType();%>
 cardType: <%=cardType%> //this is just a debug line and produces
the required value
<%
String sqlString = "SELECT card_type.str_card_fields FROM card_type
WHERE (((card_type.str_card_type=cardType));";
 
ResultSet rs = statement.executeQuery (sqlString);

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



JDBC-ODBC bridge error

2003-04-01 Thread Sandra Patricia Hunter
I am using the JDBC-ODBC bridge driver during development because I don't
want to load Oracle on my system here and am using Access for now, and will
be using Oracle in the final production. I know I know: it isn't good but I
don't think it is the heart of the problem.
I don't know if that is the source of the problem but I am getting this
error message:
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
only on one page while the others using the same driver don't produce that
error. It may just be an SQL error. Here is the code snippet:
 
String cardType = manageData.getCardType();%>
 cardType: <%=cardType%> //this is just a debug line and produces
the required value
<%
String sqlString = "SELECT card_type.str_card_fields FROM card_type
WHERE (((card_type.str_card_type=cardType));";
 
ResultSet rs = statement.executeQuery (sqlString);


Re: -Djava.endorsed.dirs=

2003-04-01 Thread Ramiro Gonzalez
The JAVA_HOME don't have to include then /bin directory...

so the correct could be:

JAVA_HOME
C:\Programme\Java\j2re1.4.1_02
BUT...

you need the SDK, not just the runtime, (j2re is the runtime).

So, go to java.sun.com, and download the latest SDK.

Saludos!

Ines Robbers wrote:

Hi,

I have installed Tomcat under 

C:\Programme\Apache Group\Tomcat 4.1 

and the JDK under 

C:\Programme\Java\j2re1.4.1_02

When trying to start up Tomcat with 

cd C:\Programme\Apache Group\Tomcat 4.1\bin\startup 

I get an error message: "The JAVA_HOME environment variable is not
defined correctly" and "-Djava.endorsed.dirs= cannot be found"
The three variables I set so far are:

JAVA_HOME
C:\Programme\Java\j2re1.4.1_02\bin
Path: ...;C:\Programme\Java\j2re1.4.1_02\bin

CATALINA_HOME:
C:\Programme\Apache Group\Tomcat 4.1
Does anyone know what the problem is?

Many thanks for your help!

Ines 

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





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


RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Robert Priest
Thanks.
It's still happening, though:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
just downloaded 1.4.1_02
afaik - the only version of rt.jar is in  C:\j2sdk1.4.1_02\jre\lib\rt.jar
I have down the JDK

- An OS that has the patches required for the JDK, if any
Running Windows 2000 Service Pack 3 

Is it possible that some other jar could be interfering (reaching)? 
e
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:27 PM
To: Tomcat Users List
Subject: RE: Jasper Error wrong version of Object.class (48.0 , should
be 47.0)



Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>org.apache.jasper.JasperException: Unable to compile class for JSP An
error
>occurred at line: -1 in the jsp file: null Generated servlet error:
[javac]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



compilation of mod_jk, Solaris 8 (intel) using ANT

2003-04-01 Thread Filip Hanik
hey ya'all

I am compiling mod_jk on Solaris 8 on intel platform using ANT. I am
compiling everything fine except jk_jni_worker.c that completely barfs on
me.

I had to do some tweaks before I could get the rest to work here are the
steps

1. Add libtool to my path
2. Create a symbolic link from /usr/local/bin/gcc to cc and add that to my
path so when the program invokes cc it actually runs gcc.

forget about mod_jk2, that one has so many errors it hurts my eyes :)
but for mod_jk the only file that doesn't compile is jk_jni_worker.c, now I
am compiling with jdk 1.4.1, and the errors I am getting is some missing or
invalid header files from JAVA_HOME/include

anyone succesfully compiled with another jdk, or with jdk1.4

Filip


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



-Djava.endorsed.dirs=

2003-04-01 Thread Ines Robbers
Hi,

I have installed Tomcat under 

C:\Programme\Apache Group\Tomcat 4.1 

and the JDK under 

C:\Programme\Java\j2re1.4.1_02

When trying to start up Tomcat with 

cd C:\Programme\Apache Group\Tomcat 4.1\bin\startup 

I get an error message: "The JAVA_HOME environment variable is not
defined correctly" and "-Djava.endorsed.dirs= cannot be found"

The three variables I set so far are:

JAVA_HOME
C:\Programme\Java\j2re1.4.1_02\bin

Path: ...;C:\Programme\Java\j2re1.4.1_02\bin

CATALINA_HOME:
C:\Programme\Apache Group\Tomcat 4.1

Does anyone know what the problem is?

Many thanks for your help!

Ines 


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



Silent Installation of Tomcat 4.0.6

2003-04-01 Thread Timon, Vince








I have been searching multiple forums high
and low for a definitive answer to the following question:

 

Is there a way to silent install tomcat
4.0.6, meaning the installation runs without displaying the user interface and
the program uses default values or a response (.iss) file to complete the
install? 

 

If there is a way to do it, could someone
provide the actual mechanism? Thanks in advance for any help. 

 








tomcat/apache manage ssl

2003-04-01 Thread noel . jean-baptiste
Hello, 
With tomcat 4.0.6 
My tomcat is connected with Apache and I would like to have a 
connection protected with tomcat, but not for all my webApp of 
tomcat.  
The Apache server does not have protected connection SSL, and i don't 
want than Apache manage them.  
1. Is this possible to have Apache connected with tomcat but it is 
tomcat which manage the SSL?  
if ok, 
1.1 can i have 2 virtual hosts in the same "Engine" of tomcat, one to 
have a protected connection SSL, the other a normal connection?  
1.2 If not, must i have two different "Service" of tomcat?  
thank you for the councils


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



RE: tomcat IIS configuration please help

2003-04-01 Thread Januski, Ken
Do you get a 200 for the isapi rediretor in the iis logs? If you get a 401,
like I did for a few days, then it can't find the page it's supposed to be
redirecting to and something's still amiss on iis side.

I asked the same questions about 2 weeks ago and got some useful responses.
Let us know what the logs say and maybe someone can tell you what to try
next.



-Original Message-
From: Warren Sweetman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:45 AM
To: [EMAIL PROTECTED]
Subject: RE: tomcat IIS configuration please help


Yes I have spent a few hrs checking up that I had done what I was supposed
to do.   I have followed the small bits of instruction that I could find but
no joy.  que chingadera.  I have connected apache to tomcat on a number of
occassions without problem.  Its just when I get to IIS that the problems
start arising 

kind regards,

Warren Sweetman
Principal Web Developer
Web Development
ISD
Legal Services Commission
tel. 020 77590122
ext no 2122
tag no 011370

>>> [EMAIL PROTECTED] 01/04/2003 17:32:23 >>>
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] 

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com 
***

Did you add entries to Registry?

-Original Message-
From: Warren Sweetman [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 1 de Abril de 2003 17:36
To: [EMAIL PROTECTED] 
Subject: tomcat IIS configuration please help

can anybody assist in the configuration of the isapi_connector2.dll and =
associated files.  My configuration is as follows

W2k
Tomcat 4.1.18
IIS=20
isapi_redirector2.dll

I cant get request for jsps or servlets to be forwarded by IIS to tomcat =
for some reason.  It seems that the dll is not being loaded.

jk2.properties :

# THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
 handler.list=3Dapr,request,channelJni
#
# Override the default port for the socketChannel
 channelSocket.port=3D8019
# Default:=20
 channelUnix.file=3D${jkHome}/work/jk2.socket
# Just to check if the the config  is working
 shm.file=3D${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
 channelJni.disabled =3D 0
# And one of the following directives:

 apr.jniModeSo=3D/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
 apr.jniModeSo=3Dinprocess

woker2.properties

# Define the communication channel
[channel.socket:localhost:8009]
info=3DAjp13 forwarding over socket
tomcatId=3Dlocalhost:8009


# define the worker
[ajp13:localhost:8009]
channel=3Dchannel.socket:localhost:8009


# Uri mapping. This says that any incoming connection to any file
# under "/jetty/" should be handled the worker defined above

[uri:/*.jsp]
worker=3Dajp13:localhost:8009

[uri:/servlet/*]
worker=3Dajp13:localhost:8009


I also get the following in stdout.log

Bootstrap: Create Catalina server
Bootstrap: Starting service
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.jav=
a:224)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:369)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:777)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:751)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:339)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEven=
t(ServerLifecycleListener.java:206)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lif=
ecycleSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.jav=
a:2182)
at org.apache.catalina.startup.CatalinaService.start(CatalinaServic=
e.java:273)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.BootstrapService.start(BootstrapServ=
ice.java:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapServi=
ce.java:307)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Bootstrap: Service started


but everything seems ok in the catalina log

2003-04-01 16:58:04 Ajp13Connector[8009] Opening server socket on all host =
IP addresses
2003-04-01 16:58:04 Ajp13Connector[8009] Starting backg

RE: Not starting with j2ee.jar in /lib direcotry

2003-04-01 Thread Shapira, Yoav

Howdy,
Get the classes you need piecemeal, e.g. mail.jar and activation.jar for
JavaMail.  Don't use j2ee.jar as it creates conflicts, for example with
the javax.servlet packages.

If you need all of J2EE, get a J2EE container e.g. JBoss, as tomcat
doesn't fill your needs by itself.


Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Alexandre Alvarez Martini Santos [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 7:01 AM
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: Not starting with j2ee.jar in /lib direcotry
>
>Hello Ramsay,
>That's what I'm doing, but it should not be this way. What if I need
other
>classes from j2ee.jar?
>I put in th WEB-INF\lib but a msg( which I described in my previous
mail)
>What do you think?
>thanks, al.
>
>- Original Message -
>From: "Ramsay Domloge" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Tuesday, April 01, 2003 7:27 AM
>Subject: Re: Not starting with j2ee.jar in /lib direcotry
>
>
>> I believe that using j2ee.jar will screw with Tomcat's own codebase.
You
>> should use a JavaMail extension instead See
>> http://java.sun.com/products/javamail/ to download just the JavaMail
>> extension.
>>
>> R
>>
>>
>> Alexandre Alvarez Martini Santos wrote:
>>
>> >Hello,
>> >I put j2ee.jar in /common/lib directory and Tomcat4.1 did NOT start.
>> >It did not start when I put in jre/lib/ext as well.
>> >Why?
>> >I need some classes to use JavaMail.
>> >Could you help me, please?
>> >Thanks in advance,
>> >al.
>> >
>> >
>> >
>> >
>>
>>
>>
>===

>=
>>
>> A R K E M E D I A   T E C H N O L O G I E S   L T D
>>
>>VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21
4RG
>>
>>   http://www.arkemedia.com
>>
>>  mailto:[EMAIL PROTECTED]
>>
>>  Tel : +44 1256 869 200  Fax : +44 1256 329 119
>>
>>
>===

>=
>>
>>  The information in this e-mail and in any attachments is
confidential
>and
>>  is intended solely for the attention and use of the named
addressee(s).
>>
>>
>===

>=
>>
>>  If you are not the intended recipient, or a person responsible for
>passing
>>  it on to the intended recipient, you are not authorised to hold a
copy
>of
>>  this information and you must therefore not disclose, copy,
distribute,
>or
>>  retain this message or any part of it.
>MAILTO:[EMAIL PROTECTED]
>>
>>
>===

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




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


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



Re: Not starting with j2ee.jar in /lib direcotry

2003-04-01 Thread Alexandre Alvarez Martini Santos
Hello Ramsay,
That's what I'm doing, but it should not be this way. What if I need other
classes from j2ee.jar?
I put in th WEB-INF\lib but a msg( which I described in my previous mail)
What do you think?
thanks, al.

- Original Message -
From: "Ramsay Domloge" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 7:27 AM
Subject: Re: Not starting with j2ee.jar in /lib direcotry


> I believe that using j2ee.jar will screw with Tomcat's own codebase. You
> should use a JavaMail extension instead See
> http://java.sun.com/products/javamail/ to download just the JavaMail
> extension.
>
> R
>
>
> Alexandre Alvarez Martini Santos wrote:
>
> >Hello,
> >I put j2ee.jar in /common/lib directory and Tomcat4.1 did NOT start.
> >It did not start when I put in jre/lib/ext as well.
> >Why?
> >I need some classes to use JavaMail.
> >Could you help me, please?
> >Thanks in advance,
> >al.
> >
> >
> >
> >
>
>
>

>
> A R K E M E D I A   T E C H N O L O G I E S   L T D
>
>VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG
>
>   http://www.arkemedia.com
>
>  mailto:[EMAIL PROTECTED]
>
>  Tel : +44 1256 869 200  Fax : +44 1256 329 119
>
>

>
>  The information in this e-mail and in any attachments is confidential and
>  is intended solely for the attention and use of the named addressee(s).
>
>

>
>  If you are not the intended recipient, or a person responsible for
passing
>  it on to the intended recipient, you are not authorised to hold a copy of
>  this information and you must therefore not disclose, copy, distribute,
or
>  retain this message or any part of it. MAILTO:[EMAIL PROTECTED]
>
>

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


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



RE: Printing options/tools available in Java

2003-04-01 Thread McBrayer, Roy
http://jasperreports.sourceforge.net/index.html

-Original Message-
From: Pooleery, Manoj [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:03 PM
To: 'Tomcat Users List'
Subject: Printing options/tools available in Java


Hi,

I am looking for any options that are available in java for printing
excel/pdf documents.  Anybody know of any tool/package that I can use?

Thanks
-Manoj Pooleery
Senior Software Developer
Synygy Inc.
(www.synygy.com)

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



How to hand in the passwords to 3000 users [urgent!]

2003-04-01 Thread Nancy Crisostomo Martinez
Hi all!

I'm trying to entablish the best way to hand in their own user_id and
password to the 3000 users of an applicattion developed to Internet.

I don't know which could be the best way to do this without forgetting
the security because each user has some confidential information in
his/her session.

Could you please help me?
Any clue could help me!
Thanks in advance!

Nancy.

ps. I don't have their e-mails so, descart the email way.




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



RE: Antwort: Tomcat not excepting changes in web-app

2003-04-01 Thread Jan Behrens
This is a test-environment so I am basically working in the webapp\myProject\
dir on the original sources. At this point I am not creating war-files yet. I
am using the sun standard-compiler for building all binaries. Whenever I make
changes in .java files throughout the project, I rebuild them and reload my
webapp for changes to take effect. That works just fine, except for the
(static) class I mentioned below...

Thanks, Jan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 10:05 PM
> To: [EMAIL PROTECTED]
> Subject: Antwort: Tomcat not excepting changes in web-app
>
>
> You did not write how you deploy the changed class.
>
> Webapps are stored under the webapps directory
> There exists the war file and for each war file a directory with the
> unpacked content of the war file.
> Replacing all of this and restarting Tomcat should do it.
>
>
>
>
>
> [EMAIL PROTECTED] am 01.04.2003 21:46:56
>
> Bitte antworten an [EMAIL PROTECTED]@inet
>
> An:  [EMAIL PROTECTED]
> Kopie:
> Thema:   Tomcat not excepting changes in web-app
>
>
> I am re-posting this as I still hope that anyone of the cracks out there
> can
> help me
>
>
> Hi List,
>
> I keep on having the following trouble...
>
> I have a web-app that connects to a database, the connection parameters are
> stored in a static class that serves only this particular cause. Whenever I
> need to deploy to a new context (e.g. DB Server) I get the following error:
>
> java.sql.SQLException: Cannot connect to MySQL server on
> OLD_DB_SERVER:3306.
> Is there a MySQL server running on the machine/port you are trying to
> connect
> to? (java.net.ConnectException)
>
> Where OLD_DB_SERVER would be the name of the formerly used parameters. It
> seems that Tomcat stores those seetings somewhere, even if I remove the
> whole
> class, that Exception is thrown.
>
> My setup:
> Server VersionApache Tomcat/4.1.12
> JVM Version   1.4.0-b92
> JVM VendorSun Microsystems Inc.
> OS Name   Windows 2000
> OS Version5.0
> OS Arch   x86
>
> I have tried to start/restart the server, delete whats in
> /work/,
> reloading through the web-app Manager, constant recompiling of class in
> question as well as combinations of these. So far nothing seemed to solve
> the
> problem. Eventually (after ages) he has, so far at least, excepted the
> changes - but I am going nuts trying all those steps without any clue as to
> how this should really work.
>
> Am I not seeing the obvious, or has anyone made similar experiences?
>
> Regards
>
>
> Jan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Shapira, Yoav

Howdy,
Make sure you're using:

- The JDK (not JRE)
- The right version of the JDK (preferably the latest stable version)
- An OS that has the patches required for the JDK, if any

This was a known bug in JDK 1.4.0b92 or something like that: search the
BugParade on java.sun.com.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Robert Priest [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 3:22 PM
>To: [EMAIL PROTECTED]
>Subject: Jasper Error wrong version of Object.class (48.0 , should be
47.0)
>
>I am receiving the following error when my jsp file attempts to
compile.
>Could there be another version of Object.class in the way?
>org.apache.jasper.JasperException: Unable to compile class for JSP An
error
>occurred at line: -1 in the jsp file: null Generated servlet error:
[javac]
>Compiling 1 source file D:\pw\tip\output\delivery\Program
>Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfil
e\js
>p\upload$jsp.java:12:
>cannot access java.lang.Object bad class file:
>C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has
>wrong version 48.0, should be 47.0 Please remove or make sure it
appears in
>the correct subdirectory of the classpath. public String
getServletInfo() {
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: book on EJB

2003-04-01 Thread Anthony Marlowe
Hi,

I'm running JBoss 3.n with Tomcat with no problem whatsoever.

Tony

On Tuesday, Apr 1, 2003, at 17:08 Europe/Berlin, Jeremy Whitlock wrote:

Chris,
I tried Jonas and JBoss and never got them working correctly
with Tomcat.  I use OpenEJB as it's easy to get working and is
accessible via Tomcat with very minor configuration.  If you would like
any help setting it up, let me know.  Later, Jeremy
-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:45 PM
To: [EMAIL PROTECTED]
Subject: RE: book on EJB
Thanks for the recommendations, guys. i will be sure to check it out.
What
do you guys think of JBoss just out of curiosity?





From: "Jeremy Whitlock" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: RE: book on EJB
Date: Mon, 31 Mar 2003 16:21:42 -0700
Chris,
I second that.  It's a great book.  You'll need an EJB container
as well and I suggest OpenEJB.  It can be found here:
http://openejb.sourceforge.net

	It integrates tightly into Tomcat and is very simple to
install/configure/use.  I'd love to help you out with it if you go 
that
direction.  Later, Jeremy

-Original Message-
From: Dmitry Sklyut [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:21 PM
To: 'Tomcat Users List'
Subject: RE: book on EJB
www.theserverside.com

Download Ed Roman's book

-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 6:20 PM
To: [EMAIL PROTECTED]
Subject: book on EJB
i am an intermediate lvl jsp/servlet developer and would like to learn
ejb.
i am looking for a good tutorial/reference for novice/intermediate ejb
developers. any suggestions?
Chris

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


Jasper Error wrong version of Object.class (48.0 , should be 47.0)

2003-04-01 Thread Robert Priest
I am receiving the following error when my jsp file attempts to compile.
Could there be another version of Object.class in the way?
org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred 
at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source 
file D:\pw\tip\output\delivery\Program 
Files\Bentley\ProjectWise\WebServer\work\Standalone\localhost\uploadfile\jsp\upload$jsp.java:12:
 
cannot access java.lang.Object bad class file: 
C:\j2sdk1.4.1_01\jre\lib\rt.jar(java/lang/Object.class) class file has wrong version 
48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory 
of the classpath. public String getServletInfo() { 


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



RE: Tomcat not excepting changes in web-app

2003-04-01 Thread Shapira, Yoav

Howdy,
Tomcat doesn't cache any of this in a way that persists across restarts.
If you deploy a changed version of a class to the server and restart it,
the new class will be loaded, as it's a new JVM instance, new
classloader, etc.

Any other behavior you're seeing is most likely an error of your part,
and could be one of many, e.g.

- Your code doesn't refer to this class
- You haven't really redeployed the class
- You have multiple versions of the class in the classpath, e.g. in
WEB-INF/lib and common/lib.
- You haven't really restarted the server
etc.

It is often useful to add logging, even in a static initializer block if
you have to, so that you know how your class is being used, when it is
loaded, etc.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Jan Behrens [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 2:47 PM
>To: 'Tomcat Users List'
>Subject: Tomcat not excepting changes in web-app
>
>I am re-posting this as I still hope that anyone of the cracks out
there
>can
>help me
>
>
>Hi List,
>
>I keep on having the following trouble...
>
>I have a web-app that connects to a database, the connection parameters
are
>stored in a static class that serves only this particular cause.
Whenever I
>need to deploy to a new context (e.g. DB Server) I get the following
error:
>
>java.sql.SQLException: Cannot connect to MySQL server on
>OLD_DB_SERVER:3306.
>Is there a MySQL server running on the machine/port you are trying to
>connect
>to? (java.net.ConnectException)
>
>Where OLD_DB_SERVER would be the name of the formerly used parameters.
It
>seems that Tomcat stores those seetings somewhere, even if I remove the
>whole
>class, that Exception is thrown.
>
>My setup:
>Server Version Apache Tomcat/4.1.12
>JVM Version1.4.0-b92
>JVM Vendor Sun Microsystems Inc.
>OS NameWindows 2000
>OS Version 5.0
>OS Archx86
>
>I have tried to start/restart the server, delete whats in
>/work/,
>reloading through the web-app Manager, constant recompiling of class in
>question as well as combinations of these. So far nothing seemed to
solve
>the
>problem. Eventually (after ages) he has, so far at least, excepted the
>changes - but I am going nuts trying all those steps without any clue
as to
>how this should really work.
>
>Am I not seeing the obvious, or has anyone made similar experiences?
>
>Regards
>
>
>Jan
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Antwort: Tomcat not excepting changes in web-app

2003-04-01 Thread horst . scheruga
You did not write how you deploy the changed class.

Webapps are stored under the webapps directory
There exists the war file and for each war file a directory with the
unpacked content of the war file.
Replacing all of this and restarting Tomcat should do it.





[EMAIL PROTECTED] am 01.04.2003 21:46:56

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   Tomcat not excepting changes in web-app


I am re-posting this as I still hope that anyone of the cracks out there
can
help me


Hi List,

I keep on having the following trouble...

I have a web-app that connects to a database, the connection parameters are
stored in a static class that serves only this particular cause. Whenever I
need to deploy to a new context (e.g. DB Server) I get the following error:

java.sql.SQLException: Cannot connect to MySQL server on
OLD_DB_SERVER:3306.
Is there a MySQL server running on the machine/port you are trying to
connect
to? (java.net.ConnectException)

Where OLD_DB_SERVER would be the name of the formerly used parameters. It
seems that Tomcat stores those seetings somewhere, even if I remove the
whole
class, that Exception is thrown.

My setup:
Server VersionApache Tomcat/4.1.12
JVM Version   1.4.0-b92
JVM VendorSun Microsystems Inc.
OS Name   Windows 2000
OS Version5.0
OS Arch   x86

I have tried to start/restart the server, delete whats in
/work/,
reloading through the web-app Manager, constant recompiling of class in
question as well as combinations of these. So far nothing seemed to solve
the
problem. Eventually (after ages) he has, so far at least, excepted the
changes - but I am going nuts trying all those steps without any clue as to
how this should really work.

Am I not seeing the obvious, or has anyone made similar experiences?

Regards


Jan


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









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



Printing options/tools available in Java

2003-04-01 Thread Pooleery, Manoj
Hi,

I am looking for any options that are available in java for printing
excel/pdf documents.  Anybody know of any tool/package that I can use?

Thanks
-Manoj Pooleery
Senior Software Developer
Synygy Inc.
(www.synygy.com)


Tomcat not excepting changes in web-app

2003-04-01 Thread Jan Behrens
I am re-posting this as I still hope that anyone of the cracks out there can
help me


Hi List,

I keep on having the following trouble...

I have a web-app that connects to a database, the connection parameters are
stored in a static class that serves only this particular cause. Whenever I
need to deploy to a new context (e.g. DB Server) I get the following error:

java.sql.SQLException: Cannot connect to MySQL server on OLD_DB_SERVER:3306.
Is there a MySQL server running on the machine/port you are trying to connect
to? (java.net.ConnectException)

Where OLD_DB_SERVER would be the name of the formerly used parameters. It
seems that Tomcat stores those seetings somewhere, even if I remove the whole
class, that Exception is thrown.

My setup:
Server Version  Apache Tomcat/4.1.12
JVM Version 1.4.0-b92
JVM Vendor  Sun Microsystems Inc.
OS Name Windows 2000
OS Version  5.0
OS Arch x86

I have tried to start/restart the server, delete whats in /work/,
reloading through the web-app Manager, constant recompiling of class in
question as well as combinations of these. So far nothing seemed to solve the
problem. Eventually (after ages) he has, so far at least, excepted the
changes - but I am going nuts trying all those steps without any clue as to
how this should really work.

Am I not seeing the obvious, or has anyone made similar experiences?

Regards


Jan


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



Does mod_jk2 and JNI work with the Apache2 prefork MPM?

2003-04-01 Thread Ken Cox
I'm stuck trying to use mod_jk2 (2.0.2) to connect Tomcat (4.1.24) to my
prefork Apache (2.0.45) via JNI.  Does anyone know have this type of setup
working?

What I really want is a servlet engine running in Apache's processes,
so that it can make JNI calls back into my (thread unsafe) C++ code.

Thanks,
Ken

-- Snippet from error_log ---

[Tue Apr 01 12:37:32 2003] [notice] jk2_init() Found child 25470 in
scoreboard slot 0
[Tue Apr 01 12:37:32 2003] [notice] jk2_init() Found child 25471 in
scoreboard slot 1
[Tue Apr 01 12:37:32 2003] [notice] vm.init(): Jni lib:
/home/synch/build/rel40/src/vendor/java-sdk/java1.4/Linux/jre/lib/i386/cli
ent/libjvm.so
[Tue Apr 01 12:37:32 2003] [notice] vm.init(): Jni lib:
/home/synch/build/rel40/src/vendor/java-sdk/java1.4/Linux/jre/lib/i386/cli
ent/libjvm.so
[Tue Apr 01 12:37:32 2003] [error] jk2_init() Can't find child 25472 in
scoreboard
...
[Tue Apr 01 12:37:32 2003] [notice] vm.open2() done
[Tue Apr 01 12:37:32 2003] [error] workerEnv.initChannel() init failed for
channel.jni:jni
[Tue Apr 01 12:37:32 2003] [notice] workerJni.Init() Skipping initialization
for the 4 25474
[Tue Apr 01 12:37:32 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Tue Apr 01 12:37:32 2003] [notice] workerJni.Init() Skipping initialization
for the 4 25474
[Tue Apr 01 12:37:32 2003] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown


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



RE: How to implements JavaBean in Tomcat 4.1.x in Win 2000 and solaris

2003-04-01 Thread Carlos Alberto Peláez Ayala
Hello friend, thanks for help me. I try with your idea, but appear the same
problem.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviado el: martes, 01 de abril de 2003 12:03
Para: [EMAIL PROTECTED]
Asunto: RE: How to implements JavaBean in Tomcat 4.1.x in Win 2000 and
solaris


remove the constructor and initialize the variable to null  and try ...

should be

package userinfo;
import java.io.*;

public class FormBean implements Serializable

  private String name = null;
  private String email = null;

  public void setName(String name)

   this.name = name;
  }
  public String getName()

   return name;
  }
  public void setEmail(String email)

   this.email = email;
  }
  public String getEmail()

   return email;
  }
}



-Original Message-
From: Carlos Alberto Peláez Ayala [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 18:00
To: [EMAIL PROTECTED]
Subject: How to implements JavaBean in Tomcat 4.1.x in Win 2000 and
solaris


Hello Friends,
Iam a beggining in the use of javabeans and jsp pages.
I try to run this example:

The file login7.jsp:




Form Example


<% if (request.getParameter("name")==null
 && request.getParameter("email") == null) { %>

User Info Request Form 


Your name: 

Your email: 




<% } else { %>

You have provided the following info:

Name: 

Email: 
<% } %>




and the file FormBean.java:

package userinfo;
import java.io.*;

public class FormBean implements Serializable

  private String name;
  private String email;
  public FormBean()

   name = null;
   email = null;
  }
  public void setName(String name)

   this.name = name;
  }
  public String getName()

   return name;
  }
  public void setEmail(String email)

   this.email = email;
  }
  public String getEmail()

   return email;
  }
}



When i try to run the login7.jsp in my browser, appear the follow error:

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: userinfo.FormBean
at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18
3)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:69
1)
at org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at
org.apache.jasper.compiler.Generator.generate(Generator.java:1871)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:238)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.

RE: Out of memory error

2003-04-01 Thread Darian Shimy
Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.

If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy 

> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 31, 2003 12:21 PM
> To: Tomcat Users List
> Subject: Out of memory error
> 
> 
> Hi,
> 
> Very occasionally my Tomcat server runs into out of memory 
> errors. I'ts not
> a heavily used server, less than 10 users a day I'd guess on 
> an Intranet.
> But every month or so it runs into memory problems. The 
> newest ones occurred
> yesterday and I didn't hear about them until today. When I 
> investigated I
> found hundreds of these lines repeating themselves in the 
> catalina log. 
> 
> 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> 'nnn.nnn.nn.nn'
> 
> They were eventually followed by this:
> 
> 2003-03-30 22:38:08 HttpProcessor[80][1] process
> java.lang.OutOfMemoryError
> 
> Can anyone tell me whether the first lines indicate a cause 
> of the out of
> memory error or whether they're just another symptom of running out of
> memory?
> 
> Thanks for any ideas,
> 
> Ken
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Anyone successfully authenticating Tomcat users w/ windows login info using a JNDIRealm?

2003-04-01 Thread Darian Shimy
Try this: http://www.jguru.com/faq/view.jsp?EID=1045412


--
Darian Shimy 

> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 26, 2003 11:16 AM
> To: Tomcat Users List
> Subject: Re: Anyone successfully authenticating Tomcat users 
> w/ windows login info using a JNDIRealm?
> 
> 
> If you have multiple domains, I think your out of luck. If you run a 
> single active directory domain, you *might* be able to do 
> something like 
> this:
> 
>  connectionURL="ldap://need.morecowbell.com:389";
> userBase="dc=more,dc=morecowbell,dc=com"
> userSearch="(userPrincipalName={0})"
> userRoleName="member"
> roleBase="dc=more,dc=morecowbell,dc=com"
> roleName="cn"
> roleSearch="(member={0})"
> connectionName="cn=A_USER,cn=Users,dc=more,dc=morecowbell,dc=com"
> connectionPassword="prescription"
> roleSubtree="true"
> userSubtree="true" />
> 
> To connect to active directory, you need a special user connection. 
> Thats why 
> connectionName="cn=A_USER,cn=Users,dc=more,dc=morecowbell,dc=com"
> is used.
> 
> I hope you have better luck that I had.
> 
> -Tim
> 
> Dan Payne wrote:
> > I'm looking for some assistance in setting up single-sign 
> on with our
> > windows 2000 intranet and Tomcat using Windows Active 
> Directory and a Tomcat
> > JINDIRealm and LDAP. What I'm essentially looking for is
> > HttpServletRequest.getRemoteUser() to return the username used to
> > authenticate to the Windows network (Active Directory).
> > 
> > My last post was rather vague and elicited no responses. 
> I've done some more
> > research and this seems to be the way to go but it would be 
> nice if anyone
> > who's already done it could relate their experiences or 
> perhaps point me in
> > the right direction to some resources covering this issue.
> > 
> > Thanks again,
> > 
> > Dan
> >  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


what's wrong with Example.ldif

2003-04-01 Thread Karamat Adil IHMD
Hi all,
   Can any one tell me why I cant run the sample file that is on the Tomncat
website for adding entries in the OpenLdap directory tree ? The file is as
follows

 --
 # Define a user named 'tomcat'
 dn: cn=tomcat,dc=xxx,dc=com
 cn: tomcat
 userPassword: tomcat
 sn: Tomcat User
 objectClass: person
 
 # Define a user named 'both'
 dn: cn=both,dc=xxx,dc=com
 cn: both
 userPassword: tomcat
 sn: Both User
 objectClass: person
 
 # Define an entry to base role searches on
 dn: dc=roles,dc=xxx,dc=com
 cn: roles
 objectClass: person
 sn: Roles Entry
 
 # Define all members of the 'tomcat' role
 dn: cn=tomcat,dc=roles,dc=xxx,dc=com
 cn: tomcat
 objectClass: groupOfUniqueNames
 uniqueMember: cn=tomcat,dc=xxx,dc=com
 uniqueMember: cn=both,dc=xxx,dc=com
 --
 
 OK it adds the first two entries i.e tomcat and both and then when it tries
 to add the third entry it gives the following message :
 
 adding new entry "dc=roles,dc=xxx,dc=com"
 ldapadd: update failed: dc=roles,dc=xxx,dc=com
 ldap_add: No such attribute (16)
 additional info: naming attribute 'dc' is not present in entry
 
 
 What am I doing wrong 
 Thanks,
 Adil

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

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



JK2, listening on different port/address using server.xml

2003-04-01 Thread Kundrot, Steven
Strange behavior with JK2, Tomcat 4.1.12 on Linux 7.2.

I configured JK2 with the default settings.  Everything worked fine.  I
attempted to change the server.xml to use a different port than 8009.  So, I
updated the server.xml to use port 8089.  The change took.  The admin webapp
displays the changes.  I stopped and restarted tomcat.  Interestingly, the
JK2 connector still listed on port 8009.  In order to make it work, I had to
modify jk2.properties and add the line "channelSocket.port=8089".  The
jk2.properties.save file, which is generated at startup had an entry of
"port=8089".  So the jk2 connector was reading the server.xml correctly, but
it was not using the jk2.properties.save file.  In addition, the
jk2.properties.save file didn't have the line right.  If you put "port=8089"
in the jk2.properties, it doesn't work.  You need to have
"channelSocket.port=8089".  I'm having similar problems with the address
attribute.  I'd like to specify the IP address that the JK2 listener should
bind to, but the address attribute in the server.xml and in the
jk2.properties file seems to be ignored.


Steven Kundrot


The information transmitted in this communication 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
received this in error, please destroy any copies, contact the sender and
delete the material from any computer.



Re: Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
Thanks.  I will look into it.

Paul Yunusov wrote:

> On Tuesday 01 April 2003 10:05 am, Michael D. Kirkpatrick wrote:
> > I am not quite sure if this question is suitable for this mailing list.  If
> > not, please forgive me.
> >
> > I am using the form authentication for adding security to one of my apps.
> > Since this app will be in use with several web sites, I am forced to pass
> > something like "?site=somesite" in my url.
> > The problem that I am running into is that on the actual login form, I do
> > not have access to the original query string.
> > The login page has 2 links: Create account and Recover Password.
> > I need that original query string so I can reference the proper web site's
> > information.
> > What I have access to is the query string of
> > "/some_app/login.jsp?name=value" for displaying the login screen.
> > That query is what I have placed in web.xml.
> >
> > So here is my question.  How can I capture the original query string or
> > make the query string in web.xml dynamic?
>
> I have a gut feeling you want to know how to keep a parameter across requests.
> There is an abstraction called "session" for storing data across multiple
> servlet requests from the same client. Check the
> javax.servlet.http.HttpSession interface and, in particular, its setAttribute
> and getAttribute methods.
>
> Paul
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Michael Mattox
> Howdy,
> This will give you a start:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto.
> html

Thanks, this page was a great help.  I'm stuck on one thing, what is the
"Group" in the mbeans-descriptors.xml file?  I have everything else set but
I'm still getting:

javax.management.ReflectionException: The MBean class could not be loaded by
the default loader repository

So I'm not sure if it's the group or something else I missed.

Thanks
Michael



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



Re: JDBCrealm drops user after manager reload

2003-04-01 Thread Dan Allen
Filip Hanik ([EMAIL PROTECTED]) wrote:

> I believe that during restart of a context, all sessions get serialized to
> disk.
> but the serialization does not serialize the principal. You can try to file
> a bug for this, but I might be afraid that it may get shutdown because of
> security concerns

Well here is the issue.  I am running a site, I need to upgrade a
few things and all my users just got kicked off in the process.
This seems to me like a major problem.  Am I supposed to wait until
3 in the morning to implement updates to the code?  This just seems
unreasonable.  While keeping all session data you loose the one part
of it that holds it all together?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Microsoft's Law of Software Engineering: 
Don't worry if it doesn't work right. 
If everything did, we'd be out of a job.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



RE: JDBCrealm drops user after manager reload

2003-04-01 Thread Filip Hanik
I believe that during restart of a context, all sessions get serialized to
disk.
but the serialization does not serialize the principal. You can try to file
a bug for this, but I might be afraid that it may get shutdown because of
security concerns

Filip

> -Original Message-
> From: Dan Allen [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 10:32 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: JDBCrealm drops user after manager reload
>
>
> I am having a fairly painful problem here dealing with
> authentication using the JDBCReam and container managed security.
> In particular I am using securityfilter, but I seriously doubt that
> this problem involves that application directly.
>
> If I use the default SecurityRealm that comes with the security
> filter application, which just manual sets the userInRole and
> getRemoteUser information, I can reload the context over and over
> and never drop the user.  When I use JDBCReam to handle users in a
> database and I reload the context after logging in all the active
> sessions loose their security principals and roles.  The thing is,
> all the session data is still there, working as normal.  I get no
> messages in the log files regarding a failure of any kind.
>
> In short:
>
> Why does a context reload kill the user principal information and
> how can I fix it?
>
> To duplication:
>
> Grab securityfilter from securityfilter.sourceforge.net  Log in out
> of the box, reload the context and view the securePage.jsp again.
> No problem.  Now, change the realm to JDBCRealm, login, reload
> the context and visit the securePage.jsp...aha, now it says you are
> not logged in and takes you to the login page.
>
> Dan
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Daniel Allen, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "This is a test of the Emergency Broadcast System.  If this had
> been an actual emergency, do you really think we'd stick around
> to tell you?"
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Form Auth

2003-04-01 Thread Paul Yunusov
On Tuesday 01 April 2003 10:05 am, Michael D. Kirkpatrick wrote:
> I am not quite sure if this question is suitable for this mailing list.  If
> not, please forgive me.
>
> I am using the form authentication for adding security to one of my apps.
> Since this app will be in use with several web sites, I am forced to pass
> something like "?site=somesite" in my url.
> The problem that I am running into is that on the actual login form, I do
> not have access to the original query string.
> The login page has 2 links: Create account and Recover Password.
> I need that original query string so I can reference the proper web site's
> information.
> What I have access to is the query string of
> "/some_app/login.jsp?name=value" for displaying the login screen.
> That query is what I have placed in web.xml.
>
> So here is my question.  How can I capture the original query string or
> make the query string in web.xml dynamic?

I have a gut feeling you want to know how to keep a parameter across requests. 
There is an abstraction called "session" for storing data across multiple 
servlet requests from the same client. Check the 
javax.servlet.http.HttpSession interface and, in particular, its setAttribute 
and getAttribute methods.

Paul

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



RE: Suggestions needed - customizing authorization

2003-04-01 Thread Shapira, Yoav

Howdy,

>Before I dive into hacking a bunch of Tomcat source
>code, I would very much like to solicit the opinions of
>some more experienced users.

I doubt you'll need to hack a bunch of tomcat source code.

>I need a form-login authorization scenario that

Authorization or authentication?

>My initial thought was to create a custom Realm, but I
>don't see a way to access the HttpServletRequest that
>is seeking authentication. Have I missed something
>there?

You can use on of the existing realms.  Create a file or database table
as outlined in the realm how-to document, containing the users and roles
you want.  Define the appropriate realm in server.xml.  Define the
security constraint elements in your web.xml.

>accomplishing what I am trying to do? Is there a way to
>access the Principal of a given request after the user
>has been authenticated?

Request.getUserPrincipal() is the servlet specification standard way to
do this.  And Request.isUserInRole() is the standard way to check if the
user is a member of a certain group.

>create a custom Principal capable of storing the other
>properties I need? Any pointers, suggestions or ideas
>would be much appreciated. Also, if you know of any
>projects that have already done this, I'd love to check
>them out so I'm not reinventing the wheel.

It's good that you don't want to re-invent the wheel.  I don't think you
have to do much coding given your requirements.

Yoav Shapira
Millennium ChemInformatics



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


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



JDBCrealm drops user after manager reload

2003-04-01 Thread Dan Allen
I am having a fairly painful problem here dealing with
authentication using the JDBCReam and container managed security.
In particular I am using securityfilter, but I seriously doubt that
this problem involves that application directly.

If I use the default SecurityRealm that comes with the security
filter application, which just manual sets the userInRole and
getRemoteUser information, I can reload the context over and over
and never drop the user.  When I use JDBCReam to handle users in a
database and I reload the context after logging in all the active
sessions loose their security principals and roles.  The thing is,
all the session data is still there, working as normal.  I get no
messages in the log files regarding a failure of any kind.

In short:

Why does a context reload kill the user principal information and
how can I fix it?

To duplication:

Grab securityfilter from securityfilter.sourceforge.net  Log in out
of the box, reload the context and view the securePage.jsp again.
No problem.  Now, change the realm to JDBCRealm, login, reload
the context and visit the securePage.jsp...aha, now it says you are
not logged in and takes you to the login page.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"This is a test of the Emergency Broadcast System.  If this had 
been an actual emergency, do you really think we'd stick around 
to tell you?"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Using Ant for tomcat configuration

2003-04-01 Thread srinath narasimhan
Hi

Can Ant be used to configure ( manipulate ) the server.xml in tomcat to
create a host ?


Thanks.
Srinath.


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



Re: shared resources - a final answer?

2003-04-01 Thread Pat McGroin
Can anyone tell me which is right?
Do shared resources across applications go in $CATALINA_HOME/common or 
$CATALINA_HOME/shared?

The HOWTO doc. says the shared dir. is the place to put these resources.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

However, Paul tells me that I need to put jar files under $CATALINA_HOME/common 
directory since they can be seen by both engine and application and that 
$CATALINA_HOME/shared directory are only available to Catalina engine, not my 
applications.
I do not have the WROX book he refers to.

My test worked with a shared JAR file in the common dir. but failed with the JAR file 
in the shared dir. so it appears the doc. is wrong.
Is this a known bug or am I reading the documentation wrong?

Thanks.


-Original Message-
From: "Paul Hsu"<[EMAIL PROTECTED]>
To: "Pat McGroin"<[EMAIL PROTECTED]>
Date: Mon Mar 31 08:53:29 PST 2003
Subject: Re: shared resources

>Todd,
>
>You are right based on HOWTO document. The information I provided to you is
>from wrox's professional tomcat book. But your case seems tell us the HOWTO
>document is wrong. How do you think?
>
>
>Paul
>
>
>- Original Message -
>From: "Pat McGroin" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Cc: "Paul Hsu" <[EMAIL PROTECTED]>
>Sent: Monday, March 31, 2003 8:10 AM
>Subject: Re: Re: shared resources
>
>
>> Paul,
>>
>> That worked *BUT* the documentation says otherwise:
>> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
>>
>> "For classes and resources that must be shared across all web
>applications, place unpacked classes and resources under
>$CATALINA_HOME/shared/classes, or place JAR files containing those classes
>and resources under $CATALINA_HOME/shared/lib."
>>
>> "This class loader contains additional classes that are made visible to
>both Tomcat internal classes and to all web applications. Normally,
>application classes should NOT be placed here."
>>
>> The $CATALINA_HOME/common/lib contains such JAR files as ant.jar and
>servlet.jar so it does not seem like the place for my shared JAR files.
>>
>> Is the documentation wrong or is this a bug?
>> Or am I just reading the documentation incorrectly?
>>
>> Thanks,
>> Todd
>>
>>
>> -Original Message-
>> From: "Paul Hsu"<[EMAIL PROTECTED]>
>> To: "Tomcat Users List"<[EMAIL PROTECTED]>
>> Date: Sun Mar 30 19:20:44 PST 2003
>> Subject: Re: shared resources
>>
>> >Todd,
>> >
>> >You need to put your jar file under $CATALINA_HOME/common direcotry.
>> >$CATALINA_HOME/shared directory are only available to Catalina engine,
>not
>> >application but /common can be seen by both engine and application.
>> >
>> >Paul
>> >- Original Message -
>> >From: "Pat McGroin" <[EMAIL PROTECTED]>
>> >To: <[EMAIL PROTECTED]>
>> >Sent: Sunday, March 30, 2003 5:32 PM
>> >Subject: Re: shared resources
>> >
>> >
>> >> Craig,
>> >>
>> >> Thanks again for the information.
>> >> The info. you've supplied has been very useful.
>> >> However, my problem remains:
>> >>
>> >> I cannot access the class that resides in a JAR file (utilities.jar) in
>> >/shared/lib and get a java.lang.NoClassDefFoundError
>> >>
>> >> I am spinning my wheels on this so hopefully some details will shed
>some
>> >light on my problem. I wrote a very simple servlet that attempts to use
>the
>> >class in the shared dir.
>> >>
>> >> 
>> >> import com.myco.utilities.CASDate;
>> >> import javax.servlet.http.HttpServlet;
>> >> import javax.servlet.http.HttpServletRequest;
>> >> import javax.servlet.http.HttpServletResponse;
>> >>
>> >> public class Test1 extends HttpServlet {
>> >> //
>> >> public void doGet(HttpServletRequest request, HttpServletResponse
>> >response) throws javax.servlet.ServletException, java.io.IOException {
>> >>
>> >> System.out.println("GET method of Test1 invloked");
>> >> performTask(request, response);
>> >> }
>> >> //
>> >> public void doPost(HttpServletRequest request, HttpServletResponse
>> >response) throws javax.servlet.ServletException, java.io.IOException {
>> >>
>> >> System.out.println("POST method of Test1 invloked");
>> >> performTask(request, response);
>> >> }
>> >> /**
>> >> * Test the use of a shared class.
>> >> */
>> >> public void performTask(HttpServletRequest request, HttpServletResponse
>> >response) {
>> >>
>> >> try {
>> >> java.io.PrintWriter pw = response.getWriter();
>> >> CASDate today = new CASDate();
>> >> pw.println("CASDate today is " + today.toString());
>> >> pw.println("CASDate class loaded...");
>> >> }
>> >> catch(Throwable theException) {
>> >> System.out.println("Error...");
>> >> theException.printStackTrace(System.out);
>> >> }
>> >> }
>> >> }
>> >> 
>> >> This is the utility class (some getXXX methods deleted for brevity):
>> >> 
>> >> package com.myco.utilities;
>> >>
>> >> import java.util.Calendar;
>> >> import java.util.GregorianCalendar;
>> >>
>> >> public class CASDate {
>> >> private int ccc = 0;
>> >> private int yyy = 0;
>> >>

RE: Seperate tomcats - one apache

2003-04-01 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
if you remove the vhost for host1 completely from apache to which tomcat do
you get mapped?

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:10 AM
To: Tomcat Users List
Subject: Re: Seperate tomcats - one apache



It doesn't work at all.  Believe me, I've now spent 14 hours trying to make 
it work.

I posted yesterday exactly what I have done so far ("Help with one Apache, 
mod_jk, two Tomcats, no load balancing").

http://host1.com:8080 -> Tomcat 1 works great
http://host2.com:8081 -> Tomcat 2 works great

Apache Virtual Host host1 (http://host1.com) -> Tomcat 1
Apache Virtual Host host2 (http://host2.com) -> ALSO Tomcat 1

I've tried many variations of workers.properties, even setting up load- 
balanced workers as suggesting in http://www.ubeans.com/tomcat (private JVM 
section) even though I don't want load-balancing at all.

mod_jk.log:

[Mon Mar 31 16:48:59 2003]  [mod_jk.c (471)]: agsp=80 agsn=host2.com 
hostn=host2.com shostn=host1.com cbsport=0 sport=0
[Mon Mar 31 16:48:59 2003]  [jk_ajp_common.c (1391)]: Into 
jk_worker_t::get_endpoint
...
...
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/images/A2_incent.jpg'
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match tomcat1 -> /
[Mon Mar 31 16:48:59 2003]  [mod_jk.c (1277)]: Into handler r->proxyreq=0 
r->handler=jakarta-servlet r->notes=1578240 worker=tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker

I don't know about you, but line number one there looks pretty fishy to 
me...I have no idea what "shostn" means (shared host name?), but it 
shouldn't be "host1", it should be "host2", and the worker found should be 
"tomcat2", not "tomcat1".

I am definitely open to suggestions on how to make this work, but I can 
tell you that I am no stranger to setting up mod_jk (different port 
numbers, etc), and at this time this DOES NOT work for me with Apache .43, 
Tomcat 4.1.18, Solaris 8, and built-from-source mod_jk.

John

On Tue, 1 Apr 2003 10:46:38 -0700, George Sexton <[EMAIL PROTECTED]> 
wrote:

> I routinely run via the CATALINA_BASE method for multiple instances and 
> have
> no problems.
>
> Using mod_jk, all you have to do is define the connectors to be on 
> different
> ports, and then configure each servlet engine to run mod_jk on a 
> different
> port.
>
> -Original Message-
> From: Steve Harris [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 9:46 AM
> To: [EMAIL PROTECTED]
> Subject: Seperate tomcats - one apache
>
>
> Hi all,
>
> I'm having some fun with some applications supplied to us that may be
> casuing a problem wiht each other, i.e. one application may be causing 
> the
> whole tocat environment to fail - thus affecting the others.
>
> I'm toying with the idea of trying to run a signle apache but with
> multiple tomcats - one per application. Does anyone have any views on 
> this
> ?
>
> Cheers - Steve
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



Suggestions needed - customizing authorization

2003-04-01 Thread Barley
Before I dive into hacking a bunch of Tomcat source
code, I would very much like to solicit the opinions of
some more experienced users.

I need a form-login authorization scenario that
integrates with some of my other webapps. Specifically,
I need to know the username, real name and group info
of the person who has logged in.

I used to use Resin, and my solution was something like
this: I created my own custom Authenticator class
(similar to Tomcat Realms). Resin passed the
HttpServletRequest to the Authenticator class. I
queried a MySql database to verify login information,
and then inserted some values from the database into
the HttpSession of the request that was passed. That
way, later on, my apps could look in the session to
find out about arbitrary pieces of information I had
stored about who had logged in.

My initial thought was to create a custom Realm, but I
don't see a way to access the HttpServletRequest that
is seeking authentication. Have I missed something
there?

Does anyone have any other suggestions for
accomplishing what I am trying to do? Is there a way to
access the Principal of a given request after the user
has been authenticated? Would it maybe be possible to
create a custom Principal capable of storing the other
properties I need? Any pointers, suggestions or ideas
would be much appreciated. Also, if you know of any
projects that have already done this, I'd love to check
them out so I'm not reinventing the wheel.

Gregg


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



Re: Seperate tomcats - one apache

2003-04-01 Thread John Turner
It doesn't work at all.  Believe me, I've now spent 14 hours trying to make 
it work.

I posted yesterday exactly what I have done so far ("Help with one Apache, 
mod_jk, two Tomcats, no load balancing").

http://host1.com:8080 -> Tomcat 1 works great
http://host2.com:8081 -> Tomcat 2 works great
Apache Virtual Host host1 (http://host1.com) -> Tomcat 1
Apache Virtual Host host2 (http://host2.com) -> ALSO Tomcat 1
I've tried many variations of workers.properties, even setting up load- 
balanced workers as suggesting in http://www.ubeans.com/tomcat (private JVM 
section) even though I don't want load-balancing at all.

mod_jk.log:

[Mon Mar 31 16:48:59 2003]  [mod_jk.c (471)]: agsp=80 agsn=host2.com 
hostn=host2.com shostn=host1.com cbsport=0 sport=0
[Mon Mar 31 16:48:59 2003]  [jk_ajp_common.c (1391)]: Into 
jk_worker_t::get_endpoint
...
...
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/images/A2_incent.jpg'
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match tomcat1 -> /
[Mon Mar 31 16:48:59 2003]  [mod_jk.c (1277)]: Into handler r->proxyreq=0 
r->handler=jakarta-servlet r->notes=1578240 worker=tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker

I don't know about you, but line number one there looks pretty fishy to 
me...I have no idea what "shostn" means (shared host name?), but it 
shouldn't be "host1", it should be "host2", and the worker found should be 
"tomcat2", not "tomcat1".

I am definitely open to suggestions on how to make this work, but I can 
tell you that I am no stranger to setting up mod_jk (different port 
numbers, etc), and at this time this DOES NOT work for me with Apache .43, 
Tomcat 4.1.18, Solaris 8, and built-from-source mod_jk.

John

On Tue, 1 Apr 2003 10:46:38 -0700, George Sexton <[EMAIL PROTECTED]> 
wrote:

I routinely run via the CATALINA_BASE method for multiple instances and 
have
no problems.

Using mod_jk, all you have to do is define the connectors to be on 
different
ports, and then configure each servlet engine to run mod_jk on a 
different
port.

-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Seperate tomcats - one apache
Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing 
the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on 
this
?

Cheers - Steve

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: inconsistencies in Tomcat handling servlet filters...

2003-04-01 Thread Jacob Kjome
Many thanks to Jonathan Leech for pointing out how to fix my problem 
(below).  See the original thread here:
http://marc.theaimsgroup.com/?l=tomcat-user&m=104759543729238&w=2
and then the code I forgot to attach to the original message here:
http://marc.theaimsgroup.com/?l=tomcat-user&m=104759559429435&w=2

He asked me to forward it to the list since he isn't a subscribed 
member.  So, here it is (below).  Now the only issue left is why the third 
example I mentioned still doesn't work ...

Given this code

out.write("PRE");
CharResponseWrapper wrapper = new 
CharResponseWrapper((HttpServletResponse) response);
chain.doFilter(request, wrapper);
out.write(wrapper.toString());
out.write("POST");

It prints out everything for jsp pages but only the following for html page...

PRE

Lesson 3


This is a pure test page





The missing data is this...


POST
I guess this is the one last mystery to solve.   It must have something to 
do with not setting the content length, but why would it affect the 
filtering of html pages and not jsp pages?  H  Anyone have a guess 
as to why this is happening?

Jake


From: "Leech, Jonathan" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: inconsistencies in Tomcat handling servlet filters...
Date: Mon, 31 Mar 2003 11:19:57 -0700
Jake,

I think I can help you out  Do me a favor though and post/forward this
response to the tomcat mailing list because
I'm too lazy to figure out how to subscribe and reply properly.
The simple answer is you need to flush() your PrintWriter.  Do this:
GenericResponseWrapper.java:
PrintWriter writer = null;

public byte[] toByteArray() {
   if (writer != null) writer.flush();
   return output.toByteArray();
}
public String toString() {
   if (writer != null) writer.flush();
   return output.toString();
}
public PrintWriter getWriter() {
   writer = new PrintWriter(getOutputStream(), true);
   return writer;
}
> Questions to answer...
>
> 1.  Why don't all 3 examples produce exactly the same output?  It
> seems to me that they should.
The first example will work fine with the modifications I suggest above.
I don't know what's wrong in the third example, but perhaps it will work as
well.
> 2.  Why does using a response wrapper that uses a ByteArrayOutputStream
> (as in GenericResponseWrapper) not work with JSP's?  The original data
> is always unavailable.
flush()ing the PrintWriter cures this.  Incidentally, if your .jsp writes
enough data you will get some data but the rest truncated.
> 3.  Why do I have to use a PrintWriter when filtering JSP's?  Why
> can't I use an OutputStream?  Using an OutputStream gets me the same
results
> as #2.
The spec says in the Servlet you've got to use one or the other, but not
both.  You
should be able to relax this constraint in your filter if everything is
kosher.  Perhaps
flushing the PrintWriter properly will fix this as well.
> So, is there anything wrong with my code or is something just goofy in
> Tomcat?
Looks to me like your code would have worked just fine, as mine did, in
older versions
of Tomcat, but that they stopped flushing the PrintWriter for you after the
.jsp runs, at
some point between 4.0.3 and 4.1.18
Sincerely,
Jonathan Leech
Senior Software Engineer
Virtela Communications, Inc.


sample openLdap ldif file wont work

2003-04-01 Thread Karamat Adil IHMD
Hi all,
   Can any one tell me why I cant run the sample file that is on the Tomncat
website for adding entries in the OpenLdap directory tree ? The file is as
follows

 --
 # Define a user named 'tomcat'
 dn: cn=tomcat,dc=xxx,dc=com
 cn: tomcat
 userPassword: tomcat
 sn: Tomcat User
 objectClass: person
 
 # Define a user named 'both'
 dn: cn=both,dc=xxx,dc=com
 cn: both
 userPassword: tomcat
 sn: Both User
 objectClass: person
 
 # Define an entry to base role searches on
 dn: dc=roles,dc=xxx,dc=com
 cn: roles
 objectClass: person
 sn: Roles Entry
 
 # Define all members of the 'tomcat' role
 dn: cn=tomcat,dc=roles,dc=xxx,dc=com
 cn: tomcat
 objectClass: groupOfUniqueNames
 uniqueMember: cn=tomcat,dc=xxx,dc=com
 uniqueMember: cn=both,dc=xxx,dc=com
 --
 
 OK it adds the first two entries i.e tomcat and both and then when it tries
 to add the third entry it gives the following message :
 
 adding new entry "dc=roles,dc=xxx,dc=com"
 ldapadd: update failed: dc=roles,dc=xxx,dc=com
 ldap_add: No such attribute (16)
 additional info: naming attribute 'dc' is not present in entry
 
 
 What am I doing wrong 
 Thanks,
 Adil

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



RE: Seperate tomcats - one apache

2003-04-01 Thread George Sexton
I routinely run via the CATALINA_BASE method for multiple instances and have
no problems.

Using mod_jk, all you have to do is define the connectors to be on different
ports, and then configure each servlet engine to run mod_jk on a different
port.

-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Seperate tomcats - one apache


Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on this
?

Cheers - Steve


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


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



Slightly OT: SocketException with MySQL

2003-04-01 Thread Geoff Peters
I am using Tomcat 4.1.18, MySQL 3.23, newest driver, running on Linux 7.3. Problem is 
similar to others who have posted on this subject, just want some advice (can't seem 
to get a definite answer). 

I'm not using connection pooling. If I walk away and leave the server running for 
several hours, I come back and cannot access the database via the servlet, the 
catalina.out file tells me "SQL Error: Communication link failure: 
java.net.SocketException". Happens whether or not I am running TOmcat remotely on or 
the same box as MySQL (i.e. not a network issue). I made sure all of my connection 
objects were close in the destroy() method of each servlet thinking all of the sockets 
were full, still didn't work. I just recently set autoReconnect = true in my 
server.xml realm tag - that doesn't seem to make a difference.  

Should that work? Or, should I be closing the connection object IMMEDIATELY after each 
executeUpdate or executeQuery? Currently am opening a connection in the init() method, 
and killing in the destroy(). 

Any suggestions greatly appreciated!! 

Thanks, Geoff 


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



the latest stable release?

2003-04-01 Thread Xu, William [CC]
http://jakarta.apache.org/tomcat/index.html This page (paragraph 2 in
section Tomcat 4.x) still shows the latest stable release is 4.1.18 as
opposed to 4.1.24. Is there any specific reason for that or just that page
has not been updated? Thanks in advance.

Regards,

William Xu



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



Re: Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
Same thing...

Jeff Tulley wrote:

> It is done through server.xml.  I don't know what web server connector
> you were using, but if it was Apache and mod_jk, you can still use it.
>
> On Tomcat's side, comment out the Coyote connector, which looks like:
> port="8009" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" connectionTimeout="0"
>useURIValidationHack="false"
>
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> Instead, use:
> port="8009" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="0"/>
>
> The problem is that this connector is deprecated and probably will give
> you an MBean exception.
>
> If you want to just verify the problem, you can try it out on an older
> but still functional HTTP connector.  Comment out the connector that
> looks like:
> port="8080" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="100" debug="0" connectionTimeout="2"
>useURIValidationHack="false" disableUploadTimeout="true"
> />
>
> And uncomment the one that looks like:
>
>  className="org.apache.catalina.connector.http.HttpConnector"
>port="8083" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" />
>
> You might want to change the port to 8080 and/or change some of the
> tuning parameters, max and minProcessors to be the same as they were on
> your other connector.
>
> If you form parameters are preserved, then you know that it is the same
> issue.
>
> Jeff Tulley  ([EMAIL PROTECTED])
> (801)861-5322
> Novell, Inc., The Leading Provider of Net Business Solutions
> http://www.novell.com
>
> >>> [EMAIL PROTECTED] 4/1/03 9:59:07 AM >>>
> Ok.
>
> For configuration and some implementation, I am still a newbie here.
> How
> do you change the connector to a non-Coyote one?  Which one would you
> recomend? Where can I find it?
>
> Jeff Tulley wrote:
>
> > I just found out that this is a known problem with the Coyote
> > connectors, both the HTTP connector and the JkHandler connector.
> > There is some code not implemented or something, and there is already
> a
> > bug report in bugzilla.
> >
> > To verify if we are talking about the same thing, go back to using
> an
> > old non-Coyote connector and see if your form parameters
> > are preserved across the login.
> >
> > This really needs to be fixed.  You can vote on the bug, it is
> #10229
> >
> > Jeff Tulley  ([EMAIL PROTECTED])
> > (801)861-5322
> > Novell, Inc., The Leading Provider of Net Business Solutions
> > http://www.novell.com
> >
> > >>> [EMAIL PROTECTED] 4/1/03 8:40:36 AM >>>
> > It returns "null".
> >
> > I noticed that it places all the POST/GET information into a session
> to
> > be
> > re-submitted to the actual page after successful login.  Know of a
> way
> > that I can
> > access the session information to extract a specific string in it?
> >
> > Henning Heil wrote:
> >
> > > Hi Michael,
> > >
> > >  Michael D. Kirkpatrick wrote on 01.04.2003 17:05 
> > >
> > > >I am not quite sure if this question is suitable for this mailing
> > list.  If
> > > >not, please forgive me.
> > > >
> > > >[snip]
> > > >
> > > >So here is my question.  How can I capture the original query
> string
> > or make
> > > >the query string in web.xml dynamic?
> > > >
> > > in general I would not recommend to set the string in the web.xml.
> > > first part of your question: you can read out any parameter of a
> post
> > or
> > > get string by request.getParameter(String parametername);
> > > second part: there are multiple ways to manipulate the request
> > > parameters: java -> request.setAttribute(String attributename,
> > String
> > > value); or by hidden fields in html forms or with select-fields
> > which
> > > are submitted . . .
> > >
> > > I would suggest:
> > >
> > > read out the site the user is coming from with
> > >
> > > String mysite = request.getParameter("site");
> > >
> > > (of course you have to add this to the string somewhere on the
> > original
> > > page)
> > >
> > > write it to newly generated links:
> > >
> > > out.println("passwordsubmitter.jsp?site=" + mysite);
> > >
> > > or sth like this . . .
> > >
> > > >I am also looking for mailing lists for the following:
> > > >Struts Questions
> > > >
> > > there's one on the apache.org site I think -> struts  . . .
> > >
> > > >General Java Questions
> > > >J2EE Questions
> > > >
> > > no mailing but extremely cool & helpful people there and also
> > mailing
> > > mechanisms to keep track of your threads:
> > > http://forums.java.sun.com/
> > >
> > > >If anyone can point me in the right direction, it would be
> greatly
> > > >appreciated.
> > > >
> > > >Thanks in advance.
> > > >
> >

RE: DriverclassName is required (mysql)

2003-04-01 Thread Mark.Gargan
Hi Folks,
I was using the Tomcat within the Java WebServices Development
Pack from Sun. I promptly got rid of it cos I like my dos output. 

Now instead of getting the error that the driverClassName is required,
now Tomcat says that it cannot load JDBC class null. This would be fair
enough only I've set the driverClassName property in the server.xml that
describes the datasource to be the org.gjt.mm.mysql.Driver class. It
looks like the name of the parameter that tells the the connection
factory which datasource to use is different to 'driverClassName'. Could
this have changed?

Thanks,
Mark.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2003 16:51
To: [EMAIL PROTECTED]
Subject: DriverclassName is required (mysql)

Hi Folks,
I'm trying to install jUDDI in my tomcat installation.
The installation is from the java webservices pack from the sun site. 
I'm trying to setup mysql as the underlying database for the UDDI
Registry.
 
I've inserted the following context into the server.xml as instructed in
the JNDI howto Datasources guide.
 


   
 
   
 
   
  
 factory
 
 
org.apache.commons.dbcp.BasicDataSourceFactory
  
 

  
 maxActive
 
 100
  
 

  
 maxIdle
 
 30
  
 

 
  
 maxWait
 
 1
  
 


  
 username
 
 javauser
  
 
  
 password
 
 javadude
  
 


  
 driverClassName
 
 org.gjt.mm.mysql.Driver
  
 

  
 url
 
 
jdbc:mysql://localhost:3306/javatest?autoReconnect=true
  
   
 
 
Unfortunately when I go to call the test.jsp which in turn makes a call
to the init method in the foo class :-
 
public void init() {
try{
  Context ctx = new InitialContext();
  if(ctx == null ) 
  throw new Exception("Boom - No Context");
 
  DataSource ds = 
(DataSource)ctx.lookup(
   "java:comp/env/jdbc/TestDB");
 
  if (ds != null) {
Connection conn = ds.getConnection();
  
if(conn != null)  {
foo = "Got Connection "+conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery(
  "select id, foo, bar from testdata");
if(rst.next()) {
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
}
 
it begins to resolve the DataSource and then throws the following
exception..
 
javax.naming.NamingException: DbcpDataSourceFactory:  driverClassName is
required
  at
org.apache.naming.factory.DbcpDataSourceFactory.getObjectInstance(DbcpDa
taSourceFactory.java:199)
  at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFact
ory.java:177)
  at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
  at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
  at javax.naming.InitialContext.lookup(InitialContext.java:347)
  at foo.DBTest.init(DBTest.java:26)
 
 
I can't really tell what the problem is as the driverClassName seems to
be defined in the xml.
The mysql-connector-java-2.0.14-bin.jar is placed in
${CATALINA.HOME}/common/lib so the classes are available? 
 
Anyone got any ideas? This is me falling at the first hurdle here.
Doesn't bode well for me at all. 
 
Thanks,
Mark.
 


--

  1   2   >