- This topic has 3 replies, 2 voices, and was last updated 19 years, 3 months ago by
Riyad Kalla.
-
AuthorPosts
-
akommarajuMemberI get the following error when I try to debug the TraderX example application. I deployed it to WebLogic 8.1 and the deployment went fine. I get the same error when I try to start Weblogic from MyEclipse. However, when I start Weblogic from my start menu it starts fine.
java.lang.NoClassDefFoundError: java/util/logging/Formatter at weblogic.Server.main(Server.java:32)Exception in thread “main”
Eclipse 3.1
MyEclipse 4.0
Windows XP
Weblogic 8.1
Riyad KallaMemberYou need to be sure to configure WebLogic to launch with the JDK that it ships with it. This is normally under the “jdk” dir in the WebLogic install directory.
Anytime you see a core class like this missing, it usually means na invalid JDK has been specified that doesn’t have the class WL is looking for.
akommarajuMemberThanks. Using correct JDK fixed the problem. Now I get a different error.
<Jan 11, 2006 4:17:59 PM CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application _appsdir_myapp_dir due to error weblogic.management.ApplicationException: Error while loading descriptors: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”. – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.] – with nested exception:
[weblogic.management.DeploymentException: Error while loading descriptors: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”. – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.] – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.]].
org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.
at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
at weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:137)
at weblogic.j2ee.dd.xml.J2EEDeploymentDescriptorLoader_J2EE13.process(J2EEDeploymentDescriptorLoader_J2EE13.java:151)
at weblogic.j2ee.dd.xml.DDUtils.processXML(DDUtils.java:369)
at weblogic.j2ee.dd.xml.DDUtils.processXML(DDUtils.java:322)
at weblogic.j2ee.dd.xml.DDUtils.loadStdDescriptor(DDUtils.java:217)
at weblogic.j2ee.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:181)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:940)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823)
at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:2925)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
————— nested within: ——————
weblogic.management.DeploymentException: Error while loading descriptors: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”. – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.] – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.]
at weblogic.j2ee.dd.xml.DDUtils.loadStdDescriptor(DDUtils.java:234)
at weblogic.j2ee.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:181)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:940)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823)
at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:2925)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
————— nested within: ——————
weblogic.management.ApplicationException: Error while loading descriptors: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”. – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.] – with nested exception:
[weblogic.management.DeploymentException: Error while loading descriptors: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. weblogic.xml.process.XMLParsingException: Error parsing file ‘META-INF/application.xml’ at line: 5 column: 15. The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”. – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.] – with nested exception:
[org.xml.sax.SAXParseException: The content of element type “application” is incomplete, it must match “(icon?,display-name,description?,module+,security-role*)”.]]
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:972)
at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:823)
at weblogic.management.deploy.slave.SlaveDeployer$Application.prepare(SlaveDeployer.java:2925)
at weblogic.management.deploy.slave.SlaveDeployer.prepareAllApplications(SlaveDeployer.java:967)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:349)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
>
<Jan 11, 2006 4:18:00 PM CST> <Warning> <EJB> <BEA-010212> <The EJB ‘Trader(Application: _appsdir_TraderX_dir, EJBComponent: TraderXEJB)’ contains at least one method without an explicit transaction attribute setting. The default transaction attribute of Supports will be used for the following methods: remote[sell(java.lang.String,int), buy(java.lang.String,int)] >
<Jan 11, 2006 4:18:01 PM CST> <Error> <Deployer> <BEA-149027> <Unable to activate application, _appsdir_META-INF_dir, from source, D:\bea\user_projects\domains\mydomain\applications\META-INF. Reason: [J2EE:160028]No J2EE deployment descriptor found at “D:\bea\user_projects\domains\mydomain\applications\META-INF”.>
<Jan 11, 2006 4:18:01 PM CST> <Error> <Application Poller> <BEA-149410> <Runtime deployment error while deploying – weblogic.management.ManagementRuntimeException: weblogic.management.ApplicationException: [J2EE:160028]No J2EE deployment descriptor found at “D:\bea\user_projects\domains\mydomain\applications\META-INF”..
weblogic.management.ManagementRuntimeException: weblogic.management.ApplicationException: [J2EE:160028]No J2EE deployment descriptor found at “D:\bea\user_projects\domains\mydomain\applications\META-INF”.
at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1073)
at weblogic.management.deploy.ApplicationsDirPoller.doActivate(ApplicationsDirPoller.java:216)
at weblogic.management.deploy.GenericAppPoller.doit(GenericAppPoller.java:290)
at weblogic.management.deploy.ApplicationsDirPoller.<init>(ApplicationsDirPoller.java:88)
at weblogic.management.mbeans.custom.ApplicationManager.startAdminManager(ApplicationManager.java:630)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:494)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:484)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:985)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
at weblogic.management.configuration.ApplicationManagerMBean_Stub.start(ApplicationManagerMBean_Stub.java:677)
at weblogic.management.AdminServerAdmin.startApplicationManager(AdminServerAdmin.java:629)
at weblogic.management.Admin.finish(Admin.java:2217)
at weblogic.management.AdminServerAdmin.finish(AdminServerAdmin.java:458)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:971)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
Caused by: weblogic.management.ApplicationException: [J2EE:160028]No J2EE deployment descriptor found at “D:\bea\user_projects\domains\mydomain\applications\META-INF”.
at weblogic.j2ee.J2EEApplicationContainerFactory.handleError(J2EEApplicationContainerFactory.java:739)
at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEApplicationContainerFactory.java:475)
at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRuntime.java:848)
at weblogic.management.deploy.DeployerRuntime.access$000(DeployerRuntime.java:63)
at weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:1520)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(DeployerRuntime.java:1511)
at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:186)
at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:985)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1064)
… 25 more
>
<Jan 11, 2006 4:18:01 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server “myserver” for domain “mydomain” running in Development Mode>
<Jan 11, 2006 4:18:01 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
<Jan 11, 2006 4:18:01 PM CST> <Warning> <WebLogicServer> <BEA-000372> <HostName: 0.0.0.0, maps to multiple IP addresses:10.1.33.37,10.1.30.112>
<Jan 11, 2006 4:18:01 PM CST> <Notice> <WebLogicServer> <BEA-000355> <Thread “ListenThread.Default” listening on port 7001, ip address *.*>
Riyad KallaMemberI believe you deployed a J2EE 1.4 application to WL 8.1 which only supports J2EE 1.4. So all your descriptors and such are not compatible.
There is no direct support in MyEclipse for migrating from one spec to another, the fastest way is to create a new project, be *sure* to specify the correct spec level when you create it (default is 1.4) and then copy your project into it, being careful not to overwrite the project or descriptor files. You will need to merge those manually.
Additionally you can create a new dummy project, take out the headers from the descriptor files and put them in your file and revalidate them to make sure they are OK. You will also need to switch to the navigator view, edit your .mymetadata file and change the spec level back to 1.3 and save it. Then restart MyEclipse and rebuild your project to make sure.
-
AuthorPosts