NoClassDefFoundError problem

Hi again friends,
I'm using JDEV to develop OAF, I have no problem doing unit test with Mockito, and Junit 3.x. JUnit 3 is the officially supported version for my IDE build.
I wanted to use JUnit 4, so I decided to just run my tests using ant build file. Everything compiled fine after adding the jar/zip files from jdev one after another in the ant classpath.
But when I try to run the unit test, I am getting this NoClassDefFoundError apparently from a class file is I already included in the build file. The method call having problem same version jar file Mockito.
   [junit] java.lang.NoClassDefFoundError: oracle/adf/mds/repos/DatabaseContext
   [junit]     at java.lang.Class.getDeclaredConstructors0(Native Method)
   [junit]     at java.lang.Class.privateGetDeclaredConstructors(Class.java:238
   [junit]     at java.lang.Class.getDeclaredConstructors(Class.java:1836)
   [junit]     at org.mockito.internal.creation.jmock.ClassImposterizer.setCons
ructorsAccessible(ClassImposterizer.java:58)
   [junit]     at org.mockito.internal.creation.jmock.ClassImposterizer.imposte
ise(ClassImposterizer.java:53)
   [junit]     at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:5
   [junit]     at org.mockito.internal.MockitoCore.mock(MockitoCore.java:45)
   [junit]     at org.mockito.Mockito.mock(Mockito.java:921)
   [junit]     at org.mockito.Mockito.mock(Mockito.java:816)Please share some ideas, thanls.
I'll try to see what happens If I use JUnit3.0 in with ant... Same error.
Maybe while the Class in question is being instantiated, it silently depend on another class that is not present in my classpath...That's exactly the case, solved by including all jar files defined for the project in jdev.
Sorry for the monologue.
Edited by: thedatawarehouse on Apr 25, 2011 4:34 PM

I'm unfamiliar with JDEV, but the short answer is: Find where oracle.adf.mds.repos.DatabaseContext.class is on your machine & add it to your classpath.

Similar Messages

  • A more mysterious NoClassDefFoundError problem

    This is a continuation of cannot solve NoClassDefFoundError. I implemented amtguy's suggestion to the previous thread and it fixed my problem. I didn't know -cp was ignored when using -jar.
    In my executable jar's manifest, I specified the Class-Path: entry with the jars I need and problem solved.
    Now, I get NoClassDefFoundError for the class that is the entry point for the executable jar.
    The manifest's Main-Class: value is ok. It contains the full package name for the class. The class is in the jar and its path matches the package name.
    How did setting the manifest Class-Path: break things so that the class I am trying to execute cannot be found?
    Again, thanks for any help.

    I have the same problem ... it sure would be nice to make the jsp:plugin tag able to understand what to do on Mac OS X.

  • Another java.lang.NoClassDefFoundError problem

    C:\tinyos\cygwin\opt\tinyos-1.x\contrib\cotsbots\tools>java -jar RobotCmdGUI.jar
    RobotCmdGUI: Using group ID 125
    Exception in thread "main" java.lang.NoClassDefFoundError: RobotCmd/RobotCmdGUI$
    1
    at RobotCmd.RobotCmdGUI.initComponents(RobotCmdGUI.java:158)
    at RobotCmd.RobotCmdGUI.<init>(RobotCmdGUI.java:55)
    at RobotCmd.RobotCmdGUI.main(RobotCmdGUI.java:936)
    C:\tinyos\cygwin\opt\tinyos-1.x\contrib\cotsbots\tools>
    My main-class is RobotCmdGUI which I have included in my manifest as -
    Main-Class: RobotCmd.RobotCmdGUI
    The directory to my main class file is as follows:
    C:\tinyos\cygwin\opt\tinyos-1.x\contrib\cotsbots\tools\RobotCmd\RobotCmdGUI.class
    I wonder what else could be the problem and why there's a $1 in "Exception in thread "main" java.lang.NoClassDefFoundError: RobotCmd/RobotCmdGUI$1" since my main class file is RobotCmdGUI
    Thanks again

    I wonder what else could be the problem and why
    there's a $1 in "Exception in thread "main"
    java.lang.NoClassDefFoundError:
    RobotCmd/RobotCmdGUI$1" since my main class file is
    RobotCmdGUI
    The RobotCmd/RobotCmdGUI$1 represents an annonymous class inside the RobotCmdGUI class - probably a listener of some sort. This must be present inside the jar - it sounds like you did not put it in the jar. You can check the contents of the jar using "jar tf RobtCmdGUI.jar"

  • NoClassDefFoundError problems -native method

    hi all,
    i've got a wierd problem... when i try to run a java appln ( for instance curl.java whose class is stored in a jar file) without giving a proper argument say like:
    java XX.RR.YY.curl
    a message prompts me to input a valid argument :
    Usage: XX.RR.YY.hyd <options>
    but when i try to run the same program - this time giving it a valid argument- like :
    java XX.RR.YY.curl -curltest.xml
    it spews out the following error messages along many others
    Exception in thread "main" java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:130)
    my point is why does java fail to find the class when i give it a valid argument and not when i do not give it any.
    thanks in advance

    exactly ... my java program has a similar code in it
    regarding the arg checking .
    so it does mean that java had found my appln
    class(yay! my classpath is right) and had run thru a
    few lines of code to get to the point where it
    realized it needed some arguments and so gently asked
    me supply an argument (a valid filename in my case)...Did you write this code? Did you put in the line where it displays the usage?
    so the next thing i do is run the same command java
    xx.xx.xx -curltest.xml ( i've supplied a valid
    argument this time ) ... the result :
    Exception in thread "main"
    java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:130)
    why did java fail to grab my appln class this time -
    in contrast to the first time where it found the class
    file w/o any problems. Try just using "java xx.xx.xx curltest.xml" (without the '-').

  • Cannot solve a NoClassDefFoundError problem

    I have two jars. One is an executable jar and the other has classes used as a library by the executable jar.
    The executable jar has a manifest that identifying the main class and nothing else. There is no class path definition in the manifest.
    The library jar has a basic default manifest containing only creation date and created by entries.
    When I run the executable jar I get NoClassDefFoundError for one of the classes contained in the library jar. I have verified everything is correct inside the library jar. The class is in the jar, everything is spelled correctly, etc.
    I tried every way I know to set the class path with the library jar.
    I have put the pathname/library.jar on the system CLASSPATH and tried java -jar executable.jar
    I have tried java -cp pathname/library.jar -jar executable.jar
    I have tried java -classpath pathname/library.jar -jar executable.jar
    No matter, I still get NoClassDefFoundError. I don't know what else to try.
    Can someone make a suggestion?
    Thanks in advance.
    -S

    An easy thing to try isjava -cp pathname/library.jar;pathname/executable.jar somepackage.MainClassInsideJarReplace the ; with a : if you are using a *nix computer.
    When the -jar option is used, the -classpath or any system classpath is ignored - the only classpath is the one in the manifest of the executable jar file, if specified.

  • Re: NoClassDefFoundError problem when running Junit via Ant on CI Server

    I have also noticed that every time we get the NoClassDefFoundError it was during a call to a static method of the "missing" class

    jschell wrote:
    Also as suggested if the class has initialization, in your case static (blocks or members) and the initialization fails then the class will not load. That however should show in the stack trace.As of yet, we have not seen any of the initialization steps in the stack trace, only the method and line number that calls the static method.
    Also, I'm not to familiar with the inner workings of the class loader. When you mention "+a+ classloader", are there more than just the basic one that I never explicitly interact with?
    Edited by: tankertux on Aug 5, 2008 12:41 PM

  • Random NoClassDefFoundError problems

    I hope some can point me in the right direction.
    I seem to be getting random NoClassDefFoundError errors when trying to run my application. This is since I upgraded to 1.4.2_08.
    If I try to run the same applet again I get a different NoClassDefFoundError. I know the classes exist because they are all found if I start the applet several times.
    If I put the classes in a .jar file it works all the time. Running on java 1.5 works too (I can't use 1.5 because it's too slow!).
    Has anyone experienced this before?
    Much appreciated

    Yes the applet writer CAN choose the version of JVM. For example, if the applet is to be used by one company on an intranet where all the client machines are pre-built. This is the case in this instance.
    Well it's quite tedious to make changes to software, then have to build a jar file, clear out your broweer cache just to ensure that the changes you made work. So 'my solution' isn't an adequate solution.
    Thanks for your help though.

  • NoClassDefFoundError during deployment & accessing EJBs in ear

    Platform - Redhat Linux 7.2 weblogic6.0 ant 1.3 for compilation and creation of ear.
    I get a NoClassDefFoundError when I try to access some of the EJBs in my deployed
    ear file.
    Previously, I faced a NoClassDefFoundError problem in deployment and I put the jar
    containing
    the classes that it was asking for, in the classpath in startWeblogic.sh.
    The ear got deployed after that.
    Error I am getting now...
    2002-04-29 18-05-18 - bang - <INFO> - Type :Operation Groups
    2002-04-29 18-05-18 - bang - <INFO> - SELECT member FROM s_access_group WHERE site
    = ? AND facility
    = ? AND type = ? AND name in('null')
    2002-04-29 18-05-18 - bang - <DEBUG> - DB Connection closed
    2002-04-29 18-05-18 - bang - <DEBUG> - DB Connection closed
    2002-04-29 18-05-18 - bang - <ERROR> - Controller: createSessionForTheUser: Caught
    Remote exception
    while creating SessionMgrEJB
    java.rmi.RemoteException: EJB Exception:; nested exception is:
    java.lang.NoClassDefFoundError: com/seagate/edcs/server/system/sysmgr/GroupDetails
    java.lang.NoClassDefFoundError: com/seagate/edcs/server/system/sysmgr/GroupDetails
    at com.seagate.edcs.util.system.SecurityUtils.getMembersOfGroups(SecurityUtils.java:205)
    at com.seagate.edcs.util.system.SecurityUtils.getGuestPrivileges(SecurityUtils.java:376)
    at com.seagate.edcs.server.system.sessionmgr.SessionMgrEJB.ejbCreate(SessionMgrEJB.java:127)
    I have done the same compilation and creation of ear and deployment in a Solaris
    server, using the
    same source code and build.xml ( ant build file) and ant properties file; never saw
    any errors like this.
    I unjared the ear lying in the solaris machine that I was using previously and the
    ear that
    I created now in the linux server, and saw a difference in the manifest files...
    the manifest files remains same as what I decribe with the EJB source in the previous
    (solaris)
    case...
    Manifest-Version: 1.0
    Created-By: 1.3.0 (Sun Microsystems Inc.)
    Class-Path: edcs2000_utility.jar edcsreportmgr.jar wipgrpmgr.jar resourcegrpmgr.jar
    systemgrpmgr.jar
    notificationmgr.jar role.jar user.jar
    The manifest file in the ear created now in the linux machine is something like this;
    different
    from what I describe together with the EJB.
    Manifest-Version: 1.0
    Name: com/seagate/edcs/server/system/role/RoleEJBHomeImpl_WLStub.class
    Name: com/seagate/edcs/server/system/role/ACLDetails.class
    Name: WLGENERATED
    Name: com/seagate/edcs/server/system/role/RolePK.class
    Name: com/seagate/edcs/server/system/role/RoleEJBHomeImplAD.ser
    Name: com/seagate/edcs/server/system/role/RoleEJBEOImpl_WLStub.class
    Name: com/seagate/edcs/server/system/role/RoleEJBEOImpl.class
    Name: META-INF/ejb-jar.xml
    what might be the issue here ? Please do have a look and help!
    Thanks in advance
    Prabin.

    Hi Kevin,
    Use remote EJB method calls. For details, look for "Parent application" topic in this forum or Servlet development guide in Oracle Documentation Library. I know, it does not seem to be the right source when looking for EJB documentation, however, it is.
    Daniel.

  • Java.lang.NoClassDefFoundError: oracle/sql/STRUCT after 11g/GF3.1.2 upgrade

    We have recently upgraded all of our servers from:
    Java 1.6.31 to 1.6.32
    and
    Glassfish 3.1.1 to 3.1.2
    We upgraded our development server from Oracle 10g to 11g.
    Our live servers are working fine. Our development server now is spewing out a java.lang.NoClassDefFoundError: oracle/sql/STRUCT error whenever it encounters a servlet or page which uses this class.
    ojdbc14.jar and sdopai.jar were included within the WAR file, and I have tried with them excluded from the WAR file to no avail. We have tried reverting the version of ojdbc.jar on the server to the earlier version, this has made no different.
    Any ideas? The full stack trace is below:
    [#|2012-05-28T16:15:34.950+0100|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=80;_ThreadName=Thread-2;|StandardWrapperValve[EnterDataSS]: PWC1406: Servlet.service() for servlet EnterDataSS threw exception
    java.lang.NoClassDefFoundError: oracle/sql/STRUCT
    at oracle.spatial.geometry.JGeometry.load(JGeometry.java:3097)
    at Bto.Location.LocatorUtils.JavaScriptifySDO(LocatorUtils.java:97)
    at Bto.Chats.Controllers.EnterDataModuleMain.<init>(EnterDataModuleMain.java:136)
    at Bto.Chats.SessionBean.initialiseEdm2(SessionBean.java:348)
    at Bto.Chats.Servlets.Enter.EnterDataSS.processRequest(EnterDataSS.java:36)
    at Bto.Chats.Servlets.ChatsServlet.doGet(ChatsServlet.java:90)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
    at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
    at com.sun.grizzly.http.ajp.AjpProcessorTask.invokeAdapter(AjpProcessorTask.java:135)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.lang.ClassNotFoundException: oracle.sql.STRUCT
    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 sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 33 more
    |#]

    >
    Our live servers are working fine. Our development server now is spewing out a java.lang.NoClassDefFoundError: oracle/sql/STRUCT error whenever it encounters a servlet or page which uses this class.
    ojdbc14.jar and sdopai.jar were included within the WAR file, and I have tried with them excluded from the WAR file to no avail. We have tried reverting the version of ojdbc.jar on the server to the earlier version, this has made no different.
    >
    If your code can't find the class then you have the classic NoClassDefFoundError problem you get when any other referenced class can't be located.
    The oracle/sql/STRUCT class is in the ojdbc14.jar, ojdbc5.jar and ojdbc6.jar so if it can't be found then that class is missing from the jar you are using (which you can tell by examining the jar contents) or the jar is missing from the classpath being used.
    As already mentioned you need the Oracle 11 JDBC files to support Java 1.6
    Here is the official Oracle JDBC page that shows the Oracle DB versions supported for each of the JDBC drivers available and also describes the JDBC jars and what JDK versions they support.
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#02_01
    >
    Which JDBC drivers support which versions of Javasoft's JDK?
    pre-8i OCI and THIN Drivers - JDK 1.0.x and JDK 1.1.x
    8.1.5 OCI and THIN Drivers - JDK 1.0.x and JDK 1.1.x
    8.1.6SDK THIN Driver - JDK 1.1.x and JDK 1.2.x (aka Java2)
    8.1.6SDK OCI Driver - Only JDK 1.1.x
    8.1.6 OCI and THIN Driver - JDK 1.1.x and JDK 1.2.x
    8.1.7 OCI and THIN Driver - JDK 1.1.x and JDK 1.2.x
    9.0.1 OCI and THIN Driver - JDK 1.1.x, JDK 1.2.x and JDK 1.3.x
    9.2.0 OCI and THIN Driver - JDK 1.1.x, JDK 1.2.x, JDK 1.3.x, and JDK 1.4.x
    10.1.0 OCI and THIN Driver - JDK 1.2.x, JDK 1.3.x, and JDK 1.4.x
    10.2.0 OCI and THIN Driver - JDK 1.2.x, JDK 1.3.x, JDK 1.4.x, and JDK 5.0.x
    11.1.0 OCI and THIN Driver - JDK 1.5.x and JDK 1.6.x
    11.2.0 OCI and THIN Driver - JDK 1.5.x and JDK 1.6.x
    Please note that JDK 1.4 is not supported by the 11 drivers.

  • Interlligent agent problem ,when start it.

    when i start interlligent agent ,it is report that ????.lib has bad magic. how do make deal it.
    thank in advance

    Hi,
    I fixed the java.lang.NoClassDefFoundError problem in the Eclipse 3.1 Plug-in: in the Run > Environment, set the CLASSPATH variable to the directory containing the target program's package hierarchy. Now the Trace program runs ok when invoked from the plug-in.
    However, when I repeated the same configuration in Eclipse 3.0.2, I got the following runtime error.
    Unhandled event loop exception
    Reason:
    com/sun/jdi/connect/VMStartException
    Isn't Eclipse 3.0.2 supposed to behave in the same way? Any help will be much appreciated!
    Sunny

  • Java.lang.NoClassDefFoundError: javelin/jsp/JspFunctionMapper

    I am upgrading from 9.2.1 to 10.3. When attempting access a web app I get the following error in the browser:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: javelin/jsp/JspFunctionMapper
         at jsp_servlet._c4.__clearancehome.(__clearancehome.java:221)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.servlet.internal.WebComponentContributor.getNewInstance(WebComponentContributor.java:223)
         at weblogic.servlet.internal.WebComponentContributor.createServletInstance(WebComponentContributor.java:247)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:255)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:409)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I can take the same war file and deploy and execute in the 9.2.1 environment just fine. Any help would be appreciated.
    rick

    Thanks for the tip. Interestingly, for us this turned out to be a sign of a different problem. We should either not have needed or should have already had access to that class in our classpath. To elaborate further, we encountered this error while upgrading a 9.2.2 domain to 10.3.2. Our upgrade had to involve a manual copy of the domain, for technical reasons. After the copy, we needed to clean out the old servers/<servername>/tmp directory. That solved the NoClassDefFoundError problem for us. I imagine normally that directory is removed when the (old) server shuts down cleanly. So I suspect our old server had not shut down cleanly. We started the upgrade from scratch and removed the tmp directory this time. No problems.
    Will

  • FOP problems...

    Hi,
    I have the following problem. I have an J2EE application that i am starting from Jdeveloper at the embeded OC4J . When an transformation to PDF is called from a servlet in pdf transformer class responsible for transformation there is a call of:
    org.apache.fop.apps.Driver fopDriver = new Driver();
    I receive the following exception:
    java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping is not an ElementMapping     at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)     at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)     at org.apache.fop.apps.Driver.<init>(Driver.java:222)     at bg.vies.business.artifactexport.service.transformer.impl.FOPArtifactTransformer.initializeDriver(FOPArtifactTransformer.java:70)
    etc.
    I am tried to put all libs from fop distribution first in <JDEV_HOME>\j2ee\home\applib and then in <JDEV_HOME>\BC4J\lib but without any success.
    Any ideas....i think it is from class loading...
    Thank you in advance!

    Hi,
    yes it is in my classpath.
    Let me explain in more detail the situation. I have a separate Java project in my workspace that is responsible for processing transformations. It is as a framework for performing transformations. Let's name it FOP_project.
    I have a Web project that depends on FOP_project so I explicitly mark this in project properties as dependecy (Web depends at FOP_project). As you say in the article in FOP_project I set all fop libs, but as one fop-0.20.5 lib where I have added all libs of fop-0.20.5.
    When I ran Web project from JDev and transformation was invoked java.lang.NoClassDefFoundError was thrown for fop.jar and avalon-framework-cvs-20020806.jar, so in order to bypass this NoClassDefFoundError problem I put fop.jar and avalon-framework-cvs-20020806.jar in <JDEV_HOME>\BC4J\lib.
    And then I receive:
    java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping is not an ElementMapping     at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
    etc.
    Do you know what is wrong?
    Thank you!

  • Developing an Eclipse RCP Plugin Project with CE and NWDI

    Hallo,
    I want to know what's the best way to create an Eclipse RCP application and have the sources managed by the NWDI.
    My problem is that development components within a software component can only be plain java projects and not plugin projects. Now I can convert a plugin project to a development component but when I try to build this dc it fails because the needed libraries for this origin plugin project (Plug-In Dependencies) are not available because is it now just a plain java project.
    However I could create another dc with the needed libraries and add this dc as a required dc but then it is not the same as a standard plugin project and I don't know if that could create problems then.
    In case anybody knows how to solve this problems, please give me a hint.
    Fabian

    Hi,
    I fixed the java.lang.NoClassDefFoundError problem in the Eclipse 3.1 Plug-in: in the Run > Environment, set the CLASSPATH variable to the directory containing the target program's package hierarchy. Now the Trace program runs ok when invoked from the plug-in.
    However, when I repeated the same configuration in Eclipse 3.0.2, I got the following runtime error.
    Unhandled event loop exception
    Reason:
    com/sun/jdi/connect/VMStartException
    Isn't Eclipse 3.0.2 supposed to behave in the same way? Any help will be much appreciated!
    Sunny

  • Problems installing on Fedora Core 3, NoClassDefFoundError:PermissionID

    Hello,
    I tried to install JMF on fresh Fedora Core 3 Linux installation. First I installed JDK 1.5.0. While trying to install JMF i got the exception:
    java.lang.NoClassDefFoundError: com/ms/security/PermissionID
    I've beed using JMF on RH9 linux and FC1 with JMF without problems.
    What is going on?
    Best regards,
    Lukasz

    I have found this line in the oraparam.ini file:
    Linux=redhat-Red Hat Enterprise Linux AS release 3,redhat-Red Hat Enterprise Linux AS release 4,redhat-Red Hat Enterprise Linux ES release 3,redhat-Red Hat Enterprise Linux ES release 4,SuSE-9
    will it work if I add something like Fedora Core 4 there?

  • HELP:: jsse1.0.3 problem with jdk1.3.1(java.lang.NoClassDefFoundError)

    Hi,
    I am now working with jsse1.0.3 and jdk1.3.1(I can not use the new jdk version, because the system I developed is based on jdk1.3.1). what makes me strange is that I can compile my program without problem, but when I run it, it always report error.
    my source code is :
    import java.security.*;
    import javax.net.ssl.*;
    System.out.println("Classpath ->"+System.getProperty("java.class.path"));
    SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    SSLSocket SSLcontrol_connection = (SSLSocket)factory.createSocket(ftp_server, 990);
    SSLcontrol_connection.startHandshake();
    ..........the erroe message is:
    Classpath ->O:\hpovams_dev_sd40\sd\lib\JClark.zip;O:\hpovams_dev_sd40\sd\lib\jcert.jar;O:\hpovams_dev_sd40\sd\lib\jnet.jar;O:\hpovams_dev_sd40\sd\lib\jsse.jar;..........
    java.lang.NoClassDefFoundError
    at javax/net/ssl/SSLSocketFactory.a (DashoA12275)
    at javax/net/ssl/SSLSocketFactory.getDefault (DashoA12275)It is not a classpath problem as I have included the 3 jar files into classpath,.
    I also tried to add
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());before create SSLSocketFactory, then it report that
    java.lang.NoClassDefFoundError
         at com/sun/net/ssl/internal/ssl/Provider.<init> (DashoA12275)My developing GUI is eclipse 3.1, and the OS is winXP.
    Please give me some help, thank you very much.

    oh. I have found the problem. Acturally, the running enviroment is under microsoft j++, so it could only support jdk1.1, but jsse only support from jdk1.2, so that's the problem why it said that no class found.
    Now I only found that oracle has a solution for SSL which support
    jkd1.1(SUN's jsse package only support from jdk1.2). It described the
    method and sample code in Oracle Advanced Security Administrator's
    Guide Release 2 (9.2)
    (http://www.stanford.edu/dept/itss/docs/oracle/9i/network.920/a96573/a...)

Maybe you are looking for

  • Error when import ABAP stage for Database Instance Installation

    I got error for DI Installation for ERP2005 (NW2004sSR2) on Windows 2003 R2, MSSQL2005 on IA64. Below is are logs. Please help. Thanks in advance. import_monitor.java.log [code] java version "1.4.2_13" Java(TM) 2 Runtime Environment, Standard Edition

  • Error in run oracle form

    hi all:- i have an error when i run a simple form this return an error in oc4j configuration when i run the form , it open the explorer(firefox) for one second and close and return the following error in oc4j:- 09/09/13 11:37:04 FormsServlet init():

  • Having network printer connection problems using a Macbook Pro

    I hope a "greater mind" can suggest a solution to the following problem: Up until 2 days ago, I was successfully connected to the network printer at my office using both my Macbook Pro at work and at home (both wirelessly, OS 10.6.8). From yesterday,

  • Image Capture won't recognize camera under other user log in

    Image Capture won't recognize cameras under another other users log in on the same computer even though it works perfectly under the main user log in. Can some body hep me pleeze? What am I doing wrong or how can I let my daughter use her digital cam

  • ParseQueryString

    I'm using the now deprecated parseQueryString() to retrieve name/value pairs from a given request. According to the API doc, '+' characters are converted to spaces. But a value in my request happens to have a '+' in it that I need to keep: 'myKey=myD