ClassNotFoundException - NoClassDefFoundError: AdfResourcebundleConfig
Before this time I used to get a ClassNotFoundException on AdfResourceBundleConfig which is different from AdfResourcebundleConfig, the class name I found in the resourcebundle directory.
I traced this, called up the particular java file in jdeveloper,made the necessary changes and compiled. I used cavaj to confirm that the .class file generated had the changes. I copied this .class file to the appropriate directory, jarred the directories and placed them appropriately.
On starting the server again I noticed:
weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1376)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
Truncated. see log file for complete stacktrace
java.lang.NoClassDefFoundError: oracle/adf/mbean/share/config/runtime/resourcebundle/AdfResourcebundleConfig
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at oracle.mds.internal.melement.MBeanModelFactory.createNode(MBeanModelFactory.java:220)
Truncated. see log file for complete stacktrace
I dont know where the server is reading this AdfResourcebundleConfig from as there is no such thing anymore in the adfsharembean.jar.
Please I need responses ASAP as we need to meet a deadline.
Hi,
Was there no other solution for you than to recompile the class and put it back in the jar?
Anyway, this class is located in Adf Common Runtime library, try including that in your project.
Pedja
Similar Messages
-
ClassNotFoundException Vs NoClassDefFoundError
Hi,
Does anybody know the difference between ClassNotFoundException and NoClassDefFoundError..?
Thanks,
Den.Hi,
ClassNotFoundException is thrown when Class.forName() method is used to load the class dynamically, and NoClassDefFoundError is thrown when we refer a class which is not included in the classpath. In the second case, the class file would have been there while compiling the Java code.
-Den -
Difference between ClassNotFoundException and NoClassDefFoundError?
What is the difference between ClassNotFoundException and NoClassDefFoundError? When does each of them get throwns? To me they look very similar.
proveindia wrote:
http://www.javafundu.com/2009/12/noclassdeffounderror.html
On behalf of the OP, Captain Morgan, his Hammond Organ, and everyone else from three years ago, thanks for that. -
When I create an EJB Transport Business Service, after selecting the jar that has the EJB 2.1 artefacts (Remote, Home, etc) the oepe plugin fails and can't continue.
As I understand it seems that there is a problem with the classpath of ant build.xml that oepe creates inside folder /tmp/alsbejbtransport/ to compile the bs and generate the wsdl. I checked if tools.jar is in the classpath (in eclipse) and is included, so I can't figure out wich is the problem.
I found this in Oracle, but not helps solve the problem:
BEA-398120
Error: The WSDL for the typed transport endpoint could not be accessed.
Description
There was a problem retrieving the WSDL from the typed transport service endpoint at the time of service registration
Action
Contact technical support
This is the the full stacktrace that shows eclipse.
Generate : Error during generation of the WSDL:
BUILD FAILED
java.lang.NoClassDefFoundError: com/sun/javadoc/Type
at com.bea.util.jam.provider.JamServiceFactoryImpl.createSourceBuilder(JamServiceFactoryImpl.java:205)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:158)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
at com.bea.util.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
at weblogic.wsee.util.JamUtil.parseSource(JamUtil.java:152)
at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader.java:186)
at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75)
at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java:569)
at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.ClassNotFoundException: com.sun.javadoc.Type
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 27 more
Total time: 0 seconds
Eclipse Installation details:
*** System properties:
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=M20110909-1335
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
{home}/Development/oepe-indigo/eclipse
-name
Eclipse
--launcher.library
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
-startup
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.overrideVmargs
-exitdata
1e418010
-vm
/usr/bin/java
eclipse.home.location=file:{home}/Development/oepe-indigo/
eclipse.launcher={home}/Development/oepe-indigo/eclipse
eclipse.launcher.name=Eclipse
[email protected]/../p2/
eclipse.p2.profile=PlatformProfile
eclipse.product=org.eclipse.platform.ide
eclipse.startTime=1374623921455
eclipse.vm=/usr/bin/java
eclipse.vmargs=-Xms256m
-Xmx768m
-XX:MaxPermSize=512m
-Dsun.lang.ClassLoader.allowArraySyntax=true
-Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3
-Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
-Dosb.home={home}/Oracle/Middleware/Oracle_OSB1
-Dosgi.bundlefile.limit=750
-Dosgi.nl=en_US
-Dmiddleware.home={home}/Oracle/Middleware
-jar
{home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
equinox.use.ds=true
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
guice.disable.misplaced.annotation.check=true
harvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
http.nonProxyHosts=localhost
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
java.class.version=50.0
java.endorsed.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/endorsed
java.ext.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/ext:/usr/java/packages/lib/ext
java.home=/usr/lib/jvm/jdk1.6.0_45/jre
java.io.tmpdir=/tmp
java.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0_45/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.protocol.handler.pkgs=null|com.bea.wli.sb.resources.url|com.bea.wli.sb.resources.jca.upgrade.url|weblogic.utils|weblogic.utils|weblogic.utils|weblogic.net|weblogic.net
java.runtime.name=Java(TM) SE Runtime Environment
java.runtime.version=1.6.0_45-b06
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.6
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.6.0_45
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=20.45-b01
javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
jna.platform.library.path=/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
line.separator=
middleware.home={home}/Oracle/Middleware
oracle.eclipse.tools.weblogic.ui.isWebLogicServer=true
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
org.eclipse.equinox.launcher.splash.location={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.m2e.log.dir={home}/workspace/pragma/.metadata/.plugins/org.eclipse.m2e.logback.configuration
org.eclipse.update.reconcile=false
org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
org.osgi.framework.language=en
org.osgi.framework.os.name=Linux
org.osgi.framework.os.version=3.8.0
org.osgi.framework.processor=x86-64
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6"
org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
org.osgi.framework.uuid=901615cd-f3f3-0012-11b6-a3bca4d97ac1
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.6.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=amd64
os.name=Linux
os.version=3.8.0-26-generic
osb.home={home}/Oracle/Middleware/Oracle_OSB1
osgi.arch=x86_64
osgi.bundlefile.limit=750
osgi.bundles=reference:file:javax.transaction_1.1.1.v201105210645.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.bundlestore={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/bundles
osgi.configuration.area=file:{home}/Development/oepe-indigo/configuration/
osgi.framework=file:{home}/Development/oepe-indigo/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
osgi.framework.extensions=reference:file:javax.transaction_1.1.1.v201105210645.jar
osgi.framework.shape=jar
osgi.framework.version=3.7.1.R37x_v20110808-1106
osgi.frameworkClassPath=., file:{home}/Development/oepe-indigo/plugins/javax.transaction_1.1.1.v201105210645.jar
osgi.install.area=file:{home}/Development/oepe-indigo/
osgi.instance.area=file:{home}/workspace/pragma/
osgi.instance.area.default=file:{home}/workspace/
osgi.logfile={home}/workspace/pragma/.metadata/.log
osgi.manifest.cache={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/manifests
osgi.nl=en_US
osgi.nl.user=en_US
osgi.os=linux
osgi.splashLocation={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath={home}/Development/oepe-indigo/plugins
osgi.tracefile={home}/workspace/pragma/.metadata/trace.log
osgi.ws=gtk
path.separator=:
securerandom.source=file:/dev/./urandom
socksNonProxyHost=localhost
sun.arch.data.model=64
sun.boot.class.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/resources.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/rt.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jce.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/jdk1.6.0_45/jre/classes
sun.boot.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=gnome
sun.io.unicode.encoding=UnicodeLittle
sun.java.command={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher {home}/Development/oepe-indigo/eclipse -name Eclipse --launcher.library {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so -startup {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.overrideVmargs -exitdata 1e418010 -vm /usr/bin/java -vmargs -Xms256m -Xmx768m -XX:MaxPermSize=512m -Dsun.lang.ClassLoader.allowArraySyntax=true -Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3 -Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester -Dosb.home={home}/Oracle/Middleware/Oracle_OSB1 -Dosgi.bundlefile.limit=750 -Dosgi.nl=en_US -Dmiddleware.home={home}/Oracle/Middleware -jar {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.lang.ClassLoader.allowArraySyntax=true
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
svnkit.http.methods=Basic
svnkit.library.gnome-keyring.enabled=false
user.country=AR
user.dir={home}/Development/oepe-indigo
user.home={home}
user.language=es
user.name={username}
user.timezone=America/Argentina/Buenos_Aires
weblogic.home={home}/Oracle/Middleware/wlserver_10.3
Thanks!!run this one in command prompt and then convert the applet using converter tool
JC_HOME = C:\java_card_kit-2_2_2\bin\
set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
6:0x07:0x08 1.0
or
go to following directory and run the converter tool in command prompt
step 1: cd C:\java_card_kit-2_2_2\bin\
then run this command under the above directory
step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
For more doubts mail me....
*[removed by moderator]*
Thanks and Regards
NareshPalle
Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever. -
Java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error
Hi to everyone.
i'm searching for help.
I'm working with a web project under WebShere and for working and compatibility reason I have to migrate from version 7.0 of WAS to older 6.1 version.
My project under version 7 run perfectly but now I not even can start correctly the WAS.
I receive the error about topic title: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error
The project was born to work with JSF 1.2 and RichFaces 3.3.2 but I know they are not supported under WAS 6.1 and so I've:
- first tried to imported in project older version of jsf and richfaces (jsf 1.1.02, rich 3.1.6);
- then tried to installed them as shared libraries;
suddenly i've tried to reinstall entire WAS... same result.
can someone help me?
PS: the content of console after start attempt is:
java.lang.NoClassDefFoundError: javax.el.CompositeELResolver
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:68)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:163)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.<init>(AbstractJSPExtensionProcessor.java:183)
at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionProcessor.<init>(WASJSPExtensionProcessor.java:65)
at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionFactory.createProcessor(WASJSPExtensionFactory.java:188)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionFactory.createExtensionProcessor(AbstractJSPExtensionFactory.java:75)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1186)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:340)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:54)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:429)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
... 26 moreLooks like you need an implementation of the EL language.
-
How can I resolve java.lang.NoClassDefFoundError?
I am new to Java and have installed it on my Linux Ubuntu 9.04 workstation in order to learn Java. Basic Java programs work, but I am having trouble connecting to a MySQL database. I installed these packages using Synaptic Package Manager, which I thought should cover everything I need for database connectivity: 1.gsfonts-x11; 2.java-common; 3.odbcinst1debian1; 4.sun-java6-bin; 5.sun-java6-jdk; 6.sun-java6-jre; 7.unixodbc.
After these packages were installed, I was not sure if I needed to do this, but I downloaded the MySQL connector from http://www.mysql.com/products/connector/ and installed in a directory called /home/mark/mysql/.
I edited /etc/environment" and added a CLASSPATH to where I installed the connector:
{code}CLASSPATH="/home/mark/mysql/mysql-connector-java-5.1.7/mysql-connector-java-5.1.7-bin.jar"
{code}
I created a very simple Java program based on one I found on the internet. I named the program Jdbctest to test the connection,
{code}import java.sql.*;
public class Jdbctest {
public static void main(String[] args){
System.out.println("running Jdbctest.java");
try {
Statement stmt;
//Register the JDBC driver for MySQL.
Class.forName("com.mysql.jdbc.Driver");
//Define URL of database server for database named mysql
// on the localhost with the default port number 3306.
String url = "jdbc:mysql://localhost:3306/mysql";
//Get a connection to the database for a
// user named root with password carrot.
// This user is the default administrator
// having full privileges to do anything.
Connection con = DriverManager.getConnection(url,"root", "carrot");
//Display URL and connection information
System.out.println("URL: " + url);
System.out.println("Connection: " + con);
//Get a Statement object
stmt = con.createStatement();
//Select from a table
stmt.executeQuery("SELECT host, user FROM mysql.user ");
con.close();
}catch( Exception e ) {
e.printStackTrace();
}//end catch
}//end main
}//end class Jdbctest{code}
but I get this error:
{code}Exception in thread "main" java.lang.NoClassDefFoundError: Jdbctest
Caused by: java.lang.ClassNotFoundException: Jdbctest
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Jdbctest. Program will exit.{code}
I don't really understand what this error message is telling me. I've Googled for an explanation, and it seems to indicate that my CLASSPATH is wrong, but I'm not sure what it should be and how to fix it. Any assistance would be greatly appreciated.Your class JdcbTest isn't in that JAR, is it? So you need the CLASSPATH to also specify where that is. Typical CLASSPATHs start with a dot and then some jars.
-
Error 500--Internal Server Error: java.lang.NoClassDefFoundError:
Dears
I deployed a and ADF application in Weblogic server configured instance. Compilation and deployment was done perfectly. When I tried to Run the application in my local weblogic instance it throw the following exception
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: com/sun/facelets/FaceletViewHandler
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl._initIfNeeded(ViewHandlerImpl.java:346)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:88)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:763)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:374)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at com.kacst.common.filter.ErrorHandlerFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.ClassNotFoundException: com.sun.facelets.FaceletViewHandler
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:43)
... 58 more
Any body has faced a similar issue. Please let me know your views
Best regards
Mohamed CharguiThe JSF version packaged starting in 11.1.2.0.0 has been upgraded to 2.0.
Jdeveloper 11.1.1.6 support is JSF 1.2.
Upgrade to JDeveloper 11.1.2.0.0.
With an earlier version of WLS (10.3.4) add the jsf library configuration for the JSF 2.0 library to weblogic.xml with exact-match set to true.
<library-ref>
<library-name>jsf</library-name>
<specification-version>2.0</specification-version>
<implementation-version>1.0.0.0_2-0-2</implementation-version>
*<exact-match>true</exact-match>*
</library-ref>
Edited by: dvohra16 on Feb 28, 2013 6:43 AM -
ClassNotFoundException while invoking jax-ws client from OIM 10g
Hi,
As part of integrating FoxT with OIM, I've generated stub classes from FoxT wsdl using wsimport of jax-ws RI. While trying to invoke any webservice method from the process task I am getting below error -
java.lang.reflect.InvocationTargetException
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:597)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.FOXTCREATEUSER(adpFOXTCREATEUSER.java:161)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.implementation(adpFOXTCREATEUSER.java:106)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.addProcessTaskInstance(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.addProcessTaskInstance(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.addProcessTaskInstance(tcProvisioningOperations_b03yxm_EOImpl.java:1518)
at Thor.API.Operations.tcProvisioningOperationsClient.addProcessTaskInstance(Unknown Source)
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:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy61.addProcessTaskInstance(Unknown Source)
at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.addTask(Unknown Source)
at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.dispatchConfirmation(Unknown Source)
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:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
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:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NoClassDefFoundError: Lcom/foxt/mds/ws/generated/AddUserxRolePars;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at java.lang.Class.getDeclaredFields(Class.java:1743)
at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredFields(ReflectionNavigator.java:249)
at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredFields(ReflectionNavigator.java:58)
at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:362)
at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:296)
at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:176)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:243)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:98)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:79)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:93)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:79)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:99)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:357)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:327)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:432)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:153)
at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:148)
at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:264)
at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:660)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:407)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:648)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:389)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:306)
at javax.xml.ws.Service.getPort(Service.java:92)
at com.foxt.mds.ws.generated.MDSImplService.getMDSImplPort(MDSImplService.java:68)
at com.centurylink.identity.adapter.processtask.FoxTUserOperations.CreateUser(FoxTUserOperations.java:351)
... 60 more
Caused by: java.lang.ClassNotFoundException: com.foxt.mds.ws.generated.AddUserxRolePars
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
... 98 more
com.thortech.xl.dataobj.util.tcAdapterTaskException: Lcom/foxt/mds/ws/generated/AddUserxRolePars;
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.FOXTCREATEUSER(adpFOXTCREATEUSER.java:167)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.implementation(adpFOXTCREATEUSER.java:106)
at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.addProcessTaskInstance(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.addProcessTaskInstance(Unknown Source)
at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.addProcessTaskInstance(tcProvisioningOperations_b03yxm_EOImpl.java:1518)
at Thor.API.Operations.tcProvisioningOperationsClient.addProcessTaskInstance(Unknown Source)
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:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
at $Proxy61.addProcessTaskInstance(Unknown Source)
at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.addTask(Unknown Source)
at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.dispatchConfirmation(Unknown Source)
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:597)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
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:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
The class file its complaining about AddUserxRolePars exists in FoxTWS.jar (generated from wsimport) in ThirdParty, ext and JavaTasks directory on the server and still it complains for the same.
I tried running the same class from the command prompt on the same server and it's working fine. Thinking this could be classpath issue, I tried updating the classpath (System.setProperty("java.class.path","<jar file path>+<existing classpath>")) from with in the adapter class file and it still does not help.
Any thoughts on how to resolve this ??
Thanks in Advance.You can use below policy for 2-way SSL
Wssp1.2-Https-ClientCertReq.xml
Two way SSL. The recipient checks for the initiator's public certificate. Note that the client certificate can be used for authentication.
http://docs.oracle.com/cd/E14571_01/web.1111/e13713/message.htm#i243732
Please follow below link to invoke standalone client using SSLSocketFactory for 2-way SSL
http://docs.oracle.com/cd/E14571_01/web.1111/e13713/transport.htm#CIHICEHH
HTH
Regards,
Sunil -
Hi there Masters
I am new in Java and I would need your help please..
I am calling a function in Java passing 1 parameter and returning an XML back but at the point of execution I get an error below... At the end I have attached my java code...PLEASE HELP
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
at oracle.xdb.XMLTypeFactory.create(XMLTypeFactory.java:78)
at oracle.sql.OPAQUE.toClass(OPAQUE.java:328)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:278)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:259)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:190)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:117)
at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1578)
at oracle.jdbc.driver.OracleCallableStatementWrapper.getObject(OracleCallableStatementWrapper.java:815)
at hospitaltool.RunAsnIn.runAsnIn(RunAsnIn.java:41)
at hospitaltool.HospitalTool.main(HospitalTool.java:38)
Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.XMLParseException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 10 more
=====================JAVA CODE====================================
package hospitaltool;
import java.sql.*;
import oracle.jdbc.*;
import oracle.xdb.XMLType;
public class RunAsnIn {
public void runAsnIn(Connection con, Boolean fam) throws SQLException {
System.out.println("RunASNIn Section");
String messStatus;
int numRecs = 0; //to hold the number of Records processed
int totRecs = 0; //to hold the number of total records processed
ResultSet rs = null;
Statement stmt = null;
stmt = con.createStatement();
//Delete all already caused messages
try {
rs = stmt.executeQuery("DELETE FROM asnin WHERE message_num IN(SELECT message_num FROM asnin MINUS SELECT message_num FROM hospital WHERE family = 'ASNIn')");
//Select all the uncaused messages
rs = stmt.executeQuery("SELECT message_num FROM hospital WHERE family = 'ASNIn' and rownum <= 1 MINUS SELECT message_num FROM asnin");
//Go thru the uncaused messages
} catch (Exception e) {
while (rs.next()) {
String messageNum = rs.getString(1);
// System.out.println("tableName=" + messageNum);
System.out.println(messageNum);
//Get the XMLDoc
XMLType xml = null;
//Get the XML Doc
CallableStatement cs1 = null;
//CallableStatement proc = con.prepareCall("? {call rmsauto.hospitaltool.getmessagedoc(?)}");
try {
cs1 = con.prepareCall("{? = call rmsauto.hospitaltool.getmessagedoc(?)}");
cs1.registerOutParameter(1, OracleTypes.OPAQUE, "SYS.XMLTYPE");
cs1.setString(2, messageNum);
cs1.execute();
} catch (Exception e) {
xml = (XMLType) cs1.getObject(1);
System.out.println(xml.getStringVal());
}I did google this and found that I needed a specific jar file called xmlparserv2.jar and I did download it and loaded it on as part of my Libraries the I got a new error... I am using NetBeans
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/binxml/BinXMLMetadataProvider
at oracle.xdb.XMLTypeFactory.create(XMLTypeFactory.java:78)
at oracle.sql.OPAQUE.toClass(OPAQUE.java:328)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:278)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:259)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:190)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:117)
at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1578)
at oracle.jdbc.driver.OracleCallableStatementWrapper.getObject(OracleCallableStatementWrapper.java:815)
at hospitaltool.RunAsnIn.runAsnIn(RunAsnIn.java:41)
at hospitaltool.HospitalTool.main(HospitalTool.java:38)
Caused by: java.lang.ClassNotFoundException: oracle.xml.binxml.BinXMLMetadataProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 10 more
Java Result: 1 -
Hi,
The software's I used are:
1. Oracle Database (Oracle Database 11g Release 2 (11.2.0.1.0))
2. Repository Creation Utility (ofm_rcu_win32_11.1.1.2.1_disk1_1of1)
3. WebLogic (wls1033_oepe111150_win32)
4. WebCenter (ofm_wc_generic_11.1.1.2.0_disk1_1of1)
5. Content Management (ofm_ucm_generic_10.1.3.5.1_disk1_1of1)
When I try to run the Administration Server and the three Managed Servers (WLS_Portlet, WLS_Services and WLS_Spaces in Weblogic Server), it is throwing exception in WLS_Spaces and WLS_Portlet servers and completing to Running Mode.
Attaching the Log Details below for one of the server.
C:\Oracle\Middleware\user_projects\domains\base_domain\bin>startManagedWebLogic
.cmd WLS_Portlet http://dpdb:7001
JAVA Memory arguments: -Xms512m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSiz
e=128m -XX:MaxPermSize=256m
WLS Start Mode=Development
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classp
ath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_oepe1033\profiles\default\sys_m
anifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp353\profiles\d
efault\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\li
b\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\
MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features
\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\
webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle
\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\
soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\oracle.
soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\Middleware\Oracle_WC1\webcenter\mo
dules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;C:\Oracle\MIDDLE~1\OR
ACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\d
erby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
PATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~
1\patch_oepe1033\profiles\default\native;C:\Oracle\MIDDLE~1\patch_ocp353\profil
es\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\
MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Ora
cle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\app\Administra
tor\product\11.2.0\dbhome_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syste
m32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
starting weblogic with Java version:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms512m -Xmx1024m -XX:CompileTh
reshold=8000 -XX:PermSize=128m -XX:MaxPermSize=256m -Dweblogic.Name=WLS_Portle
t -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.poli
cy -Dweblogic.security.SSL.trustedCAKeyStore="C:\Oracle\Middleware\wlserver_10.
3\server\lib\cacerts" -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WL
SERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Ora
cle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domai
ns\BASE_D~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=
11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Lo
gger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jr
ocket_optfile.txt -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domain
s\BASE_D~1\config\FMWCON~1 -Doracle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P
~1\domains\BASE_D~1\config\FMWCON~1\servers\WLS_Portlet -Doracle.security.jps.c
onfig=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\fmwconfig\jps-config.
xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.car
mlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\carml -Digf
.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\
arisidprovider -Dweblogic.alternateTypesDirectory=\modules\oracle.ossoiap_11.1.
1,\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dtan
gosol.coherence.log=jdk -DjiveHome=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1
\config\fmwconfig\servers\WLS_Portlet\owc_discussions_11.1.1.2.0 -Doracle.wc.op
enusage.clustername=localhost -Doracle.wc.openusage.collectorport=31314 -Doracl
e.wc.openusage.timeout=30 -Doracle.wc.openusage.unicast=true -Doracle.wc.openus
age.enabled=false -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.oj
dl.logging.impl.UserContextImpl -DUSE_JAAS=false -Djps.policystore.hybrid.mode=
false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.
auth=ACC -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.loggin
g.impl.UserContextImpl -Doracle.wc.openusage.clustername=localhost -Doracle.wc.
openusage.collectorport=31314 -Doracle.wc.openusage.timeout=30 -Doracle.wc.open
usage.unicast=true -Doracle.wc.openusage.enabled=false -Doracle.webcenter.taggi
ng.scopeTags=false -Doracle.mds.bypassCustRestrict=true -Djava.awt.headless=tru
e -Doracle.webcenter.tagging.scopeTags=false -XX:+UseParallelGC -XX:+DisableExp
licitGC -Dwc.oracle.home=C:\Oracle\Middleware\Oracle_WC1 -Dem.oracle.home=C:\
Oracle\Middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.
discover=false -Dweblogic.management.server=http://dpdb:7001 -Dwlw.iterativeDe
v=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.d
irs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath
;C:\Oracle\MIDDLE~1\patch_oepe1033\profiles\default\sysext_manifest_classpath;C
:\Oracle\MIDDLE~1\patch_ocp353\profiles\default\sysext_manifest_classpath webl
ogic.Server
<Jul 16, 2010 11:01:55 AM IST> <Notice> <WebLogicServer> <BEA-000395> <Followin
g extensions directory contents added to the end of the classpath:
C:\Oracle\Middleware\user_projects\domains\base_domain\lib\mbeantypes\csp-id-as
serter.jar>
<Jul 16, 2010 11:01:55 AM IST> <Info> <WebLogicServer> <BEA-000377> <Starting W
ebLogic Server with Java HotSpot(TM) Client VM Version 16.0-b13 from Sun Micros
ystems Inc.>
<Jul 16, 2010 11:01:57 AM IST> <Info> <Security> <BEA-090065> <Getting boot ide
ntity from user.>
Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:
<Jul 16, 2010 11:02:12 AM IST> <Info> <Management> <BEA-141107> <Version: WebLo
gic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
<Jul 16, 2010 11:02:14 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to STARTING>
<Jul 16, 2010 11:02:14 AM IST> <Info> <WorkManager> <BEA-002900> <Initializing
self-tuning thread pool>
<Jul 16, 2010 11:02:14 AM IST> <Notice> <LoggingService> <BEA-320400> <The log
file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_Portlet
\logs\WLS_Portlet.log will be rotated. Reopen the log file if tailing has stopp
ed. This can happen on some platforms like Windows.>
<Jul 16, 2010 11:02:14 AM IST> <Notice> <LoggingService> <BEA-320401> <The log
file has been rotated to C:\Oracle\Middleware\user_projects\domains\base_domain
\servers\WLS_Portlet\logs\WLS_Portlet.log00001. Log messages will continue to b
e logged in C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_
Portlet\logs\WLS_Portlet.log.>
<Jul 16, 2010 11:02:14 AM IST> <Notice> <Log Management> <BEA-170019> <The serv
er log file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_
Portlet\logs\WLS_Portlet.log is opened. All server side log events will be writ
ten to this file.>
<Jul 16, 2010 11:02:19 AM IST> <Notice> <Security> <BEA-090082> <Security initi
alizing using security realm myrealm.>
<Jul 16, 2010 11:02:20 AM IST> <Notice> <LoggingService> <BEA-320400> <The log
file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_Portlet
\logs\access.log will be rotated. Reopen the log file if tailing has stopped. T
his can happen on some platforms like Windows.>
<Jul 16, 2010 11:02:20 AM IST> <Notice> <LoggingService> <BEA-320401> <The log
file has been rotated to C:\Oracle\Middleware\user_projects\domains\base_domain
\servers\WLS_Portlet\logs\access.log00001. Log messages will continue to be log
ged in C:\Oracle\Middleware\user_projects\domains\base_domain\servers\WLS_Portl
et\logs\access.log.>
<Jul 16, 2010 11:02:24 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to STANDBY>
<Jul 16, 2010 11:02:24 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to STARTING>
java.lang.NoClassDefFoundError: javax/wsdl/Definition
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.privateGetPublicMethods(Class.java:2547)
at java.lang.Class.privateGetPublicMethods(Class.java:2557)
at java.lang.Class.getMethods(Class.java:1410)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.getImplementedI
nterfaces(EjbAnnotationProcessor.java:1687)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processSessionA
nnotations(EjbAnnotationProcessor.java:447)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotati
ons(EjbAnnotationProcessor.java:310)
at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotati
ons(EjbAnnotationProcessor.java:180)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandar
dAnnotations(EjbDescriptorReaderImpl.java:344)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnly
DescriptorFromJarFile(EjbDescriptorReaderImpl.java:204)
at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJa
rFile(EjbDescriptorFactory.java:93)
at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModul
e.java:1242)
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:395
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Mod
uleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Dep
loymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
Driver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(De
ploymentCallbackFlow.java:149)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(De
ploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.j
ava:1221)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
Driver.java:41)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.
java:367)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.ja
va:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(Deploym
entStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(Ap
pContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeplo
yment.java:141)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doPrepare(De
ploymentAdapter.java:39)
at weblogic.management.deploy.internal.DeploymentAdapter.prepare(Deploy
mentAdapter.java:191)
at weblogic.management.deploy.internal.AppTransition$1.transitionApp(Ap
pTransition.java:21)
at weblogic.management.deploy.internal.ConfiguredDeployments.transition
Apps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.prepare(Co
nfiguredDeployments.java:165)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(Con
figuredDeployments.java:122)
at weblogic.management.deploy.internal.DeploymentServerService.resume(D
eploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(De
ploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 37 more
<Jul 16, 2010 11:02:32 AM IST> <Error> <Deployer> <BEA-149205> <Failed to initi
alize the application 'wsm-pm' due to error weblogic.application.ModuleExceptio
n: Exception preparing module: EJBModule(wsm-pmserver.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The erro
r was:
javax/wsdl/Definition..
weblogic.application.ModuleException: Exception preparing module: EJBModule(wsm
-pmserver.jar)
[EJB:011023]An error occurred while reading the deployment descriptor. The erro
r was:
javax/wsdl/Definition.
at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:467
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Mod
uleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Dep
loymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachine
Driver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(De
ploymentCallbackFlow.java:149)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.wsdl.Definition
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace
>
<Jul 16, 2010 11:02:38 AM IST> <Error> <Deployer> <BEA-149205> <Failed to initi
alize the application 'wsrp-tools [Version=11.1.1.2.0]' due to error java.lang.
ClassNotFoundException: javax.wsdl.WSDLException.
java.lang.ClassNotFoundException: javax.wsdl.WSDLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: javax.wsdl.WSDLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
Truncated. see log file for complete stacktrace
>
<Jul 16, 2010 11:02:41 AM IST> <Notice> <Log Management> <BEA-170027> <The Serv
er has established connection with the Domain level Diagnostic Service successf
ully.>
<Jul 16, 2010 11:02:42 AM IST> <Error> <oracle.wsm.resources.policymanager> <WS
M-02054> <Failure in looking up EJB component QueryService#oracle.wsm.policyman
ager.ejb.IStringQueryServiceRemote.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to ADMIN>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to RESUMING>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090171> <Loading the id
entity certificate and private key stored under the alias DemoIdentity from the
jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090169> <Loading truste
d certificates from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\
lib\DemoTrust.jks.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090169> <Loading truste
d certificates from the jks keystore file C:\Oracle\MIDDLE~1\JDK160~1\jre\lib\s
ecurity\cacerts.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Cente
r,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certif
icate list raised a certificate parsing exception PKIX: Unsupported OID in the
AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Cente
r,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certif
icate list raised a certificate parsing exception PKIX: Unsupported OID in the
AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3".
The loading of the trusted certificate list raised a certificate parsing except
ion PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1
.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems
CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certifica
te parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1
.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Security> <BEA-090898> <Ignoring the t
rusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The load
ing of the trusted certificate list raised a certificate parsing exception PKIX
: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default
" is now listening on 10.0.4.126:8889 for protocols iiop, t3, ldap, snmp, http.
>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <Server> <BEA-002613> <Channel "Default
Secure" is now listening on 10.0.4.126:8789 for protocols iiops, t3s, ldaps, ht
tps.>
<Jul 16, 2010 11:02:42 AM IST> <Notice> <WebLogicServer> <BEA-000332> <Started
WebLogic Managed Server "WLS_Portlet" for domain "base_domain" running in Devel
opment Mode>
<Jul 16, 2010 11:02:45 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server s
tate changed to RUNNING>
<Jul 16, 2010 11:02:45 AM IST> <Notice> <WebLogicServer> <BEA-000360> <Server s
tarted in RUNNING mode>
I'm stuck on this since a long and time and not able to resolve it. Please post the solution if any.
Thanks and advance,
Surender ReddyAt first sight it seems your webcenter installation does not match the version of your WLS.
Your WLS installations seems to be 10.33 and not 10.3.2
If you are using WLS 10.3.3 you MUST also install webcenter 11.1.3
That could be the cause of your problems. -
Hi,
system i am using for Oracle SOA is :
Windows 64 Bit
i5 Processor
6 GB RAM
29 GB on C Drive is already free after installation of all SOA related products.
I have installed wlserver_10.3 for SOA 11g Development purpose and followed exact installation sequence and procedure as mention in oracle documentation
i created domain also and every thing look correct but after installation procedure there are "Additional actions required just after every thing installed" :
setting memory limit
starting weblogic server (Admin Server)
starting weblogic managed server
and so on
now Problem is when i execute C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin startWebLogic.cmd
as mention in oracle documentation i am getting following error message : (i have only included last error lines instead of complete console log)
oConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\
sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\syse
xt_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_ma
nifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manif
est_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
Exception in thread "main" java.lang.NoClassDefFoundError: vXmx512m
Caused by: java.lang.ClassNotFoundException: vXmx512m
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ++Xmx512m. Program will exit.
Now to resolve this what i already tried are :
I change JAVA_HOME and PATH to jdk6 which came with web logic installer
Location is at :
JAVA_HOME : C:\Oracle\Middleware\jdk160_29
PATH : C:\Oracle\Middleware\jdk160_29\bin
The above dose not include any space between path
I ran the startWebLogic.cmd and got same error
After that I also added
CLASSPATH : C:\Oracle\Middleware\jdk160_29\lib\tool.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\jdk160_29\bin
WL_HOME: C:\Oracle\Middleware\wlserver_10.3
I ran the startWebLogic.cmd and got same error
I also used earlier path which I used with eclipse when I was working on other java development.
JAVA_HOME : C:\Program Files\Java\jdk1.7.0_21
PATH : C:\Program Files\Java\jdk1.7.0_21\bin
I ran the startWebLogic.cmd and got same error
Then I also gave PATH: C:\Oracle\Middleware\wlserver_10.3\server\lib (including the existing one using ; )
I ran the startWebLogic.cmd and got same error
Now may be there is a file called setSOADomainEnv.cmd in
< C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\ setSOADomainEnv.cmd>
That include some values for memory set :
set JAVA_OPTIONS=%JAVA_OPTIONS%
set DEFAULT_MEM_ARGS=-Xms512m –Xmx512m
set PORT_MEM_ARGS=-Xms512m –Xmx768m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=768m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=768m
now as I change the red highlighted value to 512 value because I have less memory resource and I checked in installation documentation to change the above red highlighted value to 512 original is 1024 which is too high and it was crating problem and showing memory space problem so I change it to 512 and now I am not getting that memory space problem error but may be the above error is related with change value in setSOADomainEnv.cmd file or not
Following are my domain, weblogic and soa home directory path and all these path are exactly what it suppose to be according to Oracle Installation Documentation:
WebLogic :
C:\Oracle\Middleware\wlserver_10.3
C:\Oracle\Middleware\coherence_3.7
C:\Oracle\Middleware\oepe_11.1.1.8.0
SOA Oracle Home Directory :
C:\Oracle\Middleware\Oracle_SOA1
OSB Home Location :
C:\Oracle\Middleware\Oracle_OSB1
Domain name : soa_div_domain
Domain Location : C:\Oracle\Middleware\user_projects\domains
Application Location : C:\Oracle\Middleware\user_projects\applications
Domain Location: C:\Oracle\Middleware\user_projects\domains\soa_div_domain
form here i am trying to start weblogic : C:\Oracle\Middleware\user_projects\domains\soa_div_domain\bin\startWebLogic.cmd
Please tell me any body want more details.
Thanks.I think you are missing a character '-'
USER_MEM_ARGS="Xms512m -Xmx512m -XX:MaxPermSize=128m"Add this character like follows
"-Xms512m -Xmx512m -XX:MaxPermSize=128m" -
WLS 8.1 SP4 and web-inf/lib ClassNotFoundExceptions
Hi
Is anyone else having problems with this issue ?
I saw it was resolved (CR161884 & CR173695) in the 8.1 SP3 release, but I'm unable to deploy a web app (either through the console or in the applications directory of the domain) in SP4 as the classloader can't see my JAR file in WEB-INF/lib.
<30-Dec-2004 15:51:47 o'clock GMT> <Error> <Deployer> <BEA-149201> <Failed to co
mplete the deployment task with ID 7 for the application appsdirdp-application
-1.0-SNAPSHOT_war.
weblogic.management.DeploymentException:
Exception:weblogic.management.ApplicationException: start() failed.
Module: dp-application-1.0-SNAPSHOT Error: weblogic.management.Deplo
ymentException: org/picocontainer/gems/StaticFactory - with nested exception:
[java.lang.NoClassDefFoundError: org/picocontainer/gems/StaticFactory]Inside my WAR file, I have a WEB-INF\lib directory, containing picocontainer-gems-1.1-SNAPSHOT.jar which contains the org.picocontainer.gems.StaticFactory class.
I've tried deploying the app both with and without a weblogic.xml file declaring prefer-web-inf-classes set to true.
Rgs
ErikJust as a check, I moved the JAR files to a common lib directory on the server and added them to the system classpath specified in startWeblogic.cmd, and the application starts fine.
Maybe not related, but yesterday I was tried deploying an EJB that was dependent on a JAR file NOT included within its JAR file, but specified with the Class-path entry in the manifest.
The behaviour I saw was WLS swallowed the ClassNotFoundException silently, the admin console reported that the EJB was deployed successfully but inside the ejbCreate method - I had two print line statements, one prior to calling the missing class, and one after. Only the one prior appeared on the system console, suggesting that the ejbCreate method wasn't completing, yet no exception is thrown ? -
NoClassDefFoundError: oracle/security/jps/JpsException
I have a web service developed in JDeveloper 12c (12.1.2) using the Generate Web Service from WSDL option. Inside the service implementation class I create a root application module like so:
ApplicationModule am = Configuration.createRootApplicationModule("xxx.model.XXX_AppModule", "XXX_AppModuleLocal");
When I test it in the integrated WebLogic server through JDeveloper, the web service works fine. However when I deploy the application (including the web service) to a production WebLogic server, I get the following error in the logs when testing it:
####<22-Jul-2014 14:51:09 o'clock BST> <Notice> <StdErr> <XXXXXXXXXXXX> <Engineering> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1406037069434> <BEA-000000> <Jul 22, 2014 2:51:09 PM oracle.adf.share.ADFContext getCurrent
WARNING: Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initialization is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent().
For more information please enable logging for oracle.adf.share.ADFContext at FINEST level.>
####<22-Jul-2014 14:51:10 o'clock BST> <Error> <com.sun.xml.ws.server.sei.TieHandler> <XXXXXXXXXXXX> <Engineering> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1406037070692> <BEA-000000> <oracle/security/jps/JpsException
java.lang.NoClassDefFoundError: oracle/security/jps/JpsException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at oracle.adf.share.common.ClassUtils.forName(ClassUtils.java:53)
at oracle.adf.share.security.credentialstore.CredentialStoreContext.getCredentialStorage(CredentialStoreContext.java:186)
at oracle.adf.share.security.credentialstore.CredentialStoreContext.getCredentialProvisioner(CredentialStoreContext.java:109)
at oracle.adf.share.security.credentialstore.CredentialProvisioner.<init>(CredentialProvisioner.java:44)
at oracle.adf.share.jndi.CredentialStoreHelper.<init>(CredentialStoreHelper.java:54)
at oracle.adf.share.jndi.CredentialStoreHelper.<init>(CredentialStoreHelper.java:48)
at oracle.adf.share.jndi.ReferenceStoreHelper.loadCredentials(ReferenceStoreHelper.java:1082)
at oracle.adf.share.jndi.ReferenceStoreHelper.createReference(ReferenceStoreHelper.java:726)
at oracle.adf.share.jndi.ReferenceStoreHelper.getReferencesMapEx(ReferenceStoreHelper.java:331)
at oracle.adf.share.jndi.ContextImpl.load(ContextImpl.java:850)
at oracle.adf.share.jndi.ContextImpl.init(ContextImpl.java:480)
at oracle.adf.share.jndi.ContextImpl.<init>(ContextImpl.java:78)
at oracle.adf.share.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:17)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at oracle.adf.share.jndi.AdfInitialContext.<init>(AdfInitialContext.java:93)
at oracle.adf.share.jndi.AdfInitialContext.newAdfInitialContext(AdfInitialContext.java:74)
at oracle.adf.share.jndi.AdfJndiConfig.getDefaultConnectionsContext(AdfJndiConfig.java:79)
at oracle.adf.share.config.FallbackConfigImpl.getDefaultConnectionsContext(FallbackConfigImpl.java:306)
at oracle.adf.share.config.ADFConfigImpl.getConnectionsContext(ADFConfigImpl.java:755)
at oracle.jbo.client.CADatabaseConnectionProvider.getDatabaseProvider(CADatabaseConnectionProvider.java:177)
at oracle.jbo.client.CADatabaseConnectionProvider.loadConnectionProperties(CADatabaseConnectionProvider.java:151)
at oracle.jbo.client.Configuration.initializeFromConnectionName(Configuration.java:1109)
at oracle.jbo.client.config.ConfigurationProviderManager.resolveConfiguration(ConfigurationProviderManager.java:113)
at oracle.jbo.client.config.ConfigurationProviderManager.getConfiguration(ConfigurationProviderManager.java:54)
at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:534)
at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1393)
at xxx.service.util.ServiceUtils.getApplicationModule(ServiceUtils.java:28)
at com.baesystems.wdms.ELKITInterfaceImpl.getLoomDetail(ELKITInterfaceImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:117)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:91)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:149)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:88)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:420)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:687)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:266)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:169)
at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:205)
at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:634)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:108)
at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:278)
at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:287)
at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:134)
at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:238)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3363)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
Caused By: java.lang.ClassNotFoundException: oracle.security.jps.JpsException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at oracle.adf.share.common.ClassUtils.forName(ClassUtils.java:53)
at oracle.adf.share.security.credentialstore.CredentialStoreContext.getCredentialStorage(CredentialStoreContext.java:186)
at oracle.adf.share.security.credentialstore.CredentialStoreContext.getCredentialProvisioner(CredentialStoreContext.java:109)
at oracle.adf.share.security.credentialstore.CredentialProvisioner.<init>(CredentialProvisioner.java:44)
at oracle.adf.share.jndi.CredentialStoreHelper.<init>(CredentialStoreHelper.java:54)
at oracle.adf.share.jndi.CredentialStoreHelper.<init>(CredentialStoreHelper.java:48)
at oracle.adf.share.jndi.ReferenceStoreHelper.loadCredentials(ReferenceStoreHelper.java:1082)
at oracle.adf.share.jndi.ReferenceStoreHelper.createReference(ReferenceStoreHelper.java:726)
at oracle.adf.share.jndi.ReferenceStoreHelper.getReferencesMapEx(ReferenceStoreHelper.java:331)
at oracle.adf.share.jndi.ContextImpl.load(ContextImpl.java:850)
at oracle.adf.share.jndi.ContextImpl.init(ContextImpl.java:480)
at oracle.adf.share.jndi.ContextImpl.<init>(ContextImpl.java:78)
at oracle.adf.share.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:17)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
at javax.naming.InitialContext.init(InitialContext.java:242)
at javax.naming.InitialContext.<init>(InitialContext.java:216)
at oracle.adf.share.jndi.AdfInitialContext.<init>(AdfInitialContext.java:93)
at oracle.adf.share.jndi.AdfInitialContext.newAdfInitialContext(AdfInitialContext.java:74)
at oracle.adf.share.jndi.AdfJndiConfig.getDefaultConnectionsContext(AdfJndiConfig.java:79)
at oracle.adf.share.config.FallbackConfigImpl.getDefaultConnectionsContext(FallbackConfigImpl.java:306)
at oracle.adf.share.config.ADFConfigImpl.getConnectionsContext(ADFConfigImpl.java:755)
at oracle.jbo.client.CADatabaseConnectionProvider.getDatabaseProvider(CADatabaseConnectionProvider.java:177)
at oracle.jbo.client.CADatabaseConnectionProvider.loadConnectionProperties(CADatabaseConnectionProvider.java:151)
at oracle.jbo.client.Configuration.initializeFromConnectionName(Configuration.java:1109)
at oracle.jbo.client.config.ConfigurationProviderManager.resolveConfiguration(ConfigurationProviderManager.java:113)
at oracle.jbo.client.config.ConfigurationProviderManager.getConfiguration(ConfigurationProviderManager.java:54)
at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:534)
at oracle.jbo.client.Configuration.createRootApplicationModule(Configuration.java:1393)
at xxx.service.util.ServiceUtils.getApplicationModule(ServiceUtils.java:28)
at com.baesystems.wdms.ELKITInterfaceImpl.getLoomDetail(ELKITInterfaceImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:117)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:91)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:149)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:88)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:420)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:687)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:266)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:169)
at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:205)
at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:634)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:108)
at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:278)
at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:287)
at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:134)
at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:238)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3363)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
I thought that maybe I needed to include the jsp-api.jar in the WEB-INF/lib directory in the web service WAR file, but that didn't make any difference.
Any ideas?
For reference, this is the structure of the EAR file that I deployed to the server:
Application.ear
/adf
/META-INF
/adf-config.xml
/connections.xml
/wsm-policy.xml
/lib
/adf-loc.jar
/META-INF
/application.xml
/cwallet.sso
/weblogic-application.xml
/View.war (contains Trinidad pages and ADF BC classes)
/WebService.war (contains web service and ADF BC classes)
/WEB-INF
/classes
/lib
/jps-api.jar
/wsdl
/XXXService.wsdl
/xxx.xsd
/web.xml
/weblogic.xmlThe error is thrown by the weblogic Classloader as it is unable to load the class/package oracle.security.jps.JpsException
This class is related to OPSS framework. Please add the relevant jar having the above class to the classpath or package it within the application to solve the issue.
Vijaya
===== -
Java.lang.NoClassDefFoundError in Linux when I execute my class
I don't know to happen but I tried all things.
I compile well my .java but I have problems when I want to execute my class
the console send me the next error
Exception in thread "main" java.lang.NoClassDefFoundError : renco
1. unset CLASSPATH.
2. define my CLASSPATH again with jars that I need you
java renco
the console send me this error
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
well, this error I managed with try-catch-finally
3. compile with:
java -classpath /directory/myjar.jar renco.java
the console send mi this:
Exception in thread "main" java.lang.NoClassDefFoundError : renco
Other hand, when i use forte for java by execute my class, it execute well. I want to know what commands the IDE used.
thanksthis mi code
* renco.java
* Created on 22 de agosto de 2003, 8:59
* @author mloayza
import java.io.*;
import java.sql.*;
import java.util.*;
public class renco {
/** Creates a new instance of reniec */
public String sqlNoticia;
public String sqlCodigoNoticia;
public String sqlComunicado;
public String pathInc;
private Connection cn;
public static void main(String args[]) throws Exception {
renco RN = new renco();
int estado = RN.proceso();
System.out.println(estado);
public renco() throws IOException{
sqlComunicado= " SELECT TO_CHAR(fecha,'dd/mm/yyyy') fecha, "+
" resumen resumen, "+
" id_comunicado codigo "+
" FROM intranet.int_comunicado "+
" WHERE"+
" id_comunicado = (SELECT max(id_comunicado) FROM intranet.int_comunicado) ";
sqlCodigoNoticia = "SELECT MAX(codigo_nota) codigo "+
" FROM intranet.nota_prensa ";
sqlNoticia = " SELECT codigo_nota codigo, "+
" titulo_nota titulo, TO_CHAR(fecha_nota,'dd/mm/yyyy') fecha "+
" FROM intranet.nota_prensa "+
" WHERE "+
" codigo_nota > ( ? - 4) "+
" ORDER BY codigo_nota DESC";
//pathInc = this.LeeParametro("PathInc");
cn = this.getCn();
this.pathInc = "/das/por/";
public Connection getCn() {
String URL = "jdbc:oracle:thin:@200.20.12.12:1529:asdb";
String USER = "qweqwe";
String PASS = "qweqwe";
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
cn = DriverManager.getConnection(URL,USER,PASS);
catch(Exception sqle){
cn = null;
return cn;
public void closeCn(Connection cn) throws SQLException {
this.cn.close();
cn= null;
public int proceso(){
ResultSet rs = null;
StringBuffer textoComunicado = new StringBuffer();
StringBuffer textoNoticia = new StringBuffer();
int codigo = 0;
int estado = 0;
String URL = "jdbc:oracle:thin:@200.20.12.12:1529:asdb";
String USER = "qweqwe";
String PASS = "qweqwe";
textoNoticia.append("<Script Language='JavaScript1.2'>");textoNoticia.append((char)13);
textoNoticia.append("aj_scroller = new AJScroller();");textoNoticia.append((char)13);
textoNoticia.append("aj_scroller.width = 439;");textoNoticia.append((char)13);
textoNoticia.append("aj_scroller.height = 55;");textoNoticia.append((char)13);
textoNoticia.append("aj_scroller.scrollspeed = 50;");textoNoticia.append((char)13);
textoNoticia.append("aj_scroller.pausedelay = 2000;");textoNoticia.append((char)13);
textoNoticia.append("aj_scroller.pausemouseover = true;");textoNoticia.append((char)13);
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
cn = DriverManager.getConnection(URL,USER,PASS);
cn = getCn();
FileOutputStream fosCom = new FileOutputStream(pathInc+"comunicado.inc"); //archivo Comunicado
DataOutputStream dosCom = new DataOutputStream(fosCom);
FileOutputStream fosNot = new FileOutputStream(pathInc+"noticia.inc"); //archivo Comunicado
DataOutputStream dosNot = new DataOutputStream(fosNot);
//Generacion de cadena para comunicados
PreparedStatement psc = cn.prepareStatement(sqlComunicado);
rs = psc.executeQuery();
rs.next();
textoComunicado.append("<font size='1' color='#505050'><b>)");textoComunicado.append((char)13);
textoComunicado.append("("+ rs.getString("fecha") +") .- "+ rs.getString("resumen")+" ");textoComunicado.append((char)13);
textoComunicado.append("</b></font><font size='1' color='orange'><b><br>");textoComunicado.append((char)13);
textoComunicado.append(" <a href='/portal/s/portal.PIComunicado?codigo="+ rs.getString("codigo")+"'>Más Detalles >></a>");textoComunicado.append((char)13);
textoComunicado.append("</b></font>");textoComunicado.append((char)13);
psc.close();psc=null;
rs = null;
//Generacion de cadena para comunicados
//Obtencion del codigo de la ultima noticia
PreparedStatement pscn = cn.prepareStatement(sqlCodigoNoticia);
rs = pscn.executeQuery();
rs.next();
codigo = rs.getInt("codigo");
rs = null;
PreparedStatement psn = cn.prepareStatement(sqlNoticia);
psn.setInt(1,codigo);
rs = psn.executeQuery();
while(rs.next()){
textoNoticia.append("aj_scroller.add('<table ><tr><td class=rojo><font face=\"Webdings, Wingdings\">4</font></td><td class=rojo><font size=1 color=\"#143E7B\"><p align=\"justify\"><b>"+ rs.getString("Titulo") +" ("+ rs.getString("fecha") +")</b></font></td></table>');");textoNoticia.append((char)13);
rs.close();rs=null;
textoNoticia.append("aj_scroller.display();");textoNoticia.append((char)13);
textoNoticia.append("</Script>");textoNoticia.append((char)13);
dosCom.writeBytes(textoComunicado.toString());
fosCom.close();fosCom = null;
dosCom.close();dosCom=null;
dosNot.writeBytes(textoNoticia.toString());
fosNot.close();fosNot= null;
dosNot.close();dosNot=null;
closeCn(cn);
estado=1;
}catch(IOException ioe){
estado = 0;
catch(SQLException sqle){
estado = 0;
catch(ClassNotFoundException nfce){
estado = 0;
System.out.println(nfce);
//nfce.printStackTrace();
return estado;
public String LeeParametro(String parametro) throws IOException, FileNotFoundException
String path = System.getProperty("java.home");
parametro = parametro.trim().toUpperCase();
String valor = "";
String s;
try{
BufferedReader br = new BufferedReader(new FileReader(path.trim().replace('\\','/')+"/Homepage.conf"));
while ((s = br.readLine())!= null) {
StringTokenizer st = new StringTokenizer(s, "=");
while (st.hasMoreTokens()){
String word = st.nextToken();
if (word.startsWith(parametro)) {
valor = st.nextToken().trim();
catch (FileNotFoundException e) {
throw new FileNotFoundException ("Archivo no encontrado " path"/Homepage.conf"); }
catch (IOException e) {
throw new IOException ("Error al leer "+path+"/Homepage.conf"); }
return valor; -
Java.lang.NoClassDefFoundError when compile class in Weblogic Linux Env.
Hi,
I'm trying jay article ( http://jaysensharma.wordpress.com/2009/08/17/mdb3-0-sample-for-weblogic-application-server/ ) for send message
to JMS, it works great in windows but in Linux is failed.
I’m facing the issue when compile QueueSend class linux environment,
but windows it works great.
in windows I compile the class like this :
C:\bea\user_projects\domains\MyDomain\bin>setDomainEnv.cmd
C:\bea\user_projects\domains\MyDomain>java QueueSend t3://localhost:7001
JMS Message Sent: Test Message Body with counter = 0
JMS Message Sent: Test Message Body with counter = 1
in Linux :
after ./setDomainEnv,
$bea\…\MYDOMAIN\bin >java QueueSend t3://localhost:7001
Exception in thread “main” java.lang.NoClassDefFoundError: javax/jms/Message
Caused by: java.lang.ClassNotFoundException: javax.jms.Message
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
I think it cannot find the java_home or classpath properly, how to solve this issue?
Really thanks in advance.
Edited by: muhkah on 09-Apr-2010 19:58Hi Muhkah,
Please add the *"<BEA_HOME>\modules\javax.jms_1.1.1.jar"* file also in the Client ClassPath.
But the Best thing i will suggest it to Just add the "wlfullClient.jar" file in the client ClassPath...this is a very useful Jar file which solves many many issues. There is a very simple way to create this JAR file: http://jaysensharma.wordpress.com/2010/02/03/building-wlfullclient-jar/
<BR>
The advantage of using *"wlfullclient.jar"* is Just Make it once and then reuse this single Jar in any client Application which is going to interact with WebLogic. This Powerful Jar contains almost all the Classes which is needed by a Client.
Now you can run your Client Program like this :
java -classpath /app/bea10.3/wl_server/server/lib/wlfullclient.jar QueueSend t3://localhost:7001
Thanks
Jay SenSharma
Maybe you are looking for
-
How long does it take to update the iPhone 4?
How long does it take to update the iPhone 4?
-
How do I receive a refund on the 55.0 GB that I purchase within 15 days.
How do I receive a refund on icloud storage that I purchased within the 15 days window of cancellation?
-
More PC to Airport Express problems
I've been all over the iFelix site and this forum and still can't solve the problem. My new tenant can see the network but gets an error "can't connect" before being prompted for the Network Key. I've put her wireless card ID (MAC number) into the Ac
-
I imported a video from my DV camcorder that was 720x480 pixels according to the project pane. My project is DV-NTSC widescreen 32kHz. I edited the footage and exported it as a MPEG1. When I opened the exported file, it was much smaller. It is a
-
Profit center derivation : PO
When we post a GR, the Material document has a different Profit Center. In the IR document, we find a different Profit center. And in the FI document posted, the Profit center is different... Can anyone tell me why the system is picking up different