Re: Users and authentication - how?
If you find please share it with the rest of us. The only solution I could find is * either use a portal solution which has already implemented a security model like, Jetspeed 2. uportal etc * go with the default models as they are presented in JEE tutorial, basic , form etc. * Implement your own using phase listeners. Using a portal takes time to learn. The default models are very primitive, they do not support localization or roles. They have roles but basically there is 1-1 mapping between roles and groups which is not very practically in real applications. Phase Listeners seems the most promising approach. I had already done alot of work designing the db schema for security and the stored procedures but I couldn't decide to go for phase listeners as there is no clear guideline on how to use them or if it is the right approach for such a problem. I finally decided to go for the form which created a very ugly interface as several languages are not supported and as said the security model is very primitive. Please tells us how you decided to proceed if you continue with this endeavour. 18/9/2011 6:17 ??, ?/? Dola Woolfe ??: Hi, I'm missing something very basic. I will develop a web application with users and authentication. Surely, there exists a relatively generic approach to this that includes a backend database, new user form and authentication rules! But I can't find. Can someone direct me as to where to start my research? Thanks! Dola - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat java.lang.ClassNotFoundException: javax.management.j2ee.statistics.JTAStats
Hello everybody, I am having problem with tomcat + NetBeans. I am using NetBeans for a decade building Swing applications but this is my first time with web applications so please be nice ;) I posted this on NetBeans list but I think this list is most appropriate. I created a simple web project. (trying to build a JSF project). It is just the project as it is created by the wizard and then added a few pages for testing and accessing stored procedures from a PostgreSQL database. I had a lot of problem to make things to deploy. The best combination I could found is NetBeans 7 beta2 with Tomcat 7.0.8 but even in this combination I get the following error. this is under Windows 7 64bit. 2 Μαρ 2011 12:45:13 μμ org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor WebApplication13.xml from D:\Program Files\Apache Software Foundation\apache-tomcat-7.0.8\conf\Catalina\localhost 2 Μαρ 2011 12:45:13 μμ org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(C:\Users\xxx\Documents\NetBeansProjects\WebApplication13\build\web\WEB-INF\lib\javaee-web-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 2 Μαρ 2011 12:45:14 μμ org.apache.catalina.startup.ContextConfig checkHandlesTypes WARNING: Unable to load class [javax.management.j2ee.statistics.JTAStats] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. java.lang.ClassNotFoundException: javax.management.j2ee.statistics.JTAStats at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1676) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521) at org.apache.catalina.startup.ContextConfig.checkHandlesTypes(ContextConfig.java:1947) I have placed in red two lines that I thing is important.the problem seems to be that it cannot find the javax.management.j2ee.statistics.JTAStats the missing class as well as a few other that are missing are included in the Java EE Web 6 API library, but in there lies also the Servlet.class. So when the loader tries to load the jar, finds the Servlet.class and does not load the jar which causes later the deployment to fail because of the missing classes. If I don't include the jar, I don't get the message from the loader but the JTAStats class and many others are still missing. Nothing on the logs. How do you solve this problem? any tips? brg Nikolas