RE: SSL client authentication with IE 6.0

2003-06-06 Thread Lin, Zhongwu
Duma,

the list of certificates is empty!
This means that you don't have client certificate in your client machine. 

-Original Message-
From: Duma Rolando [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 9:31 AM
To: Tomcat Mailing List
Subject: SSL client authentication with IE 6.0


I'm running Tomcat 4.1.24 standalone with SSL client authentication
enabled.Internet Explorer 6.0 when I try to access the server pops up a
window that ask me which certificate will be used for client authentication,
but the list of certificates is empty!





I've tested my browser on apache with mod_ssl and client authentication, and
IE pops up the same window but in this case my personal certificate is
present.
This is the only tomcat connector configured on my PC.

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=15 maxProcessors=25
   enableLookups=true acceptCount=100 debug=0
scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true 
  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=true protocol=TLS
   keystoreFile=C:/.keystore
   keystorePass=xx/
/Connector
Thanks for your help.


-
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: file renaming using Multipart class.

2003-03-10 Thread Lin, Zhongwu
venkat,
  here is the one way to use it:

MultipartRequest multi =
  new MultipartRequest(request, dirName, 100*1024*1024,
  ISO-8859-1, new DefaultFileRenamePolicy());

  Enumeration files = multi.getFileNames();
  while (files.hasMoreElements()) {
String name = (String)files.nextElement();
File f = multi.getFile(name);
// process your file if needed 
}

The file name will work as follows:

 clientserver

 myfile.txt  myfile.txt   if no file myfile.txt exist
 myfile.txt  myfile1.txt   if file myfile.txt exist
 myfile.txt  myfile2.txt   if file myfile.txt and myfile1.txt exist

Hope this help.


John

-Original Message-
From: Venkat [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 12:40 AM
To: Tomcat
Subject: file renaming using Multipart class.



Hi all,

Sorry for posting a jsp related qury rather tomcat one.But i need it badly
and i have to finish it with in one hr.I tried jsp interest.Hope some one
helps me here.


I am tying to upload a file from jsp page using bean MultiPartRequest class
that come with oreilly examples.

I am using the constructor which takes three parameters 1.request 2. dir 3.
file size

Itz working and it is storing in the dir given by me.

But the file name is default file name which i selected from the browser.
Here the problem is if different users sends the file with same name it is
replacing the old file.

So i want to upload the file selected by the user with the name specifed by
me.

How to do this?
I checked the MultiPartClass constructors it has another constructor wich
take as FileRenamePolicy interface but i didn't understand this. and how to
create this interface using file as parameter?

Can some one help me out how to do this?

Thanks in advance
venkat


-
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: Error with Oracle Jdbc

2002-07-02 Thread Lin, Zhongwu

try

DriverManager.getConnection(jdbc:oracle:thin:@HOST:PORT:TOMCATDB,spifdogg
,spifdogg);

instead of 

DriverManager.getConnection(jdbc:oracle:localhost:@TOMCATDB,spifdogg,sp
ifdogg);

It should work.



-Original Message-
From: William Gustave [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 11:37 PM
To: TOMCAT USER
Subject: Error with Oracle Jdbc
Importance: High


I am getting the following Error from my app when I hit the index.jsp page.
Can somebody help me it would be greatly appreciated.

 jdbc java.sql.SQLException: Invalid Oracle URL specified

I am running the following
Tomcat 4  (It is on the same machine as the Database Server)
Oracle 8.1
Oracle8i 8.1.7.1JDBC Drivers (Which I have extracted into
\tomcat4\webapps\testoracle\WEB-INF\classes directory)

Below is the JSP code that is on the page.

%@ page import=oracle.jdbc.driver.* %
%@ page import=java.sql.* %

%
try{

Class.forName(oracle.jdbc.driver.OracleDriver);
Connection conn =
DriverManager.getConnection(jdbc:oracle:localhost:@TOMCATDB,spifdogg,
spifdogg);


Statement statemnt = conn.createStatement();

ResultSet users = statemnt.executeQuery(select * from user);

}catch(Exception e){
out.println(e);
}
%


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

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




RE: ERROR 500

2002-04-19 Thread Lin, Zhongwu

It seems like your DatabaseServlet.class is not in your
Web-inf/classese.

zlin


 -Original Message-
 From: Halil AKINCI [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, April 19, 2002 5:56 AM
 To:   Jakarta TomCat
 Subject:  ERROR 500
 
 Hi,
 
 I'm using a HTML form to run my servlet. I'm  using this HTML page to send
 a parameter to my servlet, and servlet will receive this parameter,
 connect a MS access database, execute a query and send results. When I
 want to run my application I received following error message. What is
 wrong?
 
 Any ideas or suggestions would be appreciated.
 --
 -
 
 Error: 500
 Location: /database/servlet/DatabaseServlet
 Internal Servlet Error:
 
 java.lang.NoClassDefFoundError: DatabaseServlet (wrong name:
 DatabaseServlet/DatabaseServlet)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java, Compiled
 Code)
   at
 org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(Unknow
 n Source)
   at
 org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown
 Source)
   at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown
 Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at
 org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown
 Source)
   at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
   at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown
 Source)
   at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source)
   at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
   at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
   at org.apache.tomcat.core.ContextManager.internalService(Unknown
 Source)
   at org.apache.tomcat.core.ContextManager.service(Unknown Source)
   at
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unkno
 wn Source)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
   at java.lang.Thread.run(Thread.java:472)
 
 

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




Trouble connecting Apache 1.3 Tomcat 4 w/ mod_webApp for window NT

2001-11-15 Thread Lin, Zhongwu

I can't make Apache 1.3  Tomcat 4 w/ mod_webApp to work.

This is what I do(follow install guide):

1) copy mod_webapp.so and libapr.dll to directory
apache install dir \modules   
2)edit httpd.conf like this

ServerName localhost  
LoadModule webapp_module modules/mod_webapp.so

WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

3) my  tomcat 4 has server.xml like this:

 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/

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

  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/

  !-- Because this Realm is here, an instance will be shared globally
--
  Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

4) start tomcat 4 and then apache, I can see apache home on port 80 and
tomcat home on port 8080 like this
http://localhost/
http://localhost:8080
http://localhost:8080/examples

but the following 
http://localhost/examples

give me error of page not found


any idea why


any help would be greatly appreciated


John








 -Original Message-
 From: David Smith [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, November 15, 2001 4:04 PM
 To:   Tomcat Users List
 Subject:  Re: Trouble connecting Apache 1.3  Tomcat 4 w/ mod_webApp
 
 I'm guessing you changed the port for the Connector statement in the 
 Tomcat-Apache service of server.xml to 9090?  If so, that's correct.  If
 not, 
 try using 8008 instead.  
 
 The second WebAppConnection line isn't needed unless it's connecting to a 
 different machine and/or port.  The way your config is below, there should
 
 only be one with both WebAppDeploy lines referencing it.  This might be
 the 
 source of your error.
 
 Good luck and hope this helps some.
 
 --David Smith
 
 On Thursday 15 November 2001 12:09 pm, you wrote:
  FreeBSD, Tomcat 4, Apache 1.3.19
 
 
  Here's my config;
 
  Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/
  WebAppConnection tomcat4  warp  localhost:9090
  WebAppDeploy myapp  tomcat4  /myapp
  WebAppConnection conn  warp  localhost:9090
  WebAppDeploy examples  conn  /examples
 
 
  Here's the result from the apache error log;
 
  [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet
  [Thu Nov 15 10:40:00 2001] [error] Cannot read packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive
  handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read
 packet
  (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot
 configure
  connection tomcat4
 
  Might this be an error with compiling?
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

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




RE: Getting a Verisign certificate

2001-09-19 Thread Lin, Zhongwu

I believe you can get one from verisign.

zlin

 -Original Message-
 From: Alex Colic [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, September 19, 2001 9:04 AM
 To:   Tomcat-User
 Subject:  Re: Getting a Verisign certificate
 
 Hi,
 
 we need an official certificate. Any idea where I can get one for Tomcat?
 
 
 Alex
 
 --
 --
 ---
 
 Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic
 [EMAIL PROTECTED] wrote:
  Hi, I am trying to get a verisign certificate for tomcat.
  The wizard is asking for a (CSR) Certificate Signing Request. Do you
 know
  where I can get one of those for tomcat?
 
 I'm guessing those generate by openssl are just as good, unless you
 really need an oficial cert. See http://www.openssl.org/ .
 
 --Ciprian



RE: Call EJB in OC4J from Tomcat

2001-09-10 Thread Lin, Zhongwu

Can you show us how you make call to ejb? otherwise on one can help you

zlin

 -Original Message-
 From: Ghislain Gadbois [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, September 10, 2001 3:25 PM
 To:   Tomcat-User list (E-mail)
 Subject:  Call EJB in OC4J from Tomcat
 
 Hi,
 
 I have a servlet deployed in Tomcat 3.2.1 on SunOS 5.6.  My servlet works
 fine.
 
 I have EJB components deployed in Oracle Containers for J2EE (OC4J) which
 are J2EE compliant containers.  I can call my EJB components from my
 servlet
 if I run my servlet from my IDE (Oracle JDeveloper 3.2.2), but, when I try
 to call my EJB components from the servlet runn in Tomcat, I have a
 ClassCastException (java.lang.ClassCastException: __Proxy5).
 
 Can anyone help me on this one?
 
 What is going on?
 
 Why can't I call my EJB components when my servlet runs in Tomcat?
 
 Thanks for your help



RE: Call EJB in OC4J from Tomcat

2001-09-10 Thread Lin, Zhongwu

Looks like you don't have stub classes of your ejbHome in your tomcat. Try
put those in your application's
\web-inf\lib (your ejb jar file)
or \web-inf\classes ( classese file)

it should work then.

regards


zlin

 -Original Message-
 From: Ghislain Gadbois [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, September 10, 2001 3:42 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Call EJB in OC4J from Tomcat
 
 Sure, here it is...
 
 BTW, I used the same kind of code to call EJBs in Oracle JVM and in
 Websphere and it always worked...
 
 try
 {
 Hashtable oEnv = new Hashtable(5); // Max needed + 1
 
 oEnv.put(Context.INITIAL_CONTEXT_FACTORY,
  
 com.evermind.server.ApplicationClientInitialContextFactory);
 oEnv.put(Context.PROVIDER_URL, ormi://saturne:23791/Demo);
 oEnv.put(Context.SECURITY_PRINCIPAL, admin);
 oEnv.put(Context.SECURITY_CREDENTIALS, admin);
 
 InitialContext oContext = new InitialContext(oEnv);
 
 U2007ML_UsersHome oHome;
 
 // This is where I get the ClassCastException...
 oHome = (U2007ML_UsersHome) oContext.lookup(U2007ML_UsersRemote);
 
 ...
 }
 catch(Exception ex)
 {
 ex.printStackTrace();
 }
 
 Thanks for your help!
 
 
 -Message d'origine-
 De : Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
 Envoyé : 10 septembre, 2001 16:27
 À : '[EMAIL PROTECTED]'
 Objet : RE: Call EJB in OC4J from Tomcat
 
 
 Can you show us how you make call to ejb? otherwise on one can help you
 
 zlin
 
  -Original Message-
  From:   Ghislain Gadbois [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, September 10, 2001 3:25 PM
  To: Tomcat-User list (E-mail)
  Subject:Call EJB in OC4J from Tomcat
 
  Hi,
 
  I have a servlet deployed in Tomcat 3.2.1 on SunOS 5.6.  My servlet
 works
  fine.
 
  I have EJB components deployed in Oracle Containers for J2EE (OC4J)
 which
  are J2EE compliant containers.  I can call my EJB components from my
  servlet
  if I run my servlet from my IDE (Oracle JDeveloper 3.2.2), but, when I
 try
  to call my EJB components from the servlet runn in Tomcat, I have a
  ClassCastException (java.lang.ClassCastException: __Proxy5).
 
  Can anyone help me on this one?
 
  What is going on?
 
  Why can't I call my EJB components when my servlet runs in Tomcat?
 
  Thanks for your help



RE: Call EJB in OC4J from Tomcat

2001-09-10 Thread Lin, Zhongwu

If I remember correctly Jdeveloper is really a Jbuilder repackage, then it
uses corba iiop.

You have to have stubs in client(tomcat) to make it to work. 

if you just put whole ejb jar file in your application's
web-inf\lib
or all of your ejb classese files under
web-inf\classese

I know by doing so you are copying extra classes to your tomcat dir (but
this would not hurt you besides a few megs of disk space )

I am pretty sure it will work 

regards

zlin

 -Original Message-
 From: Ghislain Gadbois [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, September 10, 2001 4:05 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Call EJB in OC4J from Tomcat
 
 Actually, it seems that OC4J doesn't need stub classes at all!!  It
 doesn't
 seem to generate any client classes when an EJB is deployed in the server.
 I ran a sample Java application and my servlet from within JDeveloper
 wihout
 needing any stub class at all.  But, when I try to run the exact same
 servlet in another servlet container (I have the same behavior in JRun
 BTW),
 I keep getting ClassCastExceptions...
 
 This puzzles me...
 
 Thanks for your help.
 
 Cheers
 
 Ghis
 
 
 -Message d'origine-
 De : Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
 Envoyé : 10 septembre, 2001 16:53
 À : '[EMAIL PROTECTED]'
 Objet : RE: Call EJB in OC4J from Tomcat
 
 
 Looks like you don't have stub classes of your ejbHome in your tomcat. Try
 put those in your application's
 \web-inf\lib (your ejb jar file)
 or \web-inf\classes ( classese file)
 
 it should work then.
 
 regards
 
 
 zlin
 
  -Original Message-
  From:   Ghislain Gadbois [SMTP:[EMAIL PROTECTED]]
  Sent:   Monday, September 10, 2001 3:42 PM
  To: [EMAIL PROTECTED]
  Subject:RE: Call EJB in OC4J from Tomcat
 
  Sure, here it is...
 
  BTW, I used the same kind of code to call EJBs in Oracle JVM and in
  Websphere and it always worked...
 
  try
  {
  Hashtable oEnv = new Hashtable(5); // Max needed + 1
 
  oEnv.put(Context.INITIAL_CONTEXT_FACTORY,
 
  com.evermind.server.ApplicationClientInitialContextFactory);
  oEnv.put(Context.PROVIDER_URL, ormi://saturne:23791/Demo);
  oEnv.put(Context.SECURITY_PRINCIPAL, admin);
  oEnv.put(Context.SECURITY_CREDENTIALS, admin);
 
  InitialContext oContext = new InitialContext(oEnv);
 
  U2007ML_UsersHome oHome;
 
  // This is where I get the ClassCastException...
  oHome = (U2007ML_UsersHome) oContext.lookup(U2007ML_UsersRemote);
 
  ...
  }
  catch(Exception ex)
  {
  ex.printStackTrace();
  }
 
  Thanks for your help!
 
 
  -Message d'origine-
  De : Lin, Zhongwu [mailto:[EMAIL PROTECTED]]
  Envoyé : 10 septembre, 2001 16:27
  À : '[EMAIL PROTECTED]'
  Objet : RE: Call EJB in OC4J from Tomcat
 
 
  Can you show us how you make call to ejb? otherwise on one can help you
 
  zlin
 
   -Original Message-
   From: Ghislain Gadbois [SMTP:[EMAIL PROTECTED]]
   Sent: Monday, September 10, 2001 3:25 PM
   To:   Tomcat-User list (E-mail)
   Subject:  Call EJB in OC4J from Tomcat
  
   Hi,
  
   I have a servlet deployed in Tomcat 3.2.1 on SunOS 5.6.  My servlet
  works
   fine.
  
   I have EJB components deployed in Oracle Containers for J2EE (OC4J)
  which
   are J2EE compliant containers.  I can call my EJB components from my
   servlet
   if I run my servlet from my IDE (Oracle JDeveloper 3.2.2), but, when I
  try
   to call my EJB components from the servlet runn in Tomcat, I have a
   ClassCastException (java.lang.ClassCastException: __Proxy5).
  
   Can anyone help me on this one?
  
   What is going on?
  
   Why can't I call my EJB components when my servlet runs in Tomcat?
  
   Thanks for your help



RE: tomcat as an NT service.

2001-08-30 Thread Lin, Zhongwu

I can't find this NT-Service-howto.html in Tomcat 3.x  or Tomcat 4.x?

regards

 -Original Message-
 From: Nirmal Rajarathnam [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 1:33 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: tomcat as an NT service.
 
 In your install directory look for NT-Service-howto.html in the doc
 subdirectory.
 
 -Original Message-
 From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 12:05 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat as an NT service.
 
 
 hi all !
how can i run my tomcat (3.2.2 in this case ) as an NT service ?
i mean , i want my tomcat to start by itself whenever i restart my
 machine.
 
 any help will be greatly appreciated.
 
 thanx in advance,
 
 
 sumit
 
 



RE: JDBC connection failing

2001-08-28 Thread Lin, Zhongwu

the simple way to make sure it is Connection problem is to
1) insert an output before and after jdbc call. 
2) try to see how many connections you make and compare number to the max
connection  setting in Oracle DB

Hope this helps

Zlin
 -Original Message-
 From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, August 28, 2001 10:55 AM
 To:   [EMAIL PROTECTED]
 Subject:  RE: JDBC connection failing
 
 Hi , are there any firewalls between server and the database ?  if yes
 then
 u can check the firewall settings .. 
 
 are u using connection pooling ? 
 
 regards ? 
 
 
 -Original Message-
 From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 28, 2001 6:40 PM
 To: [EMAIL PROTECTED]
 Subject: JDBC connection failing
 
 
 Folks,
 We have an xml page that runs on tomcat and apache server.  After the xml
 application that uses a jdbc connection to the databse.  After it runs for
 about 12 hours, the page does not reply, that is, we get a page that is
 trying to load but remains blank without any response for a very long
 period
 of time.  We have a T1 connection, but till no response.
 
 We think that it is caused by the JDBC connection after accessing it for
 many times, it is failing to release the open connections.  However, this
 is
 only our speculation.  Is there any way that we can check the JDBC
 connection?
 
 There is nothing in error logs of both apache or tomcat that is really
 helpful.
 
 Any help will be highly appreciated.
 
 Salutations,



soap 2.2

2001-08-20 Thread Lin, Zhongwu

Question:

Should soap.jar reside in 
 d:\soap\soap-2_2\webapps\soap\WEb_INF\lib
or 
 d:\soap\soap-2_2\lib

Here is the story: 

I have installed tomcat 4.0 (standalone) and jdk 1.4 and I am trying to get
my soap to work

I have done the following:

1) I download soap 2.2 ( soap-bin-2.2.zip ). and unzip it into d:\soap dir
then  I got 
d:\soap\soap-2_2\webapps\soap
d:\soap\soap-2_2\webapps\soap\WEb_INF
d:\soap\soap-2_2\lib\soap.jar
d:\soap\soap-2_2\lib\COMProvider.dll

2) I add one entry in server.xml
  Context path=/soap docBase=d:\soap\soap-2_2\webapps\soap debug=1
reloadable=true/Context
3)I add mail.xml, activation.jar, xerces.jar to my classpath
4) set JAVA_HOME and CATALINA_HOME variable
when I try 
  http://localhost:8080/soap/servlet/rpcrouter
 and  http://localhost:8080/soap/servlet/messagerouter


It does not work. so I create 
 d:\soap\soap-2_2\webapps\soap\WEb_INF\lib
and move soap.jar and COMProvider.dll under this dir. Then it works.   


Zhongwu




RE: Does the servlet security model work with the J2EE Blueprint MVC?

2001-08-15 Thread Lin, Zhongwu

I have a question about the last paragraph of you answer.

Regards

Zhongwu

 -Original Message-
 From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, August 15, 2001 11:40 AM
 To:   Tomcat User's Group; [EMAIL PROTECTED]
 Subject:  Re: Does the servlet security model work with the J2EE
 Blueprint MVC?
 
 
 
 On Wed, 15 Aug 2001, Jerome Jacobsen wrote:
 
  Hello,
  
  The Java Servlet Specification (Version 2.3, Draft 2) under SRV.12.2
 states:
  
  The security model applies to the static content part of the web
  application and to servlets within the application that are requested by
 the
  client. The security model does not apply when a servlet uses the
  RequestDispatcher to invoke a static resource or servlet using a
 forward()
  or an include().
  
 
 In other words, the security constraints are only matched on the initial
 request URI, not on paths passed to getRequestDispatcher().
 
  Does this mean that using the MVC architecture with a Web controller as
  described in the J2EE Blueprints precludes the use of this security
 model?
  
 
 Not at all.  You've got at least a couple of approaches to consider:
 
 * If your MVC architecture uses different URIs for different logical
   transactions (i.e. you are using either path mapping or extension
   mapping to map to the controller component) you can protect those
   URIs with appropriate security constraints.
 
 * Your controller component can (in addition to or instead of the
   restrictions based on security constraints) apply additional role-based
   checking -- perhaps defined in the configuration settings for the
   controller -- by calling request.isUserInRole() to check whether the
   user is authorized for one or more roles.
 
 * Roles can also be used in the view layer to change the presentation
   (for example, a manager might have more menu options to choose from
   than a regular user).
 
 In an MVC-architected web app, your primary concern is whether the user
 can perform the transaction that they requested.  If they can, you
 naturally want them to see the results of performing that transaction, so
 there is no need to protect the RequestDispatcher.forward() used by the
 controller to forward control to the ultimate view component.
 
 But what if you have users that try to navigate to your JSP pages directly
 (and perhaps bookmark them).  You can take advantage of a related
 specification requirement, and put those JSP pages inside the /WEB-INF
 directory.  This works because the container will refuse to serve anything
 under /WEB-INF directly to the user, but RequestDispatcher.forward() can
 still be used to display them.
 
[Lin, Zhongwu]  
can you explain in more detail on the last paragraph:
put those JSP pages inside the /WEB-INF
directory.  This works because the container will refuse to serve
anything
under /WEB-INF directly to the user, but RequestDispatcher.forward()
can
still be used to display them.
[Lin, Zhongwu]  How do I reference those JSP pages inmy app?
should I do like:
/WEB_INF/mypage.jsp   

  -Jerome
 
 Craig McClanahan
 



filter mapping

2001-08-14 Thread Lin, Zhongwu

In tomcat 4.0,  how do I map filter ( my filter ) to servlet
my simple servlet ?

 
filter-mapping
  filter-namemy filter/filter-name
!--  this does not work   --
   servlet-namemy simple servlet/servlet-name

!--  this does not work neither   --
   servlet-namemyservlet/servlet-name

/filter-mapping

servlet
  servlet-namemy simple servlet/servlet-name
  servlet-classcom.controller.myservlet/servlet-class
/servlet



regards

zlin