jk2 connector issue

2004-11-04 Thread Warren Sweetman
Hi,

this did not have any takers the first time so I am trying to see if I will get a 
response this time

I keep getting the following messages popping up in the win2k applications log with 
event id 2

- Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 
12
- Error: [jk_workerEnv.c (492)]: workerEnv.processCallbacks() Error reading reply
- Error: [jk_channel_apr_socket.c (488)]: channelApr.receive(): Error receiving 
message body -1 0


does anybody know the reason and how I can avoid these events occurring?

thank you

Warren



***
Disclaimer

This email (and any attachment(s)) is private and intended solely for the use of the 
individual or entity to whom they are addressed.  Its unauthorised use, disclosure, 
storage or copying is not permitted.  If you are not the intended recipient please 
destroy all copies and inform the sender by return e-mail.

Internet e-mail is not a secure medium, as messages can be intercepted and read by 
someone else.  Please bear this in mind when deciding whether to send information by 
e-mail.  Postal addresses for the Legal Services Commission are available from 
http://www.legalservices.gov.uk/about_us/offices.htm
 
The Legal Services Commission reserves the right to monitor, record and retain any 
incoming and outgoing emails for security reasons and for monitoring internal 
compliance with the Legal Services Commission policy on staff use.  Email monitoring 
and/or blocking software may be used and email content may be read.  You have a 
responsibility to ensure laws are not broken when writing or forwarding emails and 
their contents. No contracts can be entered into on our behalf by email.

Any views or opinions expressed are solely those of the author and do not necessarily 
represent those of the Legal Services Commission.

The Legal Services Commission checks all mails and attachments for known viruses; 
however, you are advised that you open any attachments at your own risk.
***


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



jk2 connector issue

2004-11-03 Thread Warren Sweetman
Hi,

I keep getting the following messages popping up in the win2k applications log with 
event id 2

- Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 
12
- Error: [jk_workerEnv.c (492)]: workerEnv.processCallbacks() Error reading reply
- Error: [jk_channel_apr_socket.c (488)]: channelApr.receive(): Error receiving 
message body -1 0


does anybody know the reason and how I can avoid these events occurring?

thank you

Warren



***
Disclaimer

This email (and any attachment(s)) is private and intended solely for the use of the 
individual or entity to whom they are addressed.  Its unauthorised use, disclosure, 
storage or copying is not permitted.  If you are not the intended recipient please 
destroy all copies and inform the sender by return e-mail.

Internet e-mail is not a secure medium, as messages can be intercepted and read by 
someone else.  Please bear this in mind when deciding whether to send information by 
e-mail.  Postal addresses for the Legal Services Commission are available from 
http://www.legalservices.gov.uk/about_us/offices.htm
 
The Legal Services Commission reserves the right to monitor, record and retain any 
incoming and outgoing emails for security reasons and for monitoring internal 
compliance with the Legal Services Commission policy on staff use.  Email monitoring 
and/or blocking software may be used and email content may be read.  You have a 
responsibility to ensure laws are not broken when writing or forwarding emails and 
their contents. No contracts can be entered into on our behalf by email.

Any views or opinions expressed are solely those of the author and do not necessarily 
represent those of the Legal Services Commission.

The Legal Services Commission checks all mails and attachments for known viruses; 
however, you are advised that you open any attachments at your own risk.
***


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



not serving jsps without query string

2003-04-03 Thread Warren Sweetman
runing tomcat 4.1.18

isapi_redirector2.dll

IIS 5.x

(IP address is only visible locally)


when at the server the following will serve the JSP

http://127.0.0.1/index.jsp 
http://localhost/index.jsp 

this url works from any location (internally)
http://10.20.2.190/index.jsp? 


but when requesting

http://10.20.2.190/index.jsp 


url, IIS tries to download the file.  No entries for this request appear in the jk log 
file

if requesting

http://10.20.2.190/ 

url, IIS serves the code (this is set in IIS console).  The default behaviour 
configured should be to load the index.jsp page.  The jk log shows that the filter is 
checking the '/' uri to see if there is a mapping

Any views on behaviour and methods to resolve so that all the url list will serve the 
appropriate jsp page?

kind regards,

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

## 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=apr,request,channelJni
#
# Override the default port for the socketChannel
 channelSocket.port=8019
# Default: 
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
 shm.file=${jkHome}/work/jk2.shm

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

# apr.jniModeSo=/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=inprocess
[logger]
level=DEBUG

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=${serverRoot}/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
logger=logger.file:0


# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009


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

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

[uri:/servlet/*]
worker=ajp13:localhost:8009
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: tomcat IIS configuration please help

2003-04-02 Thread Warren Sweetman
No, a request for a jsp file a file download message box appears.  It it possible you 
could forward me your thread so that I may see the replies.

thank you.

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 22:21:30 
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

isapi_redirector2.dll issue

2003-04-02 Thread Warren Sweetman
Trouble in the land of windows.  Cant seem to get isapi_redirector2.dll to load.

I have been doing some digging around and its seems that the jk_isapi_pluggin.c cannot 
read the registry information for some reason.  Has anybody come across anything 
similar to this?  

Any suggestions would be greatly appreciated

thanks

kind regards,

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


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

tomcat IIS configuration please help

2003-04-01 Thread Warren Sweetman
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 background thread
2003-04-01 16:58:04 Ajp13Processor[8009][0] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][1] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][2] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][3] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][4] Starting background thread




PLEASE HELP

kind regards,

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


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

RE: tomcat IIS configuration please help

2003-04-01 Thread Warren Sweetman
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 background thread
2003-04-01 16:58:04 Ajp13Processor[8009][0] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][1] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][2] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][3] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][4] Starting background thread




PLEASE HELP

kind regards,

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

Re: servlet benchmarking vs cgi

2002-11-08 Thread Warren Sweetman
why are you not using JSP then.  this is what its designed for
On Friday, Nov 8, 2002, at 18:28 Etc/GMT, Aryeh Katz wrote:




the question is, how are you constructing the HTML?  Are you opening a
template file locally, and then using string replace? Or are you using
XSL/XSLT with a stylesheet to do a stream parse/transform?

Neither.
Since I'm working with a simple login page, most of my text is strings,
appended to a stringbuffer to create the login page.
That login page is then saved as a global, and retrieved for all 
subsequent
requests.
The information that is unique in every user's request (one string)
is modified with a StringBuffer.replace in a tag that is recorded as 
part of the
global login page.
output is done using the following psuedo code
is page cached
StringBuffer = cached page
replace tag
println(stringbuffer)
println(end of html page) (/FORM/HTML)

What kind of system was the benchmark performed on. The page should
only take 7-10ms properly written.  If you're never going to get more
than 10 concurrent requests, you're probably not going to reach the
point where threads provide benefit. Especially if it's pages that do
not use databases or perform other processes which benefit from
threading.


ab was on a freebsd box, servlet was on a redhat 6.2. As far as 
concurrent
requests, I've got to be able to handle close to 100 requests, but as 
I said
earlier I don't think threading is the issue as even single requests 
show very
poor performance relative to a CGI.
Aryeh
---
Aryeh Katz
VASCO 			
www.vasco.com		


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: servlet benchmarking vs cgi

2002-11-08 Thread Warren Sweetman
then your design needs to be looked at.  Usually I try to maintain a 
strict servlet : activity(for want of a better word) as close as a 1:1 
relationship.  oo design  ie you would not have func for customer 
creation within and accoutn object.  So I would have a login servlet 
deal with login functionality.  In any case this does not stop you from 
having a login jsp that does the job that you have explained.  You also 
ensure that any maintenance only needs a java developer instead of a 
java developer with cgi knowledge etc
On Friday, Nov 8, 2002, at 18:44 Etc/GMT, Aryeh Katz wrote:

why are you not using JSP then.  this is what its designed for


The servlet doesn't just handle login. Login is just called most 
often, and is
most expensive.

---
Aryeh Katz
VASCO 			
www.vasco.com		


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Java Logger problem with Tomcat4 web apps on Unix platforms...

2002-10-25 Thread Warren Sweetman
do you mean that the the tomcat user has to have write priveledge for 
the directory being written to ??


On Thursday, Oct 24, 2002, at 21:44 Etc/GMT, Sexton, George wrote:

Sounds like a permissions problem to me.

-Original Message-
From: Vijay KN [mailto:KNVIJAY;novell.com]
Sent: Thursday, October 24, 2002 00:46
To: [EMAIL PROTECTED]
Subject: Java Logger problem with Tomcat4 web apps on Unix platforms...

Hi,

We are using JVM1.4 Logger APIs in our servlet application deployed in
Tomcat4.0 container to log messages into a file.

On Unix platforms, the log file doesn't get created, though the
application using Logger objects does not throw any exceptions.
However, the same code works on other platforms like WinXP.

Appreciate an early response.

thanks
vijay


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: tomcat security issue

2002-10-24 Thread Warren Sweetman
I wish I could see some log files.  Only file that seems to be active 
is catalina.out

any assistance in this matter would be appreciated

here is the entry for the service

  Service name=Tomcat-Apache13

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 address=127.0.0.1 minProcessors=5 
maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/


!-- Replace localhost with what your Apache ServerName is set 
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache - Tomcat4 defaultHost=defaultHost debug=0

!-- This next line brings in the file that includes the various 
host containers --

  Host name=defaultHost appbase=/var/www/html
Context path= docBase= /
  /Host

  Host name=domain 
appBase=/home/virtual/site1/fst/var/www/html

Aliasdomain/Alias
!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/virtual/site1/fst/var/log
prefix=alvolo_tomcat.
timestamp=true/

Realm className=org.apache.catalina.realm.MemoryRealm /

Context path=
 docBase=/home/virtual/site1/fst/var/www/html
 priviledged=true
 reloadable=true 
Resource name=jdbc/MySQL/AlVolo auth=Container 
type=javax.sql.DataSource/
ResourceParams name=jdbc/MySQL/AlVolo
parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
namedriverName/name
valuejdbc:mysql://localhost/alvolo/value
/parameter
/ResourceParams
/Context
  /Host



/Engine

  /Service


kind regards

Warren


On Thursday, Oct 24, 2002, at 10:19 Etc/GMT, Glenn Nielsen wrote:

SecurityManager permission problems are much easier to debug if you 
start tomcat
with the -Djava.security.debug=access,failure property defined, then
check your logs for the string denied.  Then review the stack trace
and the ProtectionDomain which failed.

Regards,

Glenn

[EMAIL PROTECTED] wrote:
yes the factoryLoaderServlet is defined
too complex and issue currently to restart without SecurityManager.   
May be able to do overnight.  Other dependent apps need to be up 
during  the day


--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



Re: TOMCAT + J2EE : HOW TO INTEGRATE?

2002-10-23 Thread Warren Sweetman
you will have to look at the jboss doc for this issue.  Yes I was 
playing around simulating having tomcat and JBoss on different 
machines.  I never got round to playing with the integrated product.  I 
would assume that they would share the same JNDI sever instance but I 
cannot be sure.  Once you have the proper context object the rest of 
the code should be the same.  You still have to use JNDI to get the ejb 
object ref.  Post the solution to me when you find.  Will save me when 
I finnaly get round to working with the integrated product.

Warren

Long live open source software hey?


On Wednesday, Oct 23, 2002, at 17:20 Etc/GMT, psalazar wrote:

My approach was using J2EE1.3.1+TOMCAT 4.x. But your suggestion is
replacing J2EE1.3.1 with JBOSS. In that context, your sample refers to 
a
context where exists machine with a ISOLATED TOMCAT and a ISOLATED 
JBOSS
(that may have or not a TOMCAT embedded).

I'm telling this because your sample change some properties in JNDI. If
it was a embedded TOMCAT in JBOSS that setting properties are not
necessary, right? This is a general sample that applies in a 
distributed
environment (different machines), correct?

thx,
Pedro Salazar

ps. your tip was very helpful in pointing JBOSS (I didn't know it was
free), and in the code sample. Thx AGAIN!

On Wed, 23 Oct 2002 [EMAIL PROTECTED] wrote:

by the way
usually servlets would access ejb resources
you should be able to use jndi to access the ejb container

try{
 Properties properties =  new Properties();
 //note that this client is expecting to access a JBoss 
app
server change string and port to appropriate value for ejb container
 properties.put( Context.INITIAL_CONTEXT_FACTORY,
org.jnp.interfaces.NamingContextFactory );
 properties.put( Context.PROVIDER_URL, localhost:1099 );
 Context context = new InitialContext( properties );
 //lookup on name as defined by the components deployment
descriptor
 Object objRef = context.lookup( ResourceName );
 EJBHomeInterface home = ( FinancialAidCalculatorHome )
PortableRemoteObject.narrow( objRef, FinancialAidCalculatorHome.class 
);
 EJBInterface calculator = home.create( ( String
)financialAidRequestDetails.get( applicant ) );
 }
 catch( RemoteException exception ){
 exception.printStackTrace();
 }
 catch( CreateException exception ){
 exception.printStackTrace();
 }
 catch( RemoveException exception ){
 exception.printStackTrace();
 }

On Wednesday, October 23, 2002, at 05:12 PM, [EMAIL PROTECTED] wrote:

use JBOSS with embedded tomcat
On Wednesday, October 23, 2002, at 05:06 PM, psalazar wrote:


Greetings,

I deploy a EJB in J2EE1.3.1. Now, I would like to call it in my
JSPs/Servlets inside tomcat 4.x the EJB. How should I integrate 
both,
TOMCAT and J2EE, to make the Context resources of J2EE available to
TOMCAT
environment?

thx,
Pedro Salazar

--
pedro salazar (pt-inovacao) [EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org







--
To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org