RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException
If you get an unsupported version error, you need to download the latest jar files (XML Jar files). Thanks and Regards, S.Ramkumar -Original Message- From: Bala S Subramanian [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 6:45 PM To: Struts Users Mailing List Subject: RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException Hi, I included the rt.jar which comes along with J2SE 1.4.2 but am getting unsupported version error java.lang.UnsupportedClassVersionError: org/xml/sax/SAXParseException (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:488) at com.sap.engine.services.deploy.server.ApplicationLoader.loadLocalClass(Appli cationLoader.java:143) at com.sap.engine.frame.core.load.ResourceLoader.loadClass(ResourceLoader.java: 120) at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.j ava:259) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310) at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.ge tServlet(WebComponents.java:287) at com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet .java:81) at com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet( ServletsAndJspImpl.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque stAnalizer.java:375) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(Reque stAnalizer.java:355) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer (RequestAnalizer.java:721) at com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(Requ estAnalizer.java:418) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnal izer.java:223) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:79) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:1 52) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMes sageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run (UnorderedChannel.java:60) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115) Please let me know where to get the correct version of SAX Parser. thanks Bala [EMAIL PROTECTED] 03/22/2004 06:20 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException SAX is part of the J2SE 1.4.2, see http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/package-summary.html I am not sure which sdk you have and may have to get relevant jar file. More info is available at http://java.sun.com/xml/ and http://www.saxproject.org/. HTH Anuj Bala S Subramanian [EMAIL PROTECTED] on 03/22/2004 01:31:48 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc:(bcc: Anuj Upadhyay/Jeppesen/TMC) Subject: RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException Hi, I dont have problem in accessing the url, but it says Class not founf exception. I would like to know from where I can get the SAX jar file so that I can place in Lib directory. thanks Bala Ashutosh Satyam [EMAIL PROTECTED] 03/22/2004 05:34 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:RE: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException If your application is deployed as a default ROOT application, then Your URL should be only http://localhost/login.do I could make out only this much. If this helps fine, else provide some more information. - Ashutosh Satyam -Original Message- From: Bala S Subramanian [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 5:25 PM To: Struts Users Mailing List Subject: java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException Hi , I tried to call the action classes http://localhost/context rootlogin.do, am getting the following exception java.lang.NoClassDefFoundError: org/xml/sax/SAXParseException at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403) at
RE: Odd behaviour with utf-8 on weblogic 8.1
Have you tried? %@ page language=java% % Response.setContentType(text/html;charset=UTF-8); in your jsp page? % Thanks and Regards, S.Ramkumar -Original Message- From: Colm Garvey [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:06 PM To: Struts Users Mailing List Subject: Odd behaviour with utf-8 on weblogic 8.1 I've just discovered a very odd bug/feature , but I'm not entirely sure what's causing it. I have a resource bundle for thai which has been encoded as utf-8. If I specify %@ page contentType=text/html; charset=UTF-8 language=java ... in my JSP pages I wind up with gobbledigook, but if I simply use: %@ page contentType=text/html language=java ignoring the encoding reference entirely, it works perfectly! Now I'm not one to look a gift horse in the mouth, but this is the kind of thing that comes back and bites you in the behind later, so does anyone have any idea why this is happening? Colm - 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: user login authentication and session timeout
Hi, You can consider the following ways: 1) You can associate an action class for the page that requires a username and password. In that action class you can prompt for username and password. Have a separate action class for the urls that doesn't require login. 2). Have a query string appended to every URL (http://mydomain/mywebapp/myaction.do?login=NA) for the action that does not require login. And http://mydomain/mywebapp/myaction.do?login=REQUIRED). Map the urls that requires username and password to an action class and you can do the validation in this action class. You can specify the session time out in web.xml file for your web app.Refer the code snippet below. session-config session-timeout30/session-timeout!-- 30 minutes -- /session-config HTH Ram Kumar. -Original Message- From: Charles Jordan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 12:05 AM To: [EMAIL PROTECTED] Subject: user login authentication and session timeout I'm looking for examples or to be pointed in the right direction on how to achieve the following. I want my users to be able to access a mojority of my pages without having to login, but if they select a specific page a small login pop-up window would display which would require a valid user name and password. I also want the session to time-out after a period of time. Any ides? Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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: i18n with Japanese characters and tags....
Hi, Try % response.setContentType(text/html;charset=JISAutoDetect); or response.setContentType(text/html;charset=UTF-8); % in your jsp pages. Ram Kumar -Original Message- From: carlo latasa [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 11:33 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: i18n with Japanese characters and tags Hello, I'm trying to show Japanese characters on my jsp pages however the character of the charset is coming back as amp; which is preventing the characters from being displayed correctly. They look like: #12461;#12459;#12473;#12495; Note, the bean:write tag renders the characters correctly when the filter attribute is set to false. I've got a struts application using both Tomcat and Jrun and I've set my controller element of the struts-config.xml as: controller contentType=text/html; charset=JISAutoDetect/ and at the top of a tiles.jsp that's at the head of every page I've got a: %@ page contentType=html/text; charset=JISAutoDetect % head META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=JISAutoDetect % . to set the encoding. My hunch is that this is something that Struts is doing to the in the RequestProcessor or Controller. Could/should I write a Filter to override this issue? Is this something I chould set in a .css called in the tiles.jsp? Any help is much appreciated. Carlo Latasa - _ Find a broadband plan that fits. Great local deals on high-speed Internet access. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/ - 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]