Please assist: NoClassDefFoundError: com/sun/msv/datatype/xsd/IntType

Hi,
I've developed a very simple schema and used jaxb of jwsdp-1.2 to generate the related data model.
After that, I created a number of generated objects, and marshaled them out to an XML file. It worked perfectly, however, after making some unrelated changes, I've come back and re-ran the generation, only to see it fail. I'll post the details below, any help or guidance will be truly appreciated. Thanks in advance!
Schema:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="database" type="DatabaseType"/>
<xsd:complexType name="DatabaseType">
     <xsd:sequence>
          <xsd:element name="name" minOccurs="0" type="xsd:string"/>
          <xsd:element name="card" minOccurs="0" maxOccurs="unbounded" type="CardType"/>          
     </xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CardType">
<xsd:sequence>
<xsd:element name="id" minOccurs="0" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Stack Trace:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/msv/datatype/xsd/IntType
     at com.sun.xml.bind.DatatypeConverterImpl.printInt(DatatypeConverterImpl.java:252)
     at javax.xml.bind.DatatypeConverter.printInt(DatatypeConverter.java:393)
     at com.zzz.generatedObj.impl.CardTypeImpl.serializeElementBody(CardTypeImpl.java:323)
     at com.zzz.generatedObj.impl.runtime.SAXMarshaller.childAsElementBody(SAXMarshaller.java:378)
     at com.zzz.generatedObj.impl.DatabaseTypeImpl.serializeElementBody(DatabaseTypeImpl.java:103)
     at com.zzz.generatedObj.impl.DatabaseImpl.serializeElementBody(DatabaseImpl.java:43)
     at com.zzz.generatedObj.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:161)
     at com.zzz.generatedObj.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:134)
     at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
     at com.zzz.CardLoader.main(CardLoader.java:134)
And to look at the CardSerializeCode:
public void serializeElementBody(com.zzz.generatedObj.impl.runtime.XMLSerializer context)
throws org.xml.sax.SAXException
if (has_Id) {
context.startElement("", "id");
context.endNamespaceDecls();
context.endAttributes();
try {
//HERE IS THE LINE IT DISLIKES-->>
context.text(javax.xml.bind.DatatypeConverter.printInt(((int) _Id))); //this is the line it dislikes <--- <---
} catch (java.lang.Exception e) {
com.zzz.generatedObj.impl.runtime.Util.handlePrintConversionException(this, e, context);
context.endElement();
I'm running:
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
on Linux.
Thanks again!!

I've done some experimenting with this. Aparently, not only is the xsd:int type no longer valid, but neither is xsd:boolean or xsd:integer (BigInteger).
I can see that the com.sun.msv.datatype package cannot be found, (even though it's still a mystery how this disappeared.) but I have no idea how to search for the correct jar...
ps. Wouldn't it be great for someone to keep an online database of jar's searchable by package name/class?
I'm going to try some more things... but still I would appreciate it if someone can help speed things along - Thanks!

Similar Messages

  • Error during generation of the WSDL:  BUILD FAILED java.lang.NoClassDefFoundError: com/sun/javadoc/Type

    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.

  • Urgent : Cannot Compile :Error :java.lang.NoClassDefFoundError: com/sun/too

    I reinstalled win2k and since then I cant get my javac prompt to work
    The error is :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    But I can find the java.exe
    jar tools, etc.
    Is there some version problems associated with this;
    I am actually tring to run a compile script
    as below:
    COMPILE SCRIPT
    rmdir/s/q K:\MyProjects\class\com
    pause
    javac -classpath K:\MyProjects\class;%JAVAC_CLASSPATH%%J2EE_CLASSPATH% -d K:\MyProjects\class @Compiler.txt
    pause
    This script was working normally before I reinstalled Win2k.
    My CLASSPATH , PATH are below and my jdk is installed in K:\jdk1.3.0_02
    SystemRoot = K:\WINNT
    JAVAC_CLASSPATH:
    %JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;
    CLASSPATH
    %SystemRoot%;%SystemRoot%\system32;%SystemRoot%\system32\cmd.exe;JAVAC_CLASSPATH% %J2EE_CLASSPATH%%JRE_HOME%; %MY_PROJECT%\SQLConstant.txt;
    PATH
    %SystemRoot%\system32;%SystemRoot%\system32\WBEM;%JAVAC_CLASSPATH%;%J2EE_CLASSPATH%;K:\Oracle\bin;K:\Program Files\Oracle\jre\1.1.7\bin;C:\Inprise\AppServer\bin;K:\Program Files\Sybase\SQL Anywhere 7\win32;K:\Program Files\Sybase\Shared\win32;K:\Program Files\Sybase\Shared\Sybase Central 4.0\java;K:\Program Files\Microsoft SQL Server\80\Tools\BINN;K:\Program Files\Sybase\EAServer4.0\java\lib\easclient.jar;K:\Program Files\Sybase\EAServer4.0\java\lib\easserver.jar;K:\Program Files\Sybase\EAServer4.0\java\lib\easj2ee.jar;K:\BorlandEnterpriseServer\bin;K:\WebSphere\AppServer\bin;K:\Program Files\IBM\MQSeries\bin;K:\Program Files\IBM\MQSeries\Java\Lib;K:\Program Files\IBM\WebSphere MQ Publish and Subscribe\bin
    I cant notice any difference between the old classpath settings.
    Could somebody help me out in this issue
    Thanks
    manoj

    Hi Manoj,
    I had the same problem.
    This is what worked for me:
    I'm running Win2k.
    So, in C:\WINNT\system32 I found the following files
    javac.exe
    javaw.exe
    java.exe
    I removed them all, since I have the jdk pointed in the right classpath in my environment variables.
    Once this was deleted. It worked fine!
    I hope this helps.

  • Java.io.InvalidClassException: com.sun.msv.grammar.trex.TREXGrammar

    Hi,
    I am running JAXB 1.0 (JWSDP 1.1) with Weblogic 6.1 Below is the code that is causing the exception. Inspite of the error JAXB reads the XML in fine and everything proceeds normally. Any help would be greatly appreciated.
    Thanks in advance,
    Abhijit
    JAXBContext jc = JAXBContext.newInstance("my.package");
    // create an Unmarshaller
    Unmarshaller u = jc.createUnmarshaller();
    // enable validation
    u.setValidating( true );
    // unmarshal an instance document into a tree of Java content
    ProductsType prods = (ProductsType)u.unmarshal(new FileInputStream( "products.xml" ) );
    The last line above causes the following error
    java.io.InvalidClassException: com.sun.msv.grammar.trex.TREXGrammar; Local class
    not compatible: stream classdesc serialVersionUID=7316616993473479596 local cla
    ss serialVersionUID=1
    at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:5
    18)
    at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:562)
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java
    :931)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at com.sun.xml.bind.GrammarInfo.getGrammar(GrammarInfo.java:63)
    at com.sun.xml.bind.GrammarInfoFacade.getGrammar(GrammarInfoFacade.java:
    129)
    at com.sun.xml.bind.DefaultJAXBContextImpl.getGrammar(DefaultJAXBContext
    Impl.java:76)
    at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.createUnmarshallerHand
    ler(UnmarshallerImpl.java:98)
    at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(Unmarshaller
    Impl.java:112)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:139)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:186)
    at com.manu.tp.product.ProductInputSessionBean.bindXmlDocument(ProductIn
    putSessionBean.java:98)
    at com.manu.tp.product.ProductInputSessionBean.processProducts(ProductIn
    putSessionBean.java:31)
    at com.manu.tp.product.ProductInputSessionBean_j5odob_EOImpl.processProd
    ucts(ProductInputSessionBean_j5odob_EOImpl.java:1393)
    at com.manu.tp.product.ProductInputSessionBean_j5odob_EOImpl_WLSkel.invo
    ke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- linked to ------------------
    javax.xml.bind.JAXBException: unable to extract the schema information
    - with linked exception:
    [java.io.InvalidClassException: com.sun.msv.grammar.trex.TREXGrammar; Local class not compatible: stream classdesc serialVersionUID=7316616993473479596 local cl
    ass serialVersionUID=1]
    at com.sun.xml.bind.GrammarInfo.getGrammar(GrammarInfo.java:70)
    at com.sun.xml.bind.GrammarInfoFacade.getGrammar(GrammarInfoFacade.java:
    129)
    at com.sun.xml.bind.DefaultJAXBContextImpl.getGrammar(DefaultJAXBContext
    Impl.java:76)
    at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.createUnmarshallerHand
    ler(UnmarshallerImpl.java:98)
    at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(Unmarshaller
    Impl.java:112)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:139)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnm
    arshallerImpl.java:186)
    at com.manu.tp.product.ProductInputSessionBean.bindXmlDocument(ProductIn
    putSessionBean.java:98)
    at com.manu.tp.product.ProductInputSessionBean.processProducts(ProductIn
    putSessionBean.java:31)
    at com.manu.tp.product.ProductInputSessionBean_j5odob_EOImpl.processProd
    ucts(ProductInputSessionBean_j5odob_EOImpl.java:1393)
    at com.manu.tp.product.ProductInputSessionBean_j5odob_EOImpl_WLSkel.invo
    ke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:305)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
    ef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
    a:274)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
    .java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    java.io.InvalidClassException: com.sun.msv.grammar.trex.TREXGrammar; >Local class not compatible: stream classdesc
    serialVersionUID=7316616993473479596 local class serialVersionUID=1This is the problem. Basically this tells that the class on the receiving end (the local class) and the one that was serialized to the stream are different versions. Every class is assigned a serialVersionUID when it's compiled, and if two classes that are otherwise the same have different serialVersionUIDs, they are considered to be different versions and the above exception is raised.
    You should check that the JAR files on both VMs are exactly the same versions.
    What's worrying is the UID of the local class, 1. This doesn't look like something that was automatically generated by the compiler but more like that somebody explicitly defined a serialVersionUID field when trying to avoid class incompatibility issues and initialized it to the value of 1. This is indeed extremely bad programming practice and should not be used.
    .P.

  • Cannot find JavaDoc for the com.sun.msv package

    Where can I find the JavaDoc for the com.sun.msv package ?

    What is the msv package? I also (after a quick google search) can't find any mention of this.
    What is the package for?

  • Where is com.sun.msv.grammar.Grammar?

    I generated some java classes using the JAXB compiler from my XML schema. When attempting to compile said classes I fail to find com.sun.msv.grammar.Grammar. I can't seem to locate it in any of the jar files that came with Java Web Services developer pack 1.3. If anyone can point me in the right direction, I'd appreciate it.
    -S

    Nevermind. jaxb-libs.jar got dropped.
    -S

  • Java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame         at HelloUniverse.main(Compiled Code)

    I'm getting this error
    java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame
    at HelloUniverse.main(Compiled Code)
    I receive this error when I try to run the demos that are in the /usr/java1.1/demo folder.
    I followed the directions to install java3d. I installed the java3d binary in the top part of
    the JDK directory then ran the binary. Everything installed o.k., but I cannot run
    any of the demos. I also have J2SE 1.2.2_05a, JDK 1.1.8_10, and.
    JRE 1.1.8_10 installed. My operating system is SunOS 5.6, Solaris 2.6. My workstation
    is an Ultra 5 with 374mb ram.
    Here is part of the install intructions.
    Place the java3d1_2-solsparc.bin file into the top level directory
    of the JDK you wish to install Java 3D into. Execute the
    java3d1_2-solsparc.bin file (ex: sh java3d1_2-solsparc.bin).
    After installation, you may remove this file.
    The Java 3D(TM) SDK includes several demo programs that can
    verify correct installation. Assuming your Java 2 SDK is installed
    at ~/Solaris_JDK_1.2.2_05, try the following:
    cd ~/Solaris_JDK_1.2.2_05/demo/java3d/HelloUniverse
    java HelloUniverse
    Note: Many more demos are available under the demo/java3d/
    directory. Some of the demos require a maximum memory
    pool larger than the default in java. To increase the
    maximum memory pool to 64 meg, add the following command
    line options to java or appletviewer:
    java: -mx64m
    appletviewer: -J-mx64m
    You do not need to include the J3D jar files in your CLASSPATH,
    nor do you need to include the J3D shared libraries in your PATH.
    You should include "." in your CLASSPATH or ensure that CLASSPATH
    is not set.
    I'm not sure how to set set/unset the CLASSPATH and I'm not sure if I was supposed to
    place the binary file in the /usr/java1.1 or /usr/java or /usr/java1.2 directory.
    Can anyone help?
    tomjones

    -- If jar size isn't an issue, I recommend using thick "weblogic.jar" instead of the thin "wl*.jar" jars. The thick jar is a better performer, is used by more customers, and has more features. Otherwise:
              -- It might help to use the thin client jars from a later service pack - several service packs have been released since SP2, or you might even try using jars from a recent 9.2 SP or even 10.0.
              -- Also, check to see if the 1.4.2 JVM is up-to-date and/or try switching from the Sun JVM to the JRockit JVM (or vice-versa).
              -- Finally, it might help to check if your XP environment matches your Linux environment (JVM command-line, classpath, etc).
              -- Also: The IIOP newsgroup may also have some advice. The thin client uses the IIOP protocol even when a "t3:" URL is specified by the application.
              Tom

  • NoClassDefFoundError: com/sun/servicetag/UnauthorizedAccessException

    Hello,
    I have a web service running on a tomcat, which used to work but now I suddenly get the following error:
    2010-03-31 14:11:13,619 INFO  org.apache.axis.EXCEPTIONS.logException(400) Exception:
    java.lang.NoClassDefFoundError: com/sun/servicetag/UnauthorizedAccessExceptionThe error occurs in the tomcat log when I open the page:
    http://myhost:8080/services/MyService?wsdl
    A similar error is showing on the web page.
    I have another server which is running the exact same webapp, and there I do not get the error.

    I found the problem. One of the servers was using jre1.6_03, while the other was using jre1.6_05. When I changed both to be using 1.6_05 it worked.

  • NoClassDefFoundError: com/sun/media/rtsp/protocol/OptionsMessage

    Hi,
    I am trying the project streamp2p (from sourceforge) to stream avi (cinepak) files over rtsp with jmf.
    On the jmf.jar of the linux performance pack, the class com/sun/media/rtsp/protocol/OptionsMessage.class is not available.
    I already tried a search on google (1 result, also reporting the same problem, without answer...) and tried also a search on this forum, with no results.
    Does anybody knows something that can help ?
    Thanks,
    Hugo Lavalle

    Like I told you in the other thread com.sun packages are not fully supported, technically the could be considered "betas" and are only included to aid developers. Because they are no supported no javadocs exist for them at this time. Like I said you are just going to have downlad the source code and do alot of poking around. From what I can tell, however, the com.sun.media.rtsp package intergrates seemlessly with JMF.

  • Java.lang.NoClassDefFoundError: Login: com/sun/gi/comm/users/client/JMEClie

    I am getting this error when i am ruunning my j2me program in eclipse 3.2 >>>>
    The default color phone emulator og the j2me disappear after launching...
    Can anybody please tell whats the problem?
    <Error code>
    java.lang.NoClassDefFoundError: Login: com/sun/gi/comm/users/client/JMEClientListenerInterface
    at com.sun.midp.midlet.MIDletState.createMIDlet(+14)
    at com.sun.midp.midlet.Scheduler.schedule(+52)
    at com.sun.midp.main.Main.runLocalClass(+28)
    at com.sun.midp.main.Main.main(+116

    When i executing J2ME program m getting the error
    java.lang.NoClassDefFoundError: com/sun/midp/midlet/MIDletState
    Exception in thread "main"
    Can anyone plz help in this

  • SOMETIMES - Could not load com.sun.xml.messaging.saaj.soap.Envelope

    Hi there,
    Well, it is mysterious - not to say frightning !
    When I first start my tomcat I get an Exception like:; Could not load com.sun.xml.messaging.saaj.soap.Envelope
    The second time it runs well. No Exception about classloading. And the app is nice.
    Hmm, why ? Can�t find out.
    I think that Exception has to have some relation to jars and where they are placed.
    According to the JAXWS-page I placed:
    jaxb-api.jar, jaxws-api.jar, jsr173_api.jar, saaj-api.jar
    in my %JRE_HOME%\lib\endorsed\
    so far so good !
    The rest of the needed jars to run JAX-WS Webservices are in my WEB-INF/lib FOLDER
    activation.jar and so on
    Any Ideas ?
    Here is the Exception I get when I invoke the Service
    INFO: Illegal access: this web application instance has been stopped already. Could not load com.sun.xml.messaging.saaj.soap.Envelope. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
    java.lang.IllegalStateException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1238)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:78)
    at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:177)
    at com.sun.xml.ws.client.dispatch.SOAPMessageDispatch.toReturnValue(SOAPMessageDispatch.java:93)
    at com.sun.xml.ws.client.dispatch.SOAPMessageDispatch.toReturnValue(SOAPMessageDispatch.java:57)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:188)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:192)
    at idff.server.service.ArtifactResolver.resolve(ArtifactResolver.java:101)
    at servlets.AssertionConsumerServlet.doPost(AssertionConsumerServlet.java:149)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:619)
    09.08.2007 14:40:12 org.apache.catalina.core.StandardWrapperValve invoke
    SCHWERWIEGEND: Servlet.service() for servlet AssertionConsumerServlet threw exception
    java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/Envelope
    at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:78)
    at com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:177)
    at com.sun.xml.ws.client.dispatch.SOAPMessageDispatch.toReturnValue(SOAPMessageDispatch.java:93)
    at com.sun.xml.ws.client.dispatch.SOAPMessageDispatch.toReturnValue(SOAPMessageDispatch.java:57)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:188)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:192)
    at idff.server.service.ArtifactResolver.resolve(ArtifactResolver.java:101)
    at servlets.AssertionConsumerServlet.doPost(AssertionConsumerServlet.java:149)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:619)
    Listening for transport dt_shmem at address: bundled_tomcat
    Anybody help, please !

    First, thanks for your reply jitu.
    I don�t get this exception anymore.
    Well, your hint was quite right, so I think I may give you the duke stars.
    I found out that putting the jars into the shared/lib don�t work. Maybe it is because I am running 3 tomcat instances at the same time.
    I put all the Jax-ws libs into the tomcat_home/common/lib directory.
    And left the endorsed libs in the java endoresed directory.
    putting the endorsed libs in the tomcat_home/common/lib/endorsed may also work.
    regards and thanks,
    footman

  • Om.sun.msv.verifier.ValidityViolation

    Hi,
    I am getting com.sun.msv.verifier.ValidityViolation: the
    value does not match the regular expression "\d{14}". error
    while running a batch program.
    the version of isorelax.jar in version.properties is
    version=20010815
    And version of msv.jar in version.properties is
    version=20010925
    The problem is even when the input file used for batch
    processing is good ( has no errors ) this errors is been
    thrown out, but when jvm are recycled this error goes away.
    the validation rules under the xsd file
    <xsd:simpleType name="batchDateTime">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="\d{14}"/>
    </xsd:restriction>
    </xsd:simpleType>

    I found the answer myself. It is because I wrongly used a SAX1 parser instead of a SAX2 parser.

  • Where to get com/sun/mirror/apt/AnnotationProcessorFactor?

    I am facing a problem with locating com/sun/mirror/apt/AnnotationProcessorFactory while trying to deploy my webservice in Tomcat. Could you please tell in which JAR file can I find this?
    I made an apt build task in this manner. My compile.classpath contains: jaxws-tools.jar.
        <taskdef name="apt" classname="com.sun.tools.ws.ant.Apt">
            <classpath refid="compile.classpath"/>
        </taskdef>
        <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
            <classpath refid="jaxws.classpath"/>
        </taskdef>
        <target name="apt">
            <mkdir dir="${build.dir}"/>
            <mkdir dir="${build.dir}/WEB-INF"/>
            <mkdir dir="${build.dir}/WEB-INF/classes"/>
            <mkdir dir="${build.dir}/WEB-INF/lib"/>
            <copy todir="${build.dir}">
                <fileset dir="${web.dir}"/>
            </copy>
            <apt sourcepath="${src.dir}"
                 destdir="${build.dir}/WEB-INF/classes"
                 debug="${compile.debug}"
                 deprecation="${compile.deprecation}">
                <classpath refid="compile.classpath"/>
            </apt>
            <copy todir="${build.dir}/WEB-INF/classes">
                <fileset dir="${src.dir}" excludes="**/*.java"/>
            </copy>
            <copy todir="${build.dir}/WEB-INF/lib">
                <fileset dir="${lib.dir}">
                    <include name="*.jar"/>
                </fileset>
            </copy>
        </target>Then I tried building my project, but I got this error.
    humpty@nifty:~/lab/wsdl/jaxrpc$ ant
    Buildfile: build.xml
    Trying to override old definition of task apt
    apt:
          [apt] An exception has occurred in apt (1.6.0_10). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
          [apt] java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
          [apt]     at java.lang.ClassLoader.defineClass1(Native Method)
          [apt]     at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
          [apt]     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
          [apt]      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
          [apt]      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
          [apt]      ... 38 more
          [apt] Command invoked: apt -d /home/humpty/lab/wsdl/jaxrpc/build/WEB-INF/classes -sourcepath /home/humpty/lab/wsdl/jaxrpc/src/java -g -classpath /home/humpty/lab/wsdl/jaxrpc/lib/FastInfoset.jar:/home/humpty/lab/wsdl/jaxrpc/lib/activation.jar:/home/humpty/lab/wsdl/jaxrpc/lib/http.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxb-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxb-impl.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxb-xjc.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxws-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxws-rt.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jaxws-tools.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jsr173_api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jsr181-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/jsr250-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/mimepull.jar:/home/humpty/lab/wsdl/jaxrpc/lib/resolver.jar:/home/humpty/lab/wsdl/jaxrpc/lib/saaj-api.jar:/home/humpty/lab/wsdl/jaxrpc/lib/saaj-impl.jar:/home/humpty/lab/wsdl/jaxrpc/lib/stax-ex.jar:/home/humpty/lab/wsdl/jaxrpc/lib/streambuffer.jar:/home/humpty/lab/wsdl/jaxrpc/lib/woodstox.jar
    BUILD FAILED

    i found it in axis2-1.4-bin\axis2-1.4\lib\jaxb-xjc-2.1.6.jar
    but in different package
    jaxb-xjc-2.1.6.jar\com\sun\xml\xsom\parser
    maybe look for this jar.

  • Getting Error IDM8.1patch11WebLogic Server com/sun/idm/idmx/txn/Transaction

    I installed IDM 8.1 Patch 11 on WebLogic server. When I start the server I am getting following error. The Login page never shows up. I will appreciate if you can give me the pointer.
    ] Root cause of ServletException.
    java.lang.NoClassDefFoundError: com/sun/idm/idmx/txn/TransactionManager
         at com.waveset.ui.LoginHelper.csrfGuardTokenEnabled(LoginHelper.java:2471)
         at com.waveset.ui.LoginHelper.handleCSRFGuardToken(LoginHelper.java:2186)
         at jsp_servlet.__login._jspService(__login.java:251)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         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:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.sun.idm.profiler.instrumentation.RequestTimingFilter.doFilter(RequestTimingFilter.java:76)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 842717 on Mar 8, 2011 12:16 PM

    You are receiving this error because one of the fields being pulled from IdM, exceeds he column limit defined in the GLOBALUSERS database table.
    I received this error before because the PRIMARYEMAIL column in the GLOBALUSERS table was defined as [PRIMARYEMAIL] [nvarchar](50).
    I went into Microsoft SQL Server Management Studio and updated the field to [PRIMARYEMAIL] [nvarchar](100), and then the import worked.
    Hope this helps,
    Larry L. Viars | Senior Consultant
    Logic Trends, Identity & Access Management Specialists

  • Com/sun/corba/se/connection/ORBSocketFactory

    Is the class com/sun/corba/se/connection/ORBSocketFactory in the JRE 1.5.
    I get my WLS 8.1 client working with 1.4 but it desn't work anymore with 1.5 due to the following error:
    java.lang.NoClassDefFoundError: com/sun/corba/se/connection/ORBSocketFactory
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at weblogic.corba.j2ee.naming.ORBHelper.<clinit>(ORBHelper.java:112)
    at weblogic.corba.client.ClientORBInitializer.initialize(ClientORBInitializer.java:84)
    at weblogic.security.auth.login.UsernamePasswordLoginModule.login(UsernamePasswordLoginModul
    e.java:226)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at javax.security.auth.login.LoginContext.invoke(Unknown Source)
    at javax.security.auth.login.LoginContext.access$000(Unknown Source)
    at javax.security.auth.login.LoginContext$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
    at javax.security.auth.login.LoginContext.login(Unknown Source)
    It seems that the cless doesn't exist any more????
    Thanks in advance for your help,
    Olivier.

    Hi,
    I have faced with the same problem as you, and I am too cannot find any clear and full description/solution about upgrading from 1.4 to 1.5 and com.sun.corba.se.connection and com.sun.corba.se.internal packages. I am trying to find official clarification from java.sun.com but without results. Did you get any results with this question?
    I will be very grateful for you help!

Maybe you are looking for

  • Change the report type.

    I'm using a report for determine the top applications. How can modify the report to get session count and bytes trasmitted on the same report? Thanks, and happy new year! Andrea.

  • Website monitoring tool

    Hi in my organization we are going to have a online traning session by logging to a particular website. is there any tool were we can monitor the website and see number of hits, availability, ip address which are accessing it etc. i have URL monitori

  • Best way to root out redundant files?

    So my photo folder is a complete mess. My database died, and I made the mistake of just reimporting my Pictures folder and iPhoto library. Which it failed after 3-4 attempts. To make a long story short, my hard drive is being eaten up by redundant ph

  • Ipad and iphone link

    I would like to use my 'wifi only' ipad as a webcam to view from my iphone when I am away. Is this possible?

  • Can't find some strings with the Find function in LV2012

    Hi I got a problem with the "Find function" in LV2012. The Find function can't find the text "IniFile: WriteKeys" in the string constant in the innercase. Why is that? I have tried to plase a copy of the constant(se next picture)  and then it can onl