Class not found when using JvmModelInferrer

I am trying to transform one of my language elements to a class using the ModelInferrer approach. This generated class should extend a class (AbstractMatcher) from an external project. The external project is added to the build path of the Xtext model project as an external class folder and to the run-time project in the same way. It should be noted that the external project is a plug-in built in Helios SR1. I am able to reference the AbstractMatcher class from the xtend source code (it is available for auto complete and imported correctly), but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError when trying to add a superType to the generated class. If I substitute the AbstractMatcher with a dummy like java.util.ArrayList everything works fine. I have tried to make a simple Java class inside the runtime Java project and reference the AbstractMatcher from it and this also works fine. Everything seems to be able to find the offending class except the ModelInferrer.
import external.package.AbstractMatcher
def dispatch void infer(Matcher matcher, IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) {
acceptor.accept(matcher.toClass("matchers." + matcher.name.toFirstUpper + "Matcher")) [
superTypes += typeRef(AbstractMatcher) // <---exception here
Stack trace:
java.lang.NoClassDefFoundError: org/talend/designer/xmlmap/figures/treetools/zone/matchers/AbstractMatcher
at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:78)
at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:1)
at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator$1.run(JvmModelAssociator.java:397)
at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.installDerivedState(JvmModelAssociator.java:407)
at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:240)
at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver.getEntryPoints(LogicalContainerAwareBatchTypeResolver.java:44)
at org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver.getTypeResolver(DefaultBatchTypeResolver.java:63)
at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:49)
at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:1)
at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver.doResolveTypes(CachingBatchTypeResolver.java:46)
at org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver.resolveTypes(AbstractBatchTypeResolver.java:69)
at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:71)
at org.eclipse.xtext.xbase.resource.BatchLinkableResource.resolveLazyCrossReferences(BatchLinkableResource.java:165)
at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:528)
at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:234)
at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:115)
at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:248)
at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:228)
at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:123)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I sense that this is actually an OSGi problem, since I see this is how typeRef tries to find the reference, but I don't know how to get around it. I am not able to add the external plugin containing the AbstractMatcher class as a dependency and I'm not sure if it would be possible due to different Eclipse versions (Helios vs Luna).

On 13.07.15 12:39, Zeljko Vukovic wrote:
> but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError
> when trying to add a superType
Does it work for you if you refer to the AbstractMatcher from Java-code
that is in a project in the runtime instance?
Best,
Sebastian

Similar Messages

  • Lookout 6.0.1.: Class Not Found when trying to open project on another PC

    I am using the same version on both PC's, but when I move the file over and run it, I get "Class not found!". Then "Error running process file".When running the lookout source file I get the following:
    Lookout Process File Compiler Version 6.0.1 (build 1)
    Copyright National Instruments 1992-2004  All rights reserved.
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(324): error: Class not found: DirectLogic
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(1977): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(57): error: Object is not defined: DL1
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Object is not defined: Meter1
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Object is not defined: Meter2
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Object is not defined: Meter3
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Object is not defined: Meter4
    I have also tried to open on 6.1 with similar results.
    I am familiar with lookout, however I have taken this project over so I am not sure what I need to do from here.

    There are two object (DirectLogic and Meter) that are not present on the amchine you are moving the process to.   If the same version of Lookout, you might be able to just copy the cbx files.
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Error oracle.sql.* and oracle.jdbc.driver.* not found when using oracle as a database

    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama

    Hi Anupama,
    First of all I would be surprised if you would not like to use the connection pooling feature of weblogic (in which case you might not be needing the import the classes directly), and would like to open direct connections to your database. Anyways for doing that I would recommend you to check out the readme doc that ships
    along with the jdbc oracle (classes12.zip etc). I am giving an excerpt over here:
    These are a few simple things that you should do in your JDBC program:
    1. Import the necessary JDBC classes in your programs that use JDBC.
    For example:
    import java.sql.*;
    import java.math.*;
    2. Register the Oracle driver before before calling other JDBC APIs.
    (This is not needed if you are using the JDBC Server-side Internal
    Driver because registration is done automatically in the server.)
    To register the Oracle driver, make sure the following statement
    is executed at least once in your Java session:
    DriverManager.registerDriver(
    new oracle.jdbc.driver.OracleDriver());
    3. Open a connection to the database with the getConnection call.
    Different connection URLs should be used for different JDBC
    drivers. The following examples demonstrate the different URLs.
    For the JDBC OCI8 Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:oci8:@<database>",
    "scott", "tiger");
    where <database> is either an entry in tnsnames.ora or a SQL*net
    name-value pair.
    For the JDBC Thin Driver, or Server-side Thin Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:thin:@<database>",
    "scott", "tiger");
    where <database> is either a string of the form
    <host>:<port>:<sid> or a SQL*net name-value pair.
    For the JDBC Server-side Internal Driver:
    Connection conn = DriverManager.getConnection(
    "jdbc:oracle:kprb:");
    Note that the trailing ':' character is necessary. When you use
    the Server-side Internal Driver, you always connect to the
    database you are executing in. You can also do this:
    Connection conn
    = new oracle.jdbc.driver.OracleDriver().defaultConnection();
    Hope this helps,
    Thanks,
    Anupama wrote:
    I am using oracle as database and weblogic 4.5. I have copied the classes12.zip file in lib directory of weblogic. I am getting the error that oracle.sql.* and oracle.jdbc.driver.* not found when i am importing these packages in a jsp file. what i need to do to import oracle driver packages?I put it in the classpath also.
    Please Advice!
    Thanks in advance
    AnuPama--
    Apurb Kumar

  • Class not found only using browser.

    I can not run any of my java programs in my browsers. They work fine using the "java" command in a dos window or using the "appletviewer" command. But when I try to view them in a browser, the page appears to load fine but I get no program and the status window of the browser displays a class not found msg.
    I've checked spelling, location, capitalization. Everything works fine outside the browsers but will not view in a browser. We had the same problem in school and the instructor just said to stick with the appletviewer for class.
    I am running JDK1.2. Any suggestions?
    John

    Maybe you should try a newer JAVA version.
    I had a similar problem, but with a (too) newer JAVA version.
    Problem:
    You're compiling your applets with a quiet modern compiler (i.e. Netbeans Version 3.5.1)
    You are able to compile your applets without any problems but if you try your applets in "real life", the browsers can't interpret your applets [class not found]. (I tested Internet Explorer 6.0 and Netscape Navigator 4.7)
    So you need a plugin for the new JAVA environment because the JAVA environment of the browser is older than that which the applet needs.
    Well, you have the choice to demand to every user of your applet to download the new Java Runtime Environment, but then don't wonder why nobody visits your site!
    But, don't worry: I figuered out another solution, that Netbeans (www.netbeans.org) allows to compile in different JAVA versions.
    Solution:
    What you have to do is:
    - Install a previous version of JDK (i.e. JDK 1.3 - I would suggest, lower versions don't work with Netbeans 3.5.1 and JDK 1.3 is enough for IE 6.0 and NN 4.7, which I tested)
    - Go into the "bin"-directory of Netbeans (i.e. c:/netbeans3.5.1/bin)
    - Open the file "ide.cfg" (with notepad or any other texteditor)
    - You see a line like: jdkhome "C:\java\j2sdk1.4.2" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - Change the path to your other JDK you wish, like: jdkhome "C:\java\jdk1.3" -J-Xmx96m -J-Xss1024k -J-Xms24m -J-Xverify:none
    - That's it, you can compile your applets in a previous version of JAVA so that "older" browser user don't have to install a plugin for the new JAVA environment.
    Have fun!
    If you have any questions I would be pleased to help you.
    If this tip helped you already I would be pleased if you would send me a quick email with your experience.
    My email: [email protected]

  • Class not Found when accessing Proxy class from backing bean in VC.

    Hi All,
    I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
    I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
    JDev : 1.1.1.4
    Thank you.
    Regards
    PP.

    Hello Arun,
    Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
    I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
    Thanks
    PP.

  • Class not found when I run JSPs

    I set up and can run JSPs in iPlanet 4.1 SP9 on NT. But if I use anything
    such as Date() I get a Server Error and a Class Not Found in the error log.
    Can someone tell me how to confire where the .class and .jar support files
    go, or where do I put them. In the JDK install directory or in the iPlanet
    install directory.
    Thanks, Gary

    Something to note, you must have superuser priveleges to run ibconf.
    Check out this document about installing a PCI-GPIB on a Solaris machine. There is a section in it on page 9 about configuring the software with ibconf.
    If you still have problems after reading through this repost.
    JenK

  • Jre not found when using Loadjava command

    Hello,
    I am getting an error when I run the below load java command on a 9.2.0.8 database on Sun/Solaris platform.
    Command:
    loadjava -user user/[email protected]:1529:OLS2 -thin -force -resolve -verbose filename.jar
    Error:
    /olcdbt/u01/app/oracle/product/9.2.0.8/bin/loadjava: /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/jre: not found
    When I tried creating a new Jre soft link from $ORACLE_HOME/bin like : 'ln -s $ORACLE_HOME/jdk/jre/bin/java $ORACLE_HOME/jdk/jre/bin/jre' its giving a new error:
    jre was not found in /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/../bin/sparc/native_threads/jre
    Strange thing here is that this was working fine in 9206 home and after upgrading to 9208 1 month back I am facing this issue. I am sure I am missing something here but not sure what.. Please help me resolve this issue.
    Regards,
    Raji.

    Hi,
    Even though the problem manifests when using loadjava, it has noting to do with the embedded Java VM in the database; it's rather an install /upgrade problem.
    Perhaps the followinf post can help: http://64.233.167.104/search?q=cache:h3XhGo2kZaYJ:forums.oracle.com/forums/thread.jspa%3FthreadID%3D43105+site:oracle.com+%22JRE+not+found%22&hl=en&ct=clnk&cd=9&gl=us
    Kuassi http://db360.blogspot.com

  • Class not found when generating deployment xml in MW

    any ideas anyone?
    java.lang.RuntimeException: Class not found:
         at oracle.toplink.workbench.persistence.BldrProjectToRuntimeProjectConverter.convert(Unknown Source)
         at oracle.toplink.workbench.ui.BldrSession.generateDeploymentXML(Unknown Source)
         at oracle.toplink.workbench.ui.BldrMainView.generateDeploymentXMLForSelectedProjects(Unknown Source)
         at oracle.toplink.workbench.ui.BldrActionManager$61.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Hi,
    'Class not found' in the Mapping Workbench usually means that one of your classes was not included in the 'class path' panel. In the Mapping Workbench select the project -&gt; Class Path -&gt; Add Entry...
    For example, in my case I have Person.class, which is part of the package com.toplink.course. 'C:\dev\tl400\classes\com\toplink\course&gt;Person.class'
    So in the Mapping Workbench -&gt; Class Path I put 'C:\dev\tl400\classes'
    Raanan.

  • Class not found while using rmic.exe

    This is my first RMI program, so bear with me.
    After compiling both my object interface class file and my object implementation file (both with no errors), i move on to create the stubs/skeletons (or whatever they are called). After executing rmic MyObjImplementation, i get an error saying the following - "error: Class InputDeviceImpl.class not found."
    I dont understand this, the .class file is indeed in the directory, and i know the rmic.exe sees it because i have tried to type "rmic *.class" and it gives the same error for every .class file in the directory.
    whats going on?
    -joey

    well i figured out to compile the program, but i still dont understand what happened. I read the tutorial on this website, and it told me to start the rmi registry first. So does this mean that i have to do this each and everytime?

  • Getting error : Jre not found when using Loadjava command

    Hi folks,
    I am getting an error when I run the below load java command on a 9.2.0.8 database on Sun/Solaris platform.
    Command:
    loadjava -user user/[email protected]:1529:OLS2 -thin -force -resolve -verbose filename.jar
    Error:
    /olcdbt/u01/app/oracle/product/9.2.0.8/bin/loadjava: /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/jre: not found
    When I tried creating a new Jre soft link from $ORACLE_HOME/bin like : 'ln -s $ORACLE_HOME/jdk/jre/bin/java $ORACLE_HOME/jdk/jre/bin/jre' its giving a new error:
    jre was not found in /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/../bin/sparc/native_threads/jre
    Strange thing here is that this was working fine in 9206 home and after upgrading to 9208 1 month back I am facing this issue. I am sure I am missing something here but not sure what.. Please help me resolve this issue.
    Regards,
    Raji.

    Dear my collegue, the best place to ask this question is JVM forum.
    Java in the Oracle Database

  • JAXB 1.0 Final: jaxb.properties not found when using custom classloader

    JDK 1.3.1 is being used.
    The scenario:
    1) jaxb jar files, jaxb generated files and application files loaded in default class loader works, however
    2) jaxb jar files, jaxb generated files and application files loaded in a custom class loader generate the following exception:
    javax.xml.bind.JAXBException: Unable to locate jaxb.properties for package XXX
    To demonstrate here are two sample applications: a Launcher app whose job it is to start apps and a sample App1 application who needs JAXB.
    If launch is placed into a jar file named launch.jar and App1 is placed into a jar file named app1.jar (with a JAXB generated package), and both jar files are placed in a directory containing all the JAXB 1.0 jar files (dom, sax, namespace, etc) and the system is started with the following:
    jre\bin\java -cp launch.jar; testLaunch.launch
    the exception occurs.
    By way of comparison, if App1 is started directly with the following:
    jre\bin\java -cp app1.jar;jax-qname.jar;jaxb-xjc.jar;jaxb-ri.jar;jaxb-libs.jar;jaxb-api.jar;dom.jar;sax.jar;jaxp-api.jar;xercesImpl.jar;namespace.jar;ant.jar;xalan.jar testApp.app1
    the exception does not occur.
    Any help would be greatly appreciated.
    package testLaunch;
    import java.net.*;
    import java.io.*;
    public class launch extends javax.swing.JFrame
        private static URLClassLoader app1ClassLoader_; 
        private static Class  app1EntryClass_ = null;
        private static final String app1MainClassName_ = "testApp.app1";
        private Object appObj_ = null;
         static public void main(String args[])
              try {
                System.out.println("Launch Main");               
                new launch();          
                  System.exit(0);
              catch (Throwable t) {
                   t.printStackTrace();
                   System.exit(1);
         public launch()
            if (app1ClassLoader_== null)
                loadAppClassLoader();
            try{
                if (app1EntryClass_ == null)
                    app1EntryClass_ = app1ClassLoader_.loadClass(app1MainClassName_);
                if (app1EntryClass_ == null)
                    System.out.println(app1MainClassName_ + " was not found");
                else
                    appObj_ = app1EntryClass_.newInstance();
            catch(ClassNotFoundException x){
                x.printStackTrace();
            catch(Exception x){
                x.printStackTrace();
        private static void loadAppClassLoader()
            String jarPath = jarPath = System.getProperty("user.dir");
            System.out.println("jar path is: " + jarPath);
            try{
                File jarfile1 = new File(jarPath+File.separator+"app1.jar");
                File jarfile2 = new File(jarPath+File.separator+"dom.jar");
                File jarfile3 = new File(jarPath+File.separator+"jaxp-api.jar");
                File jarfile4 = new File(jarPath+File.separator+"jaxb-api.jar");
                File jarfile5 = new File(jarPath+File.separator+"jaxb-xjc.jar");
                File jarfile6 = new File(jarPath+File.separator+"jaxb-ri.jar");
                File jarfile7 = new File(jarPath+File.separator+"jaxb-libs.jar");
                File jarfile8 = new File(jarPath+File.separator+"jax-qname.jar");
                File jarfile9 = new File(jarPath+File.separator+"sax.jar");
                File jarfile10 = new File(jarPath+File.separator+"xercesImpl.jar");
                File jarfile11 = new File(jarPath+File.separator+"namespace.jar");
                File jarfile12 = new File(jarPath+File.separator+"xalan.jar");
                File jarfile13 = new File(jarPath+File.separator+"ant.jar");
                if (!jarfile1.exists())
                    System.out.println("**ERROR " + jarfile1 + " does not exist!");
                app1ClassLoader_ = new URLClassLoader( new URL[]{jarfile1.toURL(),
                                                                jarfile2.toURL(),
                                                                jarfile3.toURL(),
                                                                jarfile4.toURL(),
                                                                jarfile5.toURL(),
                                                                jarfile6.toURL(),
                                                                jarfile7.toURL(),
                                                                jarfile8.toURL(),
                                                                jarfile9.toURL(),
                                                                jarfile10.toURL(),
                                                                jarfile11.toURL(),
                                                                jarfile12.toURL(),
                                                                jarfile13.toURL()} );
            catch(Exception x){
                x.printStackTrace();
                return;
    package testApp;
    import javax.xml.bind.*; // JAXB classes
    import myGeneratedJAXBFiles;
    public class app1 extends javax.swing.JFrame
         static public void main(String args[])
              try {
                System.out.println("App1 Main");               
                new app1();           
                  System.exit(0);
              catch (Throwable t) {
                   t.printStackTrace();
                   System.exit(1);
         public app1()
            try
                JAXBContext jc_ = JAXBContext.newInstance( "myGeneratedJAXBFiles" );
                System.out.println("Successfully loaded JAXB Context");          
            catch (JAXBException jbe)
                jbe.printStackTrace();

    I'm doing something very similar. In fact my launcher is also stored in launcher.jar. It will start any application on the classpath and load dependencies jars located in the specified directory.
    The first thing you must do is specify the classloader when constructing the jaxb context:
    JAXBContext jc = JAXBContext.newInstance(xmlPackage, getClass().getClassLoader());
    After this I was still raning into the "jaxb.properties not found" exception in some situations. Basically if the class using the jaxb files is located in the same jar as jaxb.properties everything worked fine. However if the class using the jaxb objects was located in a different jar it did not work.
    I had to add the following early in the execution of the application that load the plugins to get things working correctly:
    Thread.currentThread().setContextClassLoader(jarDirClassLoader);
    As far as I can tell JAXB using the Context class loader to find the jaxb.properties file.
    I'm using JAXB 1.1
    I hope this helps!

  • Webutil bean not found when using call_form with no_share_library_data

    Hi,
    I have two Forms modules and i navigate from Form A to Form B using a call_form.
    If i call Form B with NO_SHARE_LIBRARY_DATA param, i get a webutil error: "oracle.forms.webutil.file.filefunctions bean not found"
    If i call it with SHARE_LIBRARY_DATA, there no error and my webutil function works as expected.
    Webutil is used in our application are works well so i don't think that it's webutil config problem.
    Any idea?
    Tx

    Thanks for your answer.
    Now I'am a little bit further with my debugging but it's more strange! forget the share_library_data...
    I start a common form with webutil.pll attached and i will use the Webutil_File.File_Exists function for example
    if i call it in the WNFI or WNBI, i get the error
    if i call it via a push-button WBP for example, it works!
    below the java console ouput when i get the error and after pushing ok on the error
    Loading http://sdp6:7778/sdp-jar_dev/frmwebutil.jar from JAR cache
    Loading http://sdp6:7778/forms/java/frmall_jinit.jar from JAR cache
    RegisterWebUtil - Loading WebUtil Version 10.1.2.2
    Loading http://sdp6:7778/sdp-jar_dev/hst65.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/sdpimage.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/host.jar from JAR cache
    Loading http://sdp6:7778/sdp-jar_dev/jacob.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La version Forms Applet est : 10.1.2.2
    2008-janv.-10 18:02:24.711 WUI[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.727 WUI[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.727 WUF[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.727 WUF[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.743 WUH[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.743 WUH[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.743 WUS[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.743 WUS[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.758 WUT[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.758 WUT[SessionFunctions.init()] Max Transfer chunk size set to 4048
    2008-janv.-10 18:02:24.758 WUT[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUO[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUO[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUL[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUL[VBeanCommon.getIPAddress()] 172.22.35.17
    2008-janv.-10 18:02:24.977 WUB[VBeanCommon.findLocalHost()] obtaining LocalHost info from InetAddress
    2008-janv.-10 18:02:24.977 WUB[VBeanCommon.getIPAddress()] 172.22.35.17
    AFTER PUSH OK on the error
    2008-janv.-10 18:07:12.977 WUI[getProperty()] Getting property WUC_BEAN_VERSION
    2008-janv.-10 18:07:12.977 WUI[getProperty()] Value of WUC_BEAN_VERSION=10.1.2.2
    2008-janv.-10 18:07:12.993 WUT[setProperty()] Setting property WUC_SRV_LOGGING to 0
    2008-janv.-10 18:07:12.993 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.jacob.dll
    2008-janv.-10 18:07:12.993 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[loadSettings()] Local properties file loaded
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.08 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.JNIsharedstubs.dll
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.08 WUT[setProperty()] Setting property WUC_GET_LOCAL_PROPERTY to syslib.d2kwut60.dll
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Getting property WUC_GET_LOCAL_PROPERTY
    2008-janv.-10 18:07:13.08 WUT[getProperty()] Value of WUC_GET_LOCAL_PROPERTY=1.0
    2008-janv.-10 18:07:13.24 WUB[setProperty()] Setting property WUC_SRV_LOGGING to 0
    AFTER PUSH ON THE BUTTON THAT CALL THE SAME FUNCTION
    2008-janv.-10 18:07:34.758 WUF[setProperty()] Setting property WUF_FILENAME to c:\temp\1.txt
    2008-janv.-10 18:07:34.758 WUF[setProperty()] Setting property WUF_FILE_ATTRIBUTE to 1
    2008-janv.-10 18:07:34.758 WUF[getProperty()] Getting property WUF_FILE_ATTRIBUTE
    2008-janv.-10 18:07:34.758 WUF[getProperty()] Value of WUF_FILE_ATTRIBUTE=TRUE

  • Fonts not found when using Xvfb

    Hi all,
    I keep encountering "fonts specified in fonts.properties not found" whenever I execute rwserver.sh server=XXX.
    fyi, I'm running Solaris8 on Sun SPACE machine. I use Xvfb downloaded from Oracle to allow report server to run after I logoff from the session. I realised that the report sever I created manually will die prematurely if I log out from the session when I use the "default" Xserver provided by Solaris.
    And prior to running rwserver.sh I set the DISPLAY such DISPLAY=:1.0; export DISPLAY.
    pls advise.

    I get the same errors on my Solaris system with xvfb, but it doesn't keep anything from working. My reports server comes up and works fine.

  • Error 48: File or folder not found when using photomerge panorama - imac photoshop elements 10

    Any help is appreciated.  Followed the photomerge panorama instructions and got error 48: file or folder not found.....line 16 ...
    using photoshop elements 10 on imac with OSX 10.8.2
    Thx

    Have you recently updated your Operating system? Please try repairing permissions for your hard disk.
    Please check the help document to know more about repairing permissions http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html#main_Solutio n_3__Repair_Disk_Permissions

  • E71 GPS 'route not found' when using device only s...

    Hi, earlier today I was getting help to not get AT&T network data charges.  I have set everything up per direction but now when I try to search for something and navigate to it I get 'Route not found'.  Any ideas how to fix this?
    Solved!
    Go to Solution.

    Start with a simple and obvious search string. If you give us an example of a search string that did not work we could have a look at it for you.

Maybe you are looking for

  • How to broadcast both 5.0 Ghz and 2.4 Ghz?

    I have a computer science background but not much knowledge of computer networks and installation. I just installed a cisco 3602i router connected to a 2500 wireless controller. Everything is working fine, the SSID is broadcasting and users can conne

  • Software Updates for Remote PXI System/DAQ-mx Self Test

    1) In MAX, I'm attempting to run the Labview Realtime Software Installation Wizard. When I select the software for install, I get an error "Cannot Process Install because other Dependencies are required: Labview RT 7.1.1". What should I do to correct

  • How do I install the firmware update for LinkSys E900 router?

    Hi, I'm using Mac 10.7.5 and a few months back had purchased the E900 wireless router.  It has firmware 1.0.03 installed and I noticed there is a 1.0.04 update.  I downloaded the update, which is a .bin file, but I do not have a CD burner nor access

  • Standby config in 6509

    Hi, How can I configure 6509 switch to have a standby capabalities? How does it work? (show standby). Thanks. Cheers! Gagamboy

  • Dear iWeb users with problems publishing

    I have run the gamete of error messages today, all day, and still.But I have been able to publish all I have tried to publish today. The program just seems determined to undermine my confidence. So if you keep getting error messages, please check you