For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 2 voices, and was last updated 19 years, 5 months ago by
Riyad Kalla.
-
AuthorPosts
-
VaneetMemberHi,
I am getting following error when i am deploying an Struts applciation on Weblogic Error
<Feb 23, 2007 10:54:23 AM GMT+05:30> <Warning> <HTTP> <BEA-101248> <[Application: 'C:\bea\weblogic81\samples\domains\workshop\applications', Module: 'Test3']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 2, column 221).> Feb 23, 2007 10:54:28 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Feb 23, 2007 10:54:28 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Feb 23, 2007 10:54:29 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='com.mycompany.tt.ApplicationResources', returnNull=true <Feb 23, 2007 10:54:30 AM GMT+05:30> <Notice> <Security> <BEA-090170> <Loading the private key stored under the alias DemoIdentity from the jks keystore file C:\bea\weblogic81\server\lib\DemoIdentity.jks.> <Feb 23, 2007 10:54:30 AM GMT+05:30> <Notice> <Security> <BEA-090171> <Loading the identity certificate stored under the alias DemoIdentity from the jks keystore file C:\bea\weblogic81\server\lib\DemoIdentity.jks.> <Feb 23, 2007 10:54:31 AM GMT+05:30> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\bea\weblogic81\server\lib\DemoTrust.jks.> <Feb 23, 2007 10:54:31 AM GMT+05:30> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\j2sdk1.4.2_09\jre\lib\security\cacerts.> <Feb 23, 2007 10:54:32 AM GMT+05:30> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "cgServer" for domain "workshop" running in Development Mode> <Feb 23, 2007 10:54:32 AM GMT+05:30> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> <Feb 23, 2007 10:54:32 AM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thread "SSLListenThread.Default" listening on port 7002, ip address *.*> <Feb 23, 2007 10:54:32 AM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*>Can anybody tell me whys is this error comming.
February 23, 2007 at 11:48 am #266579
Riyad KallaMemberThe reason is that when you created the project in MyEclipse, you used the default “J2EE 1.4 compliant project” and the version of WebLogic you are using only understands J2EE 1.3 compliant projects.
February 26, 2007 at 6:12 am #266640
VaneetMember@support-rkalla wrote:
The reason is that when you created the project in MyEclipse, you used the default “J2EE 1.4 compliant project” and the version of WebLogic you are using only understands J2EE 1.3 compliant projects.
I tried using the JDK of Weblogic but still the error is coming
> Feb 26, 2007 5:12:07 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Feb 26, 2007 5:12:07 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Feb 26, 2007 5:12:08 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='com.yourcompany.struts.ApplicationResources', returnNull=true <Feb 26, 2007 5:12:10 PM GMT+05:30> <Notice> <Security> <BEA-090170> <Loading the private key stored under the alias DemoIdentity from the jks keystore file C:\bea\weblogic81\server\lib\DemoIdentity.jks.> <Feb 26, 2007 5:12:10 PM GMT+05:30> <Notice> <Security> <BEA-090171> <Loading the identity certificate stored under the alias DemoIdentity from the jks keystore file C:\bea\weblogic81\server\lib\DemoIdentity.jks.> <Feb 26, 2007 5:12:10 PM GMT+05:30> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\bea\weblogic81\server\lib\DemoTrust.jks.> <Feb 26, 2007 5:12:10 PM GMT+05:30> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\j2sdk1.4.2_09\jre\lib\security\cacerts.> <Feb 26, 2007 5:12:11 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "cgServer" for domain "workshop" running in Development Mode> <Feb 26, 2007 5:12:11 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> <Feb 26, 2007 5:12:11 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thread "ListenThread.Default" listening on port 7001, ip address *.*> <Feb 26, 2007 5:12:11 PM GMT+05:30> <Notice> <WebLogicServer> <BEA-000355> <Thread "SSLListenThread.Default" listening on port 7002, ip address *.*> Feb 26, 2007 5:34:12 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 26, 2007 5:34:12 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Feb 26, 2007 5:34:12 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 26, 2007 5:34:12 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 26, 2007 5:34:12 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 26, 2007 5:34:13 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 26, 2007 5:34:13 PM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 26, 2007 5:34:15 PM org.apache.struts.action.RequestProcessor processActionCreate SEVERE: No action instance for path /login could be created java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.yourcompany.struts.action.LoginAction' at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:187) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231) at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:326) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: java.lang.UnsupportedClassVersionError: com/yourcompany/struts/action/LoginAction (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:480) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182) ... 23 moreFebruary 26, 2007 at 9:15 am #266645
Riyad KallaMemberVaneet,
Your problem is two fold:1) You are creating a J2EE 1.4 web project and deploying it to an app server that only supports J2EE 1.3 spec.
2) You are compiling your project with Java 5 compiler features turned on, and deploying it to an app server that runs under JDK 1.4To fix this you have to:
1) Create your web projects using the J2EE 1.3 spec, this is a choice on the first page of the create new web project wizard.
2) You have to edit your Compiler settings and make sure they are set to Java 1.4 compliance, and not Java 5.February 26, 2007 at 11:06 pm #266668
VaneetMemberHi Riyad ,
Thanx buddy , it solved my problem.
But it is still giving the following Error.Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true Feb 27, 2007 10:33:33 AM org.apache.struts.util.PropertyMessageResources <init> INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=trueFebruary 27, 2007 at 10:02 am #266693
Riyad KallaMemberOh, those aren’t errors, those are just log messages from Struts. I see them even in simple “Hello World” applications.
-
AuthorPosts
