Re: DataSourceRealm
Help Me !!! Please, unsubscrite me on this mailing list. email: [EMAIL PROTECTED] Osvâneo A. Ferreira Internet Group do Brasil - iG Tecnologia Fone: (55 11) 5501-6728 - Original Message - From: Uros Kotnik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 2:15 PM Subject: DataSourceRealm I'm using TC 4.1.8 I read instructions for implementing DataSourceRealm, basicaly the same as JDBCrealm but my tables for users and roles are connected with id (number). Users(id_user, login_name, pass) Roles(id_role, role_name) Users_Roles (id_user, id_role) Because of that I can't use TC realm implementation (or I can ?). So, is it possible just to extend DataSourceRealm class and overload methods which construct SQLs and do I have to implement some other methods or what ever is possible. Thanx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ Tomcat as Webserver ]
Hi, I´m using tomcat-4.1.2 and I would like know, it´s can used as WebServer. I configured a non-SSL legacy HTTP/1.1 connector on port 80. It´s possible ? [ Osvâneo ]
Re: [ Tomcat as Webserver ]
You´re correct. Now I make a some test integrating Apache with Tomcat. Thanks for help. Osvâneo A. Ferreira - Original Message - From: Jerry Birchler [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 2:31 PM Subject: RE: [ Tomcat as Webserver ] Yes, sort of. I think you are talking about integrating Apache with Tomcat through a listener and sharing html and images from Tomcat. For instance, I had integrated Apache with Tomcat using the Coyote listener. I wanted to share /images and such between Tomcat and Apache as I have both JSP and PHP web pages and wanted an easy way to share folders. Tomcat does not follow symlinks as web folders, but Apache can handle it. So, I put things like /images in my ROOT context and symlinked it for Apache. This forces me to refer to common objects using slash instead of things like '../', but I can live with that. So, putting things in ROOT, symlinking for Apache, and using some aliases in httpd.conf has made my development environment seemless. I have run into some quirks with directory listing tomcat managed folders through SSL. Directory listing in production is turned off, anyway. SSL on JSP web pages and tomcat managed HTML work just fine. -Original Message- From: Osvâneo A. Ferreira [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 9:45 AM To: Tomcat Users List Subject: [ Tomcat as Webserver ] Hi, I´m using tomcat-4.1.2 and I would like know, it´s can used as WebServer. I configured a non-SSL legacy HTTP/1.1 connector on port 80. It´s possible ? [ Osvâneo ] -- 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]
Protectind directory
Hi, I want protect a directory in my structure ( http://localhost/directory ) I use Apache+Tomcat and all test, it´s failed. Try .htaccess of apache, but nothing. Try permission org.apache.naming.JndiPermission jndi://localhost/examples/* , but nothing. How I do ? Osvâneo A. Ferreira
Re: Protectind directory
Hi David, Thank for help. I found a solution. Added in WEB-INF/web.xml a directive: security-constraint and tomcat-users.xml a user, password and role. Make a test and ok. See you. Osvâneo A. Ferreira - Original Message - From: David Brown [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 10:13 AM Subject: Re: Protectind directory Osvâneo A. Ferreira writes: Hi, I want protect a directory in my structure ( http://localhost/directory ) I use Apache+Tomcat and all test, it´s failed. Try .htaccess of apache, but nothing. Try permission org.apache.naming.JndiPermission jndi://localhost/examples/* , but nothing. How I do ? Osvâneo A. Ferreira Hello, u need to supply more info (how u build is important): OS: TOMCAT VERSION: PLATFORM: ENVIRONMENT: NETWORK: BUILD: ant (build.xml), scripts (.sh , .bat, manual, etc.) if u want tomcat directory protection don't fiddle around with apache (i assume u mean httpd.conf). the tomcat instructions r very clear if u downloaded: jakarta-tomcat-x.y.z-src. u have to build a directory w/ WEB-INF and its own web.xml file (preferably using a war/jar file) where u define the protected directory something like this: $TOMCAT_HOME | /webapps |protected_dir | /WEB-INF | /web.xml u must be able to generate a war file and put it in your webapps directory and then bounce ur tomcat server (i prefer to use: http://localhost/manager/install?path=protected_dir). get the src as described above and read thoroughly and carefully. hope this helps, david. -- 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]
[ Tomcat Problems ]
) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Please Help me Thanks, Osvâneo A. Ferreira [EMAIL PROTECTED]
Re: [ Tomcat Problems ]
Jeanfrancois, No, I´m not using Xerces. I´m use jakarta-tomcat-4.1.12 and apache-1.3.27. Osvâneo A. Ferreira [EMAIL PROTECTED] - Original Message - From: Jeanfrancois Arcand [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 13, 2002 12:46 PM Subject: Re: [ Tomcat Problems ] Are you using Xerces 2.2? Xerces 2.2 breaks TomcatYou need Xerces 2.1.0 in order to avoid that exception. -- Jeanfrancois Osvâneo A. Ferreira wrote: Hi, I have a problem with tomcat configuration. When Deployed my application this error logged (catalina.out): 2002-11-13 12:02:10 StandardHost[localhost]: Installing web application at context path /gnegocios from URL file:/iG/java/jakarta-tomcat-4.1.12/webapps/gnegocios 2002-11-13 12:02:10 WebappLoader[/gnegocios]: Deploying class repositories to work directory /iG/java/jakarta-tomcat-4.1.12/work/Standalone/localhost/gnegocios 2002-11-13 12:02:10 WebappLoader[/gnegocios]: Deploy class files /WEB-INF/classes to /iG/java/jakarta-tomcat-4.1.12/webapps/gnegocios/WEB-INF/classes 2002-11-13 12:02:10 ContextConfig[/gnegocios] Exception processing TLD at resource path /WEB-INF/web-app_2_2.dtd javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/web-app_2_2.dtd at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1010 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/web-app_2_2.dtd at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1002 ) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3493) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368