compilation errors while building tomcat-apache jk2 connector ISAPI module.

2004-10-06 Thread Sato
Microsoft VisualC++ 6.0
OS: Win 2k: SP4

I am getting following errors while building isapi module of JK2
connector. Could you pl suggest me to fix this issue?

Configuration: isapi - Win32 Release
Compiling...
jk_isapi_plugin.c
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(160) : error C2065:
'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(160) : warning C4018:
'==' : signed/unsigned mismatch
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(229) : warning C4018:
'==' : signed/unsigned mismatch
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : error C2065:
'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : error C2146:
syntax error : missing ')' before identifier 'pvNotification'
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : warning C4047:
'=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void
*,unsigned long *)' differs in levels of indirection from 'int '
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(231) : error C2059:
syntax error : ')'
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(232) : error C2146:
syntax error : missing ')' before identifier 'pvNotification'
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(232) : warning C4047:
'=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)'
differs in levels of indirection from 'int '
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(232) : error C2059:
syntax error : ')'
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(234) : error C2146:
syntax error : missing ')' before identifier 'pvNotification'
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(234) : warning C4047:
'=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)'
differs in levels of indirection from 'int '
C:\jk2\native2\server\isapi\jk_isapi_plugin.c(234) : error C2059:
syntax error : ')'
Error executing cl.exe.
Creating browse info file...

isapi_redirector2.dll - 8 error(s), 5 warning(s)


regards,
aato.

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



where can i get jkjni.dll for windows.

2004-10-04 Thread Sato
hi,

where can i get jkjni.dll for win32 to run apache with tomcat as
inmemory process(mod_jk2)?


regards,
0xcafebabe

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



inmemory tomcat container is not getting created on Apache[Apache/2.0.48 (Win32) mod_jk2/2.0.4] Server

2004-10-04 Thread Sato
i started apache Apache/2.0.48 (Win32) mod_jk2/2.0.4 Server, Can
anyone suggest me to solve this issue?

THe following error appears:

[Thu Oct 21 14:04:52 2004] [notice] shm.create() Created head 830008 size 8192
[Thu Oct 21 14:04:52 2004] [notice] Child 480: Child process is running
[Thu Oct 21 14:04:52 2004] [notice] jk2_init() Setting scoreboard slot
0 for child 480
[Thu Oct 21 14:04:52 2004] [notice] vm.init(): Jni lib: C:\Program
Files\Java\j2re1.4.2_04\bin\client\jvm.dll
[Thu Oct 21 14:04:53 2004] [notice] vm.open2() done
[Thu Oct 21 14:04:53 2004] [error] workerEnv.initChannel() init failed
for channel.jni:jni
[Thu Oct 21 14:04:53 2004] [notice] workerJni.Init() Skipping
initialization for the 480 480
[Thu Oct 21 14:04:53 2004] [error] workerEnv.initWorkers() init failed
for worker.jni:onStartup
[Thu Oct 21 14:04:53 2004] [notice] workerJni.Init() Skipping
initialization for the 480 480
[Thu Oct 21 14:04:53 2004] [error] workerEnv.initWorkers() init failed
for worker.jni:onShutdown
[Thu Oct 21 14:04:53 2004] [notice] workerEnv.init() ok C:/Program
Files/Apache Group/Apache2/conf/workers2.properties
[Thu Oct 21 14:04:53 2004] [notice] mod_jk2 child 480 initialized
[Thu Oct 21 14:04:53 2004] [notice] Child 480: Acquired the start mutex.
[Thu Oct 21 14:04:54 2004] [notice] Child 480: Starting 250 worker threads.


Config files:
workers2.properties location:$APACHE_HOME$/conf

# only at beginnin. In production uncomment it out
[shm]
file=C:/Program Files/Apache Group/Apache2/logs/shm.mem
size=1048576

[logger.apache2]
level=DEBUG
# Define the comunication channel
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=${TOMCAT_HOME}/server/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/tomcat.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start

#stdout=${serverRoot}/logs/stdout.log
#stderr=/logs/stderr.log
stdout=C:/Program Files/Apache Group/Apache2/logs/stdout.log
stderr=C:/Program Files/Apache Group/Apache2/logs/stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Map the Tomcat examples webapp to the Web server uri space
[uri:/*]
info=Map the whole webapp

jk2.properties location:$TOMCAT_HOME$/conf

# The default port is 8009 but you can use another one
channelSocket.port=8009

# Add the apr and channelJni to the list of handlers
handler.list=apr,request,container,channelJni
# The native libraries will be registered by JK2
apr.jniModeSo=inprocess

-- 
Cheers,
Sato.
+91 98851 47885

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



Only Tomcat multi instances!

2004-04-05 Thread eric sato
hi all,
  If anyone of u know this, pls do help. Thanks. i would like to have a 
main Tomcat, tomcatIntance1 and tomcatInstance2 running. Which end user 
only see Tomcat running. i would like this design without any Apache or 
IIS involved. I guess something to do with jk2.properties and server.xml
.Thanks in advance
sato

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



Only Tomcat for multi instances!

2004-04-04 Thread eric sato
hi all,
 If anyone of u know this, pls do help. Thanks. i would like to have a 
main Tomcat, tomcatIntance1 and tomcatInstance2 running. Which end user 
only see Tomcat running. i would like this design without any Apache or 
IIS involved. i guess i need to configure the jk2.properties and server.xml. Thanks in advance.
sato



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


Multiple instance in Single DBCP

2004-03-29 Thread eric sato
hi all,
Currently Tomcat is running in multiple instances. Each of the instance 
has its own Database Connection Pool(DBCP). How do i configure/make 
changes in order only has a single DBCP in multiple tomcat instances? 
It allows me more efficient to manage DB connection.
Pls advise if you know the way.
Thanks in advance.
sato.


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



Re: connexion tomcat/mysql: IP vs localhost

2004-03-29 Thread eric sato
try here http://jakarta.apache.org/site/mail2.html#Tomcat

- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, March 30, 2004 0:41 am
Subject: Re: connexion tomcat/mysql: IP vs localhost

 How do I unsubscribe from this mail group, as I keep getting mails 
 every 
 to minutes?
 
 


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



mod_jk2 and RFC1867 problem

2003-12-18 Thread Takenori Sato
Hi,
(B
(BI use mod_jk2 on apache2.0 on RedHat9.0 as a load balancer.
(BTomcat behind are on JBoss 3.2.2.
(B
(BI can upload files using an application compliant to RFC1867
(Bwhen accessing directly to Tomcat on 8080.
(BBut with mod_jk2 on apache2.0, that fails without an error.
(B
(BCould anyone give me an idea?
(B
(BThanks in advance.
(BTakenori,
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-11 Thread sato
If the tomcat is running behind a apache server you could use the SetEnvIf 
directive to block the loading of images directly from other sites. Take a 
look at this article: 
http://www.serverwatch.com/tutorials/article.php/10825_1132731_2

-- 
Fábio Sato - [EMAIL PROTECTED]



Em Ter 10 Jun 2003 17:32, Cox, Charlie escreveu:
 you could put a value in the user's session from your page and then use
 your filter to check for it when an image is requested. If it's not there,
 they were not at your site/page. Sessions can be set to timeout, so they
 would have to had to visit recently to get the image.

 Charlie

  -Original Message-
  From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, June 10, 2003 1:41 PM
  To: Tomcat Users List
  Subject: Re: Urgent : Can we restrict access to a directory in tomcat
 
  At 04:27 AM 6/10/2003, you wrote:
  Apologies if I'm missing the point, but why can't you
 
  store/retrieve your
 
  image from a blob field in your database ?
 
  You could, but the question is really, How do I stop people
  from directly
  linking to my images (ie: only allow them to see the images if a
  jsp/servlet produces the page)?  Among other possibilities,
  this could be
  because you have images or other resources (celebrity photos
  come to mind)
  that other sites want to serve off of yours.  If you've got a
  jsp/servlet
  app that is non-session based, how would you go about preventing this?
 
  A couple solutions have been offered -- all based on an
  authentication
  filter/servlet to decide whether the resource should be served.  The
  question is: how should that filter/servlet make that decision?
 
  justin
 
  - Original Message -
  From: Dean Fantham [EMAIL PROTECTED]
  To: Syed Nayyer Kamran [EMAIL PROTECTED]
  Cc: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, June 10, 2003 3:29 AM
  Subject: Re: Urgent : Can we restrict access to a directory in tomcat
  
There is no guaranteed way to stop someone directly
 
  access a gif image
 
via a browser url, because this is how an image is accessed by the
browser itself anyways.  The browser just makes a HTTP
 
  get request to
 
the web-server (in this case tomcat) requesting the URL
 
  of the image to
 
be included in the web page.
   
i.e. in a standard jsp/servlet response to a web request the image
request is embedded in a img
 
  src=.../somedir/some-img.gif.  This is
 
going to cause a browser request directory to the
 
  directory containing
 
the image, which can also be duplicated in the browser.
   
The only potential method that can catch most (but not
 
  all) of these
 
would be to create a separate image handling jsp/servlet, say
imageHandler.  When imageHanlder servlet recieves an
 
  image request it
 
can check the http-referrer header and ensure that the
 
  referrer is the
 
url of the page to which the images are supposed to load,
 
  i.e. is the
 
page containing the images in /servlet/somepage then the
 
  http-referrer
 
that imageHandler see should be able to checked that it is
/servlet/somepage.  Someone can circumvent this control
 
  by the Internet,
 
but just manually setting this header themselves (via a
 
  program or the
 
like) and then having access directly to the images
   
You would then have to update all image referrences on
 
  the somepage
 
servelt/jsp however to something like img
src=/servlet/imagehandler?gif=somerefernce.
   
On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote:
 hi there,

 I want to restrict the user to access the images
 
  directly through the
 
  web. They should be able to access these images through web
 
  pages developed
 
  as jsp/servlet but should not be able to access these images
 
  displayed on
 
  page by copying the image url to the address bar. Is tomcat
 
  directly support
 
  this functionality. or any other solution.
  
 Thanks in advance for any solution of the problem.


 Nayyer Kamran
 
  
  Justin Ruthenbeck
  Software Engineer, NextEngine Inc.
  justinr - AT - nextengine DOT com
  Confidential
  See http://www.nextengine.com/confidentiality.php
  
 
 
  -
  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]



JDK1.4 + Tomcat 4.0.3 + Ajp13: Connector Socket Exception

2002-03-04 Thread Fábio Sato

I upgrade my JDK and Tomcat to solve some instability problems that I 
was having using the following configuration:
Linux RH 7.2 + Sun JDK 1.3.1 + Tomcat 4.0.1 + Apache 1.3.22

Now I have the Sun JDK1.4 and Tomcat 4.0.3 integrated with the Apache 
Server via mod_jk (Ajp13). The problem is that the new Tomcat Server 
stalled after 2 days running our site and the only relevant information 
that I´ve found in the logs is this error:

---
2002-03-04 15:34:59 Ajp13Processor[8009][4] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at 
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192)
at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435)
at 
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)
---

Besides the SocketException errors, the pages are being served without 
any problem. But I wander if this is not related to my tomcat hangup 
problem, because I was not having this error with my previous 
configuration (I´m using the same httpd.conf , server.xml and 
workers.properties files).

---
Fábio Sato - [EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: init-param

2001-01-15 Thread Fabio Sato

Thanks Regis, but I had already added the new context when I reported
this problem.

It seems to be related to packages. When I use packages with my
servlets, they can't get the init parameters. If I don't use packages
everything works as expected...

Regis Muller wrote:
 
 You may need to add a context in TOMCAT_HOME/conf/server.xml
 
 like
 Context path=""
 docBase="webapps/webdev/WEB-INF" /
 
 Fabio Sato wrote:
 
  I'm facing a strange problem with servlets and init parameters under
  Tomcat 3.2.1:
 
  I created a servlet and put it in the following directory:
 
  $TOMCAT_HOME/webapps/webdev/WEB-INF/classes/coreservlets/
 
  Then, I created the file web.xml under the WEB-INF directory:
 
  ?xml version="1.0" encoding="ISO-8859-1"?
  !DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"
 
  web-app
servlet
  servlet-name
ShowMsg
  /servlet-name
  servlet-class
coreservlets.ShowMessage
  /servlet-class
 
  init-param
param-namemessage/param-name
param-valuexxx/param-value
  /init-param
 
  init-param
param-namerepeats/param-name
param-value5/param-value
  /init-param
 
/servlet
  /web-app
 
  With this configuration the servlet didn't read any of the init
  parameters and both values are set to null.
 
  But if I remove the package declaration of the source file, recompile
  it, put the servlet in the WEB-INF/classes directory, and remove the
  package prefix in the servlet-class section of the web.xml, everything
  works fine.
 
  Any hints?
  --
  Fbio Sato - [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 
Fbio Sato - [EMAIL PROTECTED]

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




Re: init-param

2001-01-15 Thread Fabio Sato

Hi Geoff,

Yes, I'm keeping the package hierarchy under WEB-INF/classes...


Geoff Lane wrote:
 
 Are you putting the class files under the package directory or just in
 WEB-INF/classes?
 E.g. from your example, the ShowMessage.class file would need to go into
 WEB-INF/classes/coreservlets/
 Basically I think you need to recreate the package heirarchy under the
 classes directory, which is why it works when you have no package
 declared. Look at the webapps/examples/WEB-INF/classes for an example of
 this.
 
 Fabio Sato wrote:
 
  Thanks Regis, but I had already added the new context when I reported
  this problem.
 
  It seems to be related to packages. When I use packages with my
  servlets, they can't get the init parameters. If I don't use packages
  everything works as expected...
 
  Regis Muller wrote:
  
   You may need to add a context in TOMCAT_HOME/conf/server.xml
  
   like
   Context path=""
   docBase="webapps/webdev/WEB-INF" /
  
   Fabio Sato wrote:
  
I'm facing a strange problem with servlets and init parameters under
Tomcat 3.2.1:
   
I created a servlet and put it in the following directory:
   
$TOMCAT_HOME/webapps/webdev/WEB-INF/classes/coreservlets/
   
Then, I created the file web.xml under the WEB-INF directory:
   
?xml version="1.0" encoding="ISO-8859-1"?
!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"
   
web-app
  servlet
servlet-name
  ShowMsg
/servlet-name
servlet-class
  coreservlets.ShowMessage
/servlet-class
   
init-param
  param-namemessage/param-name
  param-valuexxx/param-value
/init-param
   
init-param
  param-namerepeats/param-name
  param-value5/param-value
/init-param
   
  /servlet
/web-app
   
With this configuration the servlet didn't read any of the init
parameters and both values are set to null.
   
But if I remove the package declaration of the source file, recompile
it, put the servlet in the WEB-INF/classes directory, and remove the
package prefix in the servlet-class section of the web.xml, everything
works fine.
   
Any hints?
    --
Fbio Sato - [EMAIL PROTECTED]
   
  --
  Fbio Sato - [EMAIL PROTECTED]
 
 --
 ---
 Geoff Lane  [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 
Fbio Sato - [EMAIL PROTECTED]

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




JSP mailing list

2001-01-09 Thread Fabio Sato

Hi,

Does anyone know a good JSP mailing list? 
-- 
Fbio Sato - [EMAIL PROTECTED]

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




Form Authentication through Apache

2000-12-05 Thread Yasunari Sato
It seems to work well that user authenticate 
by form based authentication in stand alone tomcat service.
But when I integrate apache and tomcat, authentication doesn't work.
I ckecked that Servlets which does not require 
authentication works well. 

Is there a special configuration to enable 
form based authentication on apache-tomcat 
integrated environment?

My test environment:
WinNT, apache1.3, tomcat3.2b6

Thanks,

Yasunari Sato