Mysql connector and security manager

2004-07-11 Thread Juergen Weber
Hi, I try to run the mysql connector with Tomcat with security enabled (NT4, jakarta-tomcat-5.0.25, j2sdk1.4.2_05, mysql-connector-java-3.1.2-alpha-bin.jar) With the rule grant { permission java.net.SocketPermission localhost:3306, connect,resolve; }; it works. But this rule is not specific

JNDI Datasource receives AccessControlException with Security Manager

2004-04-03 Thread Juergen Weber
I got database connection up and running as described in tomcat-docs/jndi-datasource-examples-howto.html But it does not run with the Security Manager enabled. The mysql driver and commons-dbcp are in common/lib, so grant codeBase file:${catalina.home}/common/- { permission

Getting the Context path ?

2004-03-24 Thread Juergen Weber
Hello, For context = getContext(/a/b/c.html), the path being user-entered, how do I know, if the Context is the Root context containing /a/b/c.html or if the Context is /a containing /b/c.html? The difference is important because to get the real path of c.html in the former case I'd have to

Getting the Context path ?

2004-03-24 Thread Juergen Weber
Well, as usual it was very helpful explaining the problem ;-) I can check if getContext(/a/b/c.html).getRealPath(/).equals(getContext(/).getRealPath(/)) Thanks, Juergen __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.

Missing case sensivity of getContext()

2004-03-13 Thread Juergen Weber
If on a NT machine (Tomcat 5.0.19) http://localhost:8080/test/ returns a valid directory, then http://localhost:8080/Test/ returns 404. OK, sofar. But getServletContext().getContext(/Test/); returns not null. I think, this might be an

Where does Tomcat remember types of EL variables?

2004-03-11 Thread Juergen Weber
Where does Tomcat remember types of EL variables? If I use an EL variable image like ${index.selected} Tomcat 5 generates code like: image = (de.jwi.jgallery.Image) pageContext.findAttribute(image); When I renamed the class name of image, Tomcat would still generate code to access the old

Where does Tomcat remember types of EL variables?

2004-03-11 Thread Juergen Weber
I found the problem, the classname was used as String parameter in the constructor for a TagExtraInfo. Should always use Myclass.class.getClass().getName() instead of String class names. Sorry for bothering you, Juergen Where does Tomcat remember types of EL variables? If I use an EL

Escaping necessary in Tag attributes?

2004-03-09 Thread Juergen Weber
I tried to use a map based EL expression ${folder.variables[copyright]} as Tag attribute like jg:if exists=${folder.variables[copyright]} But there was a JasperException equal symbol expected When I included backslashes, it worked: jg:if exists=${folder.variables[\copyright\]} I think

Relative links do not work with controller servlet.

2004-02-21 Thread Juergen Weber
I want to run all requests through a controller servlet. The requests should be like /controller/dir/fileXXX.html This is done with a servlet-mapping servlet-nameController/servlet-name url-pattern/controller/*/url-pattern /servlet-mapping request.getPathInfo() is

Multiple Server-Users

2004-02-13 Thread Juergen Weber
How do you setup Tomcat for an ISP, that offers Tomcat services to it's user? o Have different Tomcat installations for each user. That would cost lots of memory. o Put Context configuration XML files for each user to $TOMCAT_HOME/conf/Catalina/localhost This should work, but there would only be

Programmatic login

2002-11-18 Thread Juergen Weber
Hi, thanks to all who answered to my question. The valve solution looks good, but as we develop with tomcat and run on weblogic we cannot use nonportable solutions. So, if marketing insists on their idea we have to dump container managed security. Probably we will use a struts based security.

Programmatic login

2002-11-15 Thread Juergen Weber
Hello, we have a portal. Now the marketing people want that on the portal page be a form with user and password field. After submitting the user should be logged in. First this looked like a very easy to do feature. We use container managed security to protect some pages. So submitting the

j_security_check mapping

2000-11-30 Thread Juergen Weber
hello, with 3.2 final I ran into the same problem as the message below. Is there a solution, so the 8080 is not necessary, now? Thanks, Juergen http://mikal.org/interests/java/tomcat_users/msg09581.html I am using Tomcat 3.2b6 with mod_jk. When accessing