RE: [FAQ] : ( Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8 : (

2003-07-12 Thread Bentzy Sagiv
That's not the issue!!

1.I add at httpd.conf :JkSet config.file
/full/system/path/to/workers2.properties
2. I receive a message like the following : [notice] uriEnv.setAttribute()
the worker directive is depriciated
for EVERY Uri mapping ( like [uri:localhost/*.jsp]
   worker=ajp13:localhost:8009)
so the workers2.properties file is read!

bentzy.

My "workers2.properties":

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
file=/usr/local/apache2/logs/shm.file
size=1048576

[uriMap:]
debug=0

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
debug=0
port=8009
host=127.0.0.1

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

# Uri mapping
#[uri:127.0.0.1:/*.jsp]
[uri:localhost/*.jsp]
worker=ajp13:localhost:8009

#[uri:www.home.net/*.jsp]
#worker=ajp13:localhost:8009

#[uri:www.customer1.it/*.jsp]
#worker=ajp13:localhost:8009

#[uri:www.customer2.net/*.jsp]
#worker=ajp13:localhost:8009

I receive a message like the following :

[Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the worker
directive is depriciated

for every  Uri mapping, so the  workers2.properties file is read!
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:49 PM
To: Tomcat Users List
Subject: Re: [FAQ] Re: Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on LINUX RH8
: (



Sounds good to me.

John

On Thu, 10 Jul 2003 23:10:03 -0400 (EDT), Eric J. Pinnell <[EMAIL PROTECTED]>
wrote:

> I throw this against the wall and see what sticks...
>
> JK2 doesn't seem to be using my settings in my workers2.properties file
> such as creating the shm file or mapping the URIs listed to Tomcat,
> what's
> wrong?
>
> JK2 is not finding your workers2.properties file.  Specify it's location
> in your httpd.conf file by adding:
>
> JkSet config.file /full/system/path/to/workers2.properties
>
> ?
>
> -e
>
>
> On Thu, 10 Jul 2003, Tim Funk wrote:
>
>> OK - I read the thread. Can someone summarize this one into a question
>> and
>> answer?
>>
>> -Tim
>>
>> Tim Funk wrote:
>> > Duly noted (now I just have to read the what is below (and the rest of
>> > the thread)
>> >
>> > -Tim
>> >
>> > John Turner wrote:
>> >
>> >>
>> >> This should probably go in the FAQ under miscellaneous.
>> >>
>> >> John
>> >>
>> >> On Thu, 10 Jul 2003 11:29:48 -0400 (EDT), Eric J. Pinnell
>> >> <[EMAIL PROTECTED]> wrote:
>> >>
>> >>> Hi,
>> >>>
>> >>> I think we did this last week... with RH8.  The solution was to put
>> >>>
>> >>> JkSet config.file /full/system/path/to/workers2.properties
>> >>>
>> >>> in the httpd.conf file.  Many times JK2 doesn't see your properties
>> file
>> >>> and takes some wierd kind of self initiated defaults.
>> >>>
>> >>> -e
>> >>>
>> >>> On Thu, 10 Jul 2003, Bentzy Sagiv wrote:
>> >>>
>> 
>>  My goal is to setup Apache 2.0.43 + mod_jk2 + Tomcat 4.1.24 on
>> LINUX
>>  RH8
>> 
>>  I'm following the HOWTO at
>>  http://jakarta.apache.org/tomcat/tomcat-4.1-
>> doc/jk2/jk2/vhosthowto.html
>> 
>>  I download mod jk_2 from
>>  http://jakarta.apache.org/builds/jakarta-tomcat-
>>  connectors/jk2/release/v2.0.
>>  1/bin/linux/i386/mod_jk2-2.0.43.so
>> 
>>  I add to the original httpd.conf file:
>> 
>>  ServerName 127.0.0.1:80 and
>>  LoadModule jk2_module modules/mod_jk2.so
>> 
>>  I copy the workers2.properties from the HOWTO as is(just changed
>>  ../apache/.. to ../apache2/.. )
>> 
>>  I start Tomcat,it works and catalina.out looks OK.
>>  I start Apache,it works and error_log looks BAD: caught SIGTERM,
>>  shutting
>>  down :(
>> 
>>  [Thu Jul 10 16:41:02 2003] [notice] caught SIGTERM, shutting down
>>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the
>> worker
>>  directive is depriciated
>>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the
>> worker
>>  directive is depriciated
>>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the
>> worker
>>  directive is depriciated
>>  [Thu Jul 10 16:41:08 2003] [notice] uriEnv.setAttribute() the
>> worker
>>  directive is depriciated
>>  [Thu Jul 10 16:41:08 2003] [notice] Apache/2.0.43 (Unix)
>> mod_jk2/2.0.0
>>  configured -- resuming normal operations
>>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>>  /usr/local/apache2/conf/workers2.properties
>>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>>  /usr/local/apache2/conf/workers2.properties
>>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>>  [Thu Jul 10 16:41:08 2003] [notice] workerEnv.init() ok
>>  /usr/local/apache2/conf/workers2.properties
>>  [Thu Jul 10 16:41:08 2003] [notice] mod_jk child init 1 -1
>>  [Thu Jul 10 16:41:08 2003] [

precompiling jsps

2003-07-12 Thread Nathan Coast
Hi,

How do you precompile jsps for tomcat?  Is it possible to package 
compiled jsps in a jar file to be included in the WEB-INF dir of another 
war file?

If this is documented somewhere, I'd appreciate a shove in the right 
direction.

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


packaging jsps in jar files

2003-07-12 Thread Nathan Coast
Hi,

is it possible to package jsp files within a jar file so that the jsps 
will be available if the jar is placed within the WEB-INF dir of some 
web application.

I have developed a utility for web-apps that has both jsp and servlet 
components.  I am lazy and so would like to be able to make this utility 
available within other web apps simply be placing a jar file within the 
WEB-INF dir. The alternative is to place the various components of the 
utility in the appropriate places within the webapp.

thanks
Nathan


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


RE: JSP Pre-compile and Deployment

2003-07-12 Thread Craig Berry
You place the class files in /WEB-INF/classes, then hand-code servlet mappings in 
web.xml pointing from each xxx.jsp name to the corresponding class.

-Original Message- 
From: Lukas Bradley [mailto:[EMAIL PROTECTED] 
Sent: Sat 7/12/2003 10:58 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: JSP Pre-compile and Deployment



Double part question:

First, when I pre-compile JSPs, what directory are the JSP class files
placed?  In WEB-INF/jsp or WEB-INF/classes?

Second, without the actual JSP on the server, can the files be reached as
normally?  Will //localhost/myfile.jsp still map correctly to the class in
Tomcat?

Thanks.

Lukas




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





I need some help on MSQL (Microsoft SQL Server 2000) and JNDI

2003-07-12 Thread Jeff Cummings
I am try to setup a JNDI datasource. This is the exerp from my context. I
store app context in $CATALINA_HOME/webapp/myapp.xml file




   




mail.smtp.host

localhost









factory

org.apache.commons.dbcp.BasicDataSourceFactory





username

uname





password

pword







driverClassName

com.ashna.jturbo.driver.Driver







url

jdbc:JTurbo://MYSERVER:1036/mydatabase






I also added the following to web.xml for this app

   DB Connection
   jdbc/MSQL
   javax.sql.DataSource
   Container
   

My servlet fails – dataSource is null. Here is the code
try {
Context init = new InitialContext();
Context ctx = (Context)
init.lookup("java:comp/env");
DataSource dataSource = (DataSource)
ctx.lookup("jdbc/MSQL");

}
catch (NamingException ex) {
throw new ServletException("Cannot
retrieve java:comp/env/jdbc/conversion",ex);
}

Any ideas?


Jeff




INFO: APR not loaded, undefined symbol: apr_md5_final

2003-07-12 Thread Rick
Does anyone have any insight on this, when starting tomcat I get:

Apache Tomcat/4.1.24
Jun 6, 2003 9:50:00 AM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException:
/usr/lib/apache2/jkjni.so: /usr/lib/apache2/jkjni.so: undefined symbol:
apr_md5_final

is this a bug? I have searched around the user list and found this link
http://www.mail-archive.com/[EMAIL PROTECTED]/msg92114.html  but still it persists. Is 
this a bug?

Thanks alot.


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



Combining Jboss & Tomcat?

2003-07-12 Thread Adrian Beech
G'day folks,

I currently have an existing Tomcat 4.1.24 and J2SE 1.4.2 set up under
Windows XP Pro and all seems to be sweet.  Now I'd like to extend things a
bit and add Jboss into the loop for EJB support.  Are there HOWTO's floating
around which describe the installation and configuration of Tomcat and Jboss
in fairly easy to understand step by step instructions?

I see that Jboss 3.2.1 and 4.0 come bundled with Tomcat 4.1.24.  How would
this effect an existing Tomcat set up?

I am assuming (from what I've read thus far) that Tomcat 4.1.24 does not
support EJB... Or have I missed something?  Furthermore I'd assume that I
would need J2EE as opposed to J2SE?

AB



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



Re: Another JK2 question

2003-07-12 Thread Eric J. Pinnell
Hi,

mod_jk and JK2 are configured totally different from each other.  No more
JkMount's or anything.  Since I'm not a pro at mod_jk I can't tell you
what's exactly is still supported but just by looking at it I'd say slim
to none.

-e

On Sat, 12 Jul 2003, Jay Garala wrote:

> Folks,
>
> Maybe i should try this before posting(hmm) ..  Does JK2 support the
> same directives as JK in Apache?  I know of JkSet and Jk(??)URI.  But how
> about the others??
>
> Thanks
>
> Jay
>

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



servlet causes TC 5.0.3 to hang on startup

2003-07-12 Thread Michael Woinoski
Tomcat 5.0.3 on W2K hangs on startup whenever I deploy an app whose web.xml has
a  definition that contains a  element, either with or
without a number. This happens consistently on my TC installation, which has
unpackWARs set to true. Has anyone seen this behavior before? 

Thanks,
Mike

-- 

Mike Woinoski  Pine Needle Consulting
mailto:[EMAIL PROTECTED]

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



Another JK2 question

2003-07-12 Thread Jay Garala
Folks,
 
Maybe i should try this before posting(hmm) ..  Does JK2 support the
same directives as JK in Apache?  I know of JkSet and Jk(??)URI.  But how
about the others??
 
Thanks 
 
Jay


Re: JK2

2003-07-12 Thread Nicolas
Simon Pabst wrote:

set the following in workers2.properties to avoid log messages:

# Global logfile level set to emergency errors
[logger]
level=EMERG
thx that worked smoothly and had effekt on httpd and catalina



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


Re: JK2

2003-07-12 Thread Nicolas
Noel J. Bergman wrote:

map to invalid worker /examples ajp13:localhost:8009
   

Do you have a worker listening on localhost:8009?  I thought you had gone
with sockets, which is the example documented on the above Wiki page.
apache errors from OLD non socket directives in httpd.conf

everything else works now

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


RE: debug information

2003-07-12 Thread Noel J. Bergman
> on every request following debug information is printed into catalina.out
> what is it and how can i stop it ?

It is debugging code for Costin.  See the source.  Remember that jk2 is
still maturing, although I think that it works quite well.

--- Noel


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



RE: JK2

2003-07-12 Thread Noel J. Bergman
> well finally i made it

Glad to hear it.

> the problem was i had to use --with-pcre at compile time

Interesting ... I didn't have to do anything explicit with that when I did
my build, which was done on RH8 against the RH8 httpd distribution.

I'll probably do a new build within a couple of weeks, since I'm thinking of
switching to the official ASF source release.  Redhat is good at backporting
security fixes, but they have not kept up with enhancements.  It will be
interesting to see what changes when I do that build.

> now everyworks over the socket except that i have to chmod 666
> to jk.socket because apache can't access the file (starting as nobody).

See: http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Jk2Connector

Apache can also have a group assignment.  Just make sure that the user and
apache are in the same group, and then make that group the owner of the work
directory.

> how can i start tomcat as another user ?

Covered on the above page.

> HOW does the group directive work ?

Again, see the above page.

> map to invalid worker /examples ajp13:localhost:8009

Do you have a worker listening on localhost:8009?  I thought you had gone
with sockets, which is the example documented on the above Wiki page.

--- Noel


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



debug information

2003-07-12 Thread Nicolas
hi

and another question ;-)
i use jk2 with UNIX-Sockets.
on every request following debug information is printed into catalina.out
[Sat Jul 12 21:55:21 2003] ( info ) [jk_jni_aprImpl.c (472)]  jkInvoke() invoke 
4d2757f0
what is it and how can i stop it ?

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


Re: JK2

2003-07-12 Thread Simon Pabst
Change Apache User and Group in httpd.conf to same as Tomcat User.

Make a script in /etc/init.d for tomcat which starts up tomcat with
cd /path/to/tomcat
su - tomcatuser -c bin/startup.sh
(su needs root privileges to run without password)
set the following in workers2.properties to avoid log messages:

# Global logfile level set to emergency errors
[logger]
level=EMERG
At 16:53 12.07.2003 +, you wrote:
well finally i made it

the problem was i had to use --with-pcre at compile time now everyworks 
over the socket except that i have to chmod 666 to jk.socket because 
apache can't access the file (starting as nobody).

how can i start tomcat as another user ?

and on every request following log message is written into catalina.out

[Sat Jul 12 16:41:01 2003] ( info ) [jk_jni_aprImpl.c (472)]  jkInvoke() 
invoke 4d2757f0

and at the start following happens

[Sat Jul 12 16:40:06 2003] ( info ) [jk_uriEnv.c (245)]
uriEnv.setAttribute() the worker directive is deprecated. Use 'group' instead.
HOW does the group directive work ?

i guess this results following error in apache error_log

[Sat Jul 12 16:40:25 2003] [error] uriEnv.init() map to invalid worker 
/examples ajp13:localhost:8009

thx4help

-
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: starting as another user

2003-07-12 Thread Mike Johnson
Use something like:

su - -c /usr/local/tomcat/bin/startup.sh tomcat

Where 'tomcat' is the name of the user you want to own the process...

On Saturday, July 12, 2003, at 11:57 AM, Nicolas wrote:

hi

how can i start tomcat as another user at startup, say apache
that the socket file has the right permissions to use UNIX sockets.
thx4help

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


JSP Pre-compile and Deployment

2003-07-12 Thread Lukas Bradley
Double part question:

First, when I pre-compile JSPs, what directory are the JSP class files
placed?  In WEB-INF/jsp or WEB-INF/classes?

Second, without the actual JSP on the server, can the files be reached as
normally?  Will //localhost/myfile.jsp still map correctly to the class in
Tomcat?

Thanks.

Lukas




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



starting as another user

2003-07-12 Thread Nicolas
hi

how can i start tomcat as another user at startup, say apache
that the socket file has the right permissions to use UNIX sockets.
thx4help

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


Re: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-12 Thread Susan Hoddinott
Have you tried www.oreilly.com?

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message -
From: "Jose Euclides da Silva Junior - DATAPREVRJ"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 10, 2003 2:02 AM
Subject: [off-topic] - Where can i find Oreilly's package for uploading
files?


> Hi, i have tried to search for , but i didnt find it. Can somebody help
me?
> Thanks in advance,
> Euclides.
>
> -
> 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: images not appearing

2003-07-12 Thread Susan Hoddinott
Hello,

I had exactly the same problem and found that gifs need to be referenced as
"/MyGif.gif".  This makes it look in the web root directory (i.e. where your
HTMLs and JSPs are).  If you have a sub-directory then it might become
"/images/MyGif.gif".  I messed around with this for ages trying the context
path and all sorts of other things including preceding dots etc. as in your
examples.  Also check the case of your gif file name because if you are
ftp'ing from Windows it could be putting them in in uppercase.

Regards,
Susan Hoddinott
http://www.hexworx.com

- Original Message -
From: "Mark Biciunas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 09, 2003 3:09 AM
Subject: images not appearing


> I am deploying a test servlet on Tomcat 4.1.24.  Everything works great,
the
> servlet executes, I get results back at my browser, but none of the images
> show up.
>
> In conf/server.xml, I have added the following:
>
> 
>prefix="localhost_helloworld_log." suffix=".txt"
>   timestamp="true"/>
> 
>
> In webapps/hello/WEB-INF/web.xml, I have the following:
>
> 
> ...
> 
> helloworld
> helloworld.Hello
> 
>
> 
> helloworld
> /
> 
>
> 
>
>
> The image directory has been created in webapps/hello, and the requested
> image does exist.  As part of trying to resolve this, have placed copies
of
> the image directory up and down the directory tree and tried calling the
> image in the servlet in a number of ways (ie: /images/image.gif,
> ../images/image.gif, images/image.gif).  Nothing seems to work to get the
> image to display!!!
>
> Any and all ideas would be greatly appreciated at this point!!!
>
> Mark
> [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]



J2EE: Sinking Deeper and Deeper

2003-07-12 Thread taf
List, 

I thought I'd try a few things, to try and get my application to make use of 
javax.mail.*

I'm running IBM java131 and Tomcat 3.3.1

I've got a fairly extensive webapp written and running.  Moved it to a RedHat 9 Linux 
server without any changes (cool!).

I'm now trying to add some new function to the app--specifically email support.  

I wrote a standalone java class with successfully sends notes thru my ISPs mailserver.

I stick (essentially) the same code into a servlet in my webapp and I get these 
horrible errors (mostly NoClassDefFound...)

The problem seems to revolve around j2ee.jar (which contains the javax.mail.* stuff).  
If I understand the NoClassDefFound errors, some class referenced by my app is being 
found in another form (older? just different somehow.  Usually caused by have two 
copies of a .jar file in the Tomcat configuration).

Is it possible that javax.mail.Address (to pick a specific class for an example) 
resides in j2ee.jar and in some Tomcat 3.3.1 jar somewhere, and that the differences 
are between the class referenced in the compile and the class found at runtime differ 
and cause this problem?

Just for grins, I copied the j2ee.jar to java131\jre\lib\ext.  Tomcat died during the 
startup attempt.  Removed from ext, copied into usr\local\jakarta-tomcat-3.1.1\lib\app 
(the readme says will not interfere with container.  This time, the container started, 
but the first reference to my servlet causes:

Location: /daysails/jsp/SMElogon.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile 
E:\usr\local\jakarta-tomcat-3.3.1\work\DEFAULT\daysails\jsp\SMElogon_1.java:110: No 
method matching flushBuffer() found in class org.apache.jasper.runtime.JspWriterImpl.
  ((org.apache.jasper.runtime.JspWriterImpl)out).flushBuffer();
^
1 error at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at 
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherImpl.java:259)
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:174)
at SME.SMEcontrol.doPost(SMEcontrol.nrx:317)

I did find a statement in the jGuru faq to the effect that:

The J2EE reference implementation ships with Tomcat. The classes for Tomcat are 
located 
inside the \lib\j2ee.jar. If you wanted to use the latest version of Tomcat you would  
 
have to replace the classes in this archive.  

But I can't find a j2ee.jar within the Tomcat install structure.  Are the j2ee classes 
stored inside some other jarfile?  I'd gladly compile with those classes if I can find 
them.

Can anyone help?

  



Regards, 
Terry Fuller
[EMAIL PROTECTED]
---





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



Re: Please guide me

2003-07-12 Thread Tim Funk
That was vague.

http://jakarta.apache.org/tomcat/faq/

Probably in particular:
http://jakarta.apache.org/tomcat/faq/misc.html#compile
-Tim

Bhanu wrote:
Hello there,
I hope this mail will find you best in your health, well I am facing a problem in using with tomcat. Actually I am the associate of www.finditat.com and now a days we are shifting the website on a new server there we are facing a problem that our jsp pages are not compiling,  we had giving the context path properly we hope so. Actually it is creating the .java file when ever we use to call that page through our browser but it is not creating the .class file and that is why page doesn't come, plese guide us. I found this email id from your web site. 
 
Regards
Bhanu
 


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


Re: Servlet help needed!

2003-07-12 Thread Jason Coleman
For me when you close the browser the session is invalidated...

also, tomcat also has a 30min default expiry for inactive sessions
(elimating the need for below)

- Original Message -
From: "Rick Roberts" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, July 12, 2003 11:30 PM
Subject: Re: Servlet help needed!


> //Invalidate session if inactive for more than 1 hour
> if(!session.isNew()){ // skip new sessions
>Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000);
>Date accessed = new Date(session.getLastAccessedTime());
>
>if(accessed.before(hourAgo)) session.invalidate();
> }
>
> FIkayo Otun wrote:
> > Good day(Sir/ma), I am a java programmer just starting to explore the
J2ee platform. I use jdk1.4.2... and tomcat to develop and deploy my
servlet. I however need a way to end my session when ever I close my
browser.  I noticed when I close my browser my session will still be on. I
am currently ussing servlet to develop an online apllication. I this I realy
need to find A solution to my problem.
> >
> > Fikayo, from Nigeria
>
> --
> ***
> * Rick Roberts*
> * Advanced Information Technologies, Inc. *
> ***
>
>
> -
> 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: Servlet help needed!

2003-07-12 Thread Rick Roberts
//Invalidate session if inactive for more than 1 hour
if(!session.isNew()){ // skip new sessions
  Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000);
  Date accessed = new Date(session.getLastAccessedTime());
  if(accessed.before(hourAgo)) session.invalidate();
}
FIkayo Otun wrote:
Good day(Sir/ma), I am a java programmer just starting to explore the J2ee platform. I use jdk1.4.2... and tomcat to develop and deploy my servlet. I however need a way to end my session when ever I close my browser.  I noticed when I close my browser my session will still be on. I am currently ussing servlet to develop an online apllication. I this I realy need to find A solution to my problem.

Fikayo, from Nigeria
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: No valid command found (Please ban this guy)

2003-07-12 Thread Rick Roberts
Yea! :)

Noel J. Bergman wrote:
That subscriber was removed about 7 hours ago.
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2

2003-07-12 Thread Nicolas
well finally i made it

the problem was i had to use --with-pcre at compile time now everyworks 
over the socket except that i have to chmod 666 to jk.socket because 
apache can't access the file (starting as nobody).

how can i start tomcat as another user ?

and on every request following log message is written into catalina.out

[Sat Jul 12 16:41:01 2003] ( info ) [jk_jni_aprImpl.c (472)]  jkInvoke() 
invoke 4d2757f0

and at the start following happens

[Sat Jul 12 16:40:06 2003] ( info ) [jk_uriEnv.c (245)]  
uriEnv.setAttribute() the worker directive is deprecated. Use 'group' 
instead.

HOW does the group directive work ?

i guess this results following error in apache error_log

[Sat Jul 12 16:40:25 2003] [error] uriEnv.init() map to invalid worker 
/examples ajp13:localhost:8009

thx4help

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


Re: Need help with performance issue - Tomcat 4.1.X

2003-07-12 Thread Eric J. Pinnell
ditto.

There is no sure fire way from the system aspect (CPU, run queue, etc)
that will tell you what's going on.  You need to peek inside the VM and
see what it's doing.

-e

On Fri, 11 Jul 2003, John Turner wrote:

>
> Like I said, I'm no guru.  Sounds like you need to bust out a profiler.
>
> John
>
> On Fri, 11 Jul 2003 20:34:40 +, <[EMAIL PROTECTED]> wrote:
>
> > But again, the mx is only setting the heap size, not the whole JVM.  The
> > thread stack is controlled with an entirely different parameter for
> > example.
> >
> > I found this with a quick search:
> >
> > "The -Xmx setting controls the maximum size of the Java heap.
> >
> > However, the Java heap represents only part of the memory taken up by a
> > running Java application. There is space required for code, data space
> > used
> > by the JIT, plus any memory malloced by native code drivers associated
> > with
> > the application running in the JVM.  So the overall memory picture for
> > Java
> > applications turns out to be more complex than just the -Xmx value."
> >
> > -- Dave
> >>
> >> I have no idea, but based on past experience, if you are using more RAM
> >> than you've allocated, then you have a swap situation.  If the max
> >> setting wasn't an actual max, and you could blow past it whenever you
> >> needed it, why on earth would you need it in the first place?
> >>
> >> John
> >>
> >> On Fri, 11 Jul 2003 20:24:48 +, <[EMAIL PROTECTED]> wrote:
> >>
> >> > I definitely don't know enough about how the memory settings in java
> >> to > be of much use on this part.  I do not know if we've tried 512.  We
> >> > probably should.
> >> >
> >> > As for the 327, is that actually unreasonable?  The mx setting
> >> specfies > the maximum heap size.  Can the thread stack (specified using
> >> -Xss, which > we're not using) be taking up the remaining 75MB?  We have
> >> about 40 > threads started right now.
> >> >
> >> > Like I said, I don't know enough about java's memory allocation, but I
> >> > didn't think that the -Xmx set the maximum allowable total memory for
> >> the > JVM.  Am I mistaken?
> >> >
> >> > Even if memory were a problem, which it may be, would that account for
> >> a > 20 second delay between serving a page and closing the connection?
> >> > Remember that we currently have no load and only a couple users on the
> >> > system.
> >> >
> >> > -- Dave
> >> >>
> >> >> I'm certainly no guru, but if you are setting a max of 256 and then
> >> your >> app is soaking up 327 with no load whatsoever, I'd say you have
> >> a >> problem.  Have you tried a max of 512?
> >> >>
> >> >> John
> >> >>
> >> >> On Fri, 11 Jul 2003 20:08:10 +, <[EMAIL PROTECTED]>
> >> wrote:
> >> >>
> >> >> > We are currently starting up with -Xmx256M.  Java is currently
> >> using > >> about 327MB and has been that way for hours.  I haven't
> >> really seen any >> > fluxuations at all, which leans me away from the
> >> garbage collection > >> issue.
> >> >> >
> >> >> > I created a hello.jsp, which is completely separate from our >>
> >> application. > Same results.  It takes about 30 seconds to return.
> >> >> >
> >> >> > In the hello.jsp, the results of the page return instantly to the >
> >> >> browser, but then it's as if tomcat just won't close the connection
> >> to > >> the browser.  The page is there, fully rendered, but just sits
> >> there > >> waiting for the server to tell it it is done.  Is there some
> >> way that >> the > tomcat connections could be failing to terminate
> >> properly?
> >> >> >
> >> >> >
> >> >> > Our current maxProcessors = 75
> >> >> > acceptCount = 10 (which is probably low but right now we have only
> >> a > >> couple users on the system).
> >> >> >
> >> >> > We're not using 1.4 so those options are out.
> >> >> >
> >> >> > -- Dave
> >> >> >> Could be a Memory Leak/Garbage Collection issue (we had a similar
> >> >> >> problem with a memory intensive app),
> >> >> >> maybe your heap is too small and java is running many Full GC's.
> >> >> >> Start java with -verbose:gc and look in tomcat/logs/catalina.out
> >> for >> >> Garbage Collections.
> >> >> >> (set Environment Variables JAVA_OPTS or CATALINA_OPTS in >>
> >> bin/catalina.sh >> to do this in Tomcat)
> >> >> >>
> >> >> >> 
> >> >> >>
> >> >> >> Try using a bigger Heapsize (though if you've got a Memory Leak
> >> that >> >> will only delay your problem)
> >> >> >> or set initial Heapsize to same as maximum, for example 128MB:
> >> >> >> -Xmx128m -Xms128m
> >> >> >>
> >> >> >> 
> >> >> >>
> >> >> >> Modify the Connector you are using to access Tomcat (in >> >>
> >> tomcat/conf/server.xml) and
> >> >> >> try using more Tomcat Processors (maxProcessors=XX) or a bigger >>
> >> accept >> queue length (acceptCount=XX)
> >> >> >> (test value for acceptCount: at least > concurrent users x 3)
> >> >> >>
> >> >> >> 
> >> >> >>
> >> >> >> Try using another method of garbage colle

Problems with mailer taglib

2003-07-12 Thread Eulogio Robles
I have two pages (mailer1.jsp and mailer2.jsp). Both are almost
identical : they receive four parameters (to, from, subject and
message), and generate an email message using Javamail.
mailer1.jsp uses a JSP scriplet, invoking standard Java Mail API calls
to send the message.
mailer2.jsp uses taglib-mailer and taglib-request and a JNDI mail
session resource.
When I use mailer1, all messages go out without problems.

The problem is, when I use mailer2.jsp, the first message goes out to
the intended recipient. Any message that is sent from there, even from
other users on different PC's, go to the same first recipient, no matter
what address is specified by each user. All the rest (subject and
message body) is different for each message. Only the original first
recipient is "shared" by all sessions.
The JNDI resource is defined on the application context on server.xml,
as follows :
 //it was "shareable", same result

  
mail.smtp.host
my-mail-host
  

and this is the taglib sender code on mailer2.jsp :

<[EMAIL PROTECTED] uri="/WEB-INF/taglibs-mailer.tld" prefix="mt"%>
<[EMAIL PROTECTED] session="true" isThreadSafe="true" errorPage="/errorpage.jsp"
isErrorPage="false"%>
<[EMAIL PROTECTED] uri="/WEB-INF/taglibs-request.tld" prefix="req"%>



  


  


  


  


  


  The following errors occured
  

  
  Please back up a page, fix the error and resubmit.

 
I first noticed the problem, because I have a page (a form) that calls a
second page that must generate two separate mail messages, with
different texts for two separate recipients. It calls mailerX.jsp twice,
via two separate  directives. When I include mailer2, both
messages are delivered to whatever user first invoked it (mailer2) on
some session. Both messages are indeed different, each one with its own
subject and body. On the other hand, mailer1.jsp correctly delivers each
message to each intended user.
I am using Apache 2 and Tomcat  4 (all latest versions).

Any ideas?

Thanks in advance,

Eulogio Robles

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


Fault Code = SOAP-ENV:Server.BadTargetObjectURI

2003-07-12 Thread sunilkumar
Hai ,
I deployed the service fine.
But when I try to call using client I am getting the following
error.
I set the classpath for tomcathome/webapps/soap/WEB-INF/classes
also.

The call failed:
Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
Fault String = Unable to resolve target object:
com.siptech.irpa.PNRStatus

Kindly provide me the solution.

regards

--

SunilKumar I

SIP Technologies & Exports Ltd
G4, Elnet Software City,CPT Road
Taramani, Chennai 600 113
India

Phone: +91-44-22541401
   +91-44-22541031

Fax: +91-44-22541475

Website: http://www.siptech.com




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



RE: No valid command found (Please ban this guy)

2003-07-12 Thread Noel J. Bergman
That subscriber was removed about 7 hours ago.

--- Noel

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



Servlet help needed!

2003-07-12 Thread FIkayo Otun
Good day(Sir/ma), I am a java programmer just starting to explore the J2ee platform. I 
use jdk1.4.2... and tomcat to develop and deploy my servlet. I however need a way to 
end my session when ever I close my browser.  I noticed when I close my browser my 
session will still be on. I am currently ussing servlet to develop an online 
apllication. I this I realy need to find A solution to my problem.

Fikayo, from Nigeria
-- 
__
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


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



Please guide me

2003-07-12 Thread Bhanu
Hello there,
I hope this mail will find you best in your health, well I am facing a problem in 
using with tomcat. Actually I am the associate of www.finditat.com and now a days we 
are shifting the website on a new server there we are facing a problem that our jsp 
pages are not compiling,  we had giving the context path properly we hope so. Actually 
it is creating the .java file when ever we use to call that page through our browser 
but it is not creating the .class file and that is why page doesn't come, plese guide 
us. I found this email id from your web site. 
 
Regards
Bhanu


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: No valid command found (Please ban this guy)

2003-07-12 Thread Michele Neylon:: Blacknight Solutions
This moron has to go!
Yesterday there were about 30 today I've lost count. Somebody please get him
off the list.

Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.com
Spam and virus scanning available 


#
This message (and any attachment) is intended only for the 
recipient and may contain confidential and/or privileged 
material.  If you have received this in error, please contact the 
sender and delete this message immediately.  Disclosure, copying 
or other action taken in respect of this email or in 
reliance to it is prohibited. 


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



RE: No valid command found (Please ban this guy)

2003-07-12 Thread Sjoerd van Leent
Please ban indeed, my account won't allow so much mail!

-Original Message-
From: jo outen [mailto:[EMAIL PROTECTED] 
Sent: zaterdag 12 juli 2003 8:25
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: No valid command found (Please ban this guy)

Can someone please ban this guy from the list. !!!
--- [EMAIL PROTECTED] wrote:
> Your message does not contain a valid command for
> this mail server
> to process.  No action has been taken.
> 
> Message-ID:
>
<[EMAIL PROTECTED]>
> From  : [EMAIL PROTECTED]
> Date  : Sat, 12 Jul 2003 09:20:31 +0500
> 
> : Message contains [1] file attachments
> 
> >
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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





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