Problems ressources bundles in a jar

Hi !
I have a ".propeties" file wich I acces from a java application.
Launched from Eclipse : no prb !
Launched form a exectutable jar : MissingRessourcesException.
But the ressource is in the jar !
Here is the code :
import java.util.Locale;
import java.util.ResourceBundle;
public class LabelsRB {
private static Locale loc = Locale.ENGLISH;
public static ResourceBundle rb = null;
public static String name = null;
static {
name = "Labels_";
rb =
ResourceBundle.getBundle(
"editor.ressources.Labels_" + loc.getLanguage());
public static String getString(String key) {
try {
return rb.getString(key);
} catch (Exception e) {
System.err.println(
"Erreur Bundle " + name + " " + key + " non trouve");
return new String("####");
Thanks !
Message was edited by:
dideux

Is there a problem with the way you created the jar file? Can you list your manifest file?

Similar Messages

  • Problem in bundling gifs in jar file.

    Hello all,
    I am having following package structure.
    /* For example */
    com.course.explorer;
    com.course.explorer.toolbar;
    and an image directory having all images in
    com/course/explorer/images
    Now to associate an ImageIcon with a button in toolbar package.
    /* for example */
    code from NewCourseBut.java present in com.course.explorer.toolbar package.
    ImageIcon img = new ImageIcon(
    getClass().getResource("../images/new_course.gif"));
    Now my problem is when I am trying to run a jar file (containing all my code+images) it throws NullPointerException.( Unable to find the image new_course.gif)
    I am not able to understand wher I am going wrong.
    Can anyone please help me out in finding my fault.
    Smiles,

    Hello All,
    Is there any standard way of incorporating gifs in an Jar file.
    Consider that one is extracting an ImageIcon for a Toolbar button and for the same the gifs is present in an "images" directory.
    I did tried alot of permutation & combinations still no luck.
    How one need to proceed for same ?
    Any guidance is welcome.
    Smiles,

  • Probleme application bundle javaFx mac osx

    Hi,
    I have developed an javafx application (netbeans 7.1.2). When I execute the jar file in the dist folder, the application launch and works fine.
    I tried to bundle it with jar bundler but when I launch the application I have this message :
    JavaFX 2.1.0 is required to view this content but JavaFX. Get the JavaFX runtime from java.com/javafx and run the installer. Then restart the application.
    I can't understand why...

    Hi,
    I have developed an javafx application (netbeans 7.1.2). When I execute the jar file in the dist folder, the application launch and works fine.
    I tried to bundle it with jar bundler but when I launch the application I have this message :
    JavaFX 2.1.0 is required to view this content but JavaFX. Get the JavaFX runtime from java.com/javafx and run the installer. Then restart the application.
    I can't understand why...

  • Problem trying to cataloge a jar file OBPM 10.3.1.0

    Hi,
    I´m having problems when i cataloge a jar file, in OBPM suite 10.3.1.0, it is an itext jar file. I´ve been trying to cataloge older and newer versions of the Itext jar file but there´s no difference in the outcome.
    I create the external resource, but when i try to cataloge the package it doesn´t work
    The message it returns is:
    [Error] Excepción de introspección: Internal Error: java.lang.VerifyError: (class: com/lowagie/text/RectangleReadOnly, method: <init> signature: (Lcom/lowagie/text/Rectangle;)V) Bad access to protected data..
    is there anything i can do to solve this problem?..
    Thanks for your time
    Alfredo Butrón
    Alkimia Consultores

    Hi Dan,
    I´ve done what you told me, i buid a helper class to invoke the iText classes ,and i just cataloge the helper class keeping all the jar files only in the external resource
    When i run my class out of OBPM it works fine, but when i try to invoke my class from OBPM with the same jar classes i use in a external way i get the following message:
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending(Z)V
         at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:482)
         at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:381)
    i change the version of iText.jar many times and i get the same message..
    thanks in advance
    ALfredo

  • How do I read the images I bundled into the jar file?

    I just wrote an applet that uses
         Toolkit tk = Toolkit.getDefaultToolkit();
         tk.getImage("blah.gif");to load a bunch of image files. The class file and gif images were bundled into a jar file to minimize the number of connections the browser has to make to the server.
    The applet works fine in appletviewer but trips a java.security.AccessControlException: access denied (java.io.FilePermission select.gif read) when run in a browser. I know you normally use Applet.getImage(URL) to load images but wont that circumvent the JAR file and make a seperate connection to the server for each image? That would defeat the purpose of using a JAR file.
    How do I access the image files I bundled into the JAR file?

    From your Applet class, write the following:
    URL imgUrl = getClass().getResource("blah.gif");
    Image img = getImage(imgUrl);The returned URL will be from the Applet class ClassLoader, which will look into the specified archive (jar) file.

  • Problems with loading Ressources out of a jar file

    Hi Folks !
    My current job for my university is to make some Java programms runnable as a WebStart Application. With most of the programms this was no problem. But i have a problem with one.
    The gui of the program loads some icons out of the jar file with the following code:
    try {
          openIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/open.png"));
          generateIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/generate.png"));
          editIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/edit.png"));
          propertiesIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/properties.png"));
          alphabetIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/alphabet.png"));
          cutIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/cut.png"));
          saveIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/save.png"));
          helpIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/help.png"));
          aboutIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/about.png"));
          exitIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/exit.png"));
          startIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/start.png"));
          stopIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/stop.png"));
          preferencesIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/preferences.png"));
          okIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/ok.png"));
          noIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/no.png"));
          clearIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/clear.png"));
          plusIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/plus.png"));
          minusIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/minus.png"));
          overlapIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/overlap.png"));
          canselIcon = new ImageIcon(ClassLoader.getSystemResource("guissstester/icons/cansel.png"));
        catch(NullPointerException e){
          JOptionPane.showMessageDialog(frame,
              "There was an error while loading icon files. Probably the needed icon files are not present.",
              "Missing icon files!", JOptionPane.ERROR_MESSAGE);
        }When i start the program as a normal jar with
    java -jar ssstester.jarAll Icons are loaded normaly. But when i start it as a WebStart Application i get the catch (NullPointerException e) error message "There was an error while loading icon files. Probably the needed icon files are not present. Missing icon files!".
    So where is the problem ? Don't know if it is important, but the Application gets full rights in the jnlp File
    <security>
        <all-permissions/>
    </security>Greetings and sorry for my horrible english,
    Christoph

    Thread.currentThread().getContextClassLoader().getResource(imageFilePath); to load the images than the one you are using right now
    Edited by: Mayya on Jun 17, 2008 4:34 AM

  • Deployment problems when using several ejb-jar files

    Hello All,
    I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
    Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
    Thank you,
    PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

    Hi ,
    It would help if you could post the relevant snippets of your
    ejb-jar.xml. In general, you definitely shouldn't use jndi-name
    for any of the linking information. jndi-name is not part of the
    standard deployment descriptor. The syntax for the ejb-link is
    [ejb-jar uri]#ejb-name
    K

  • Problem with HelpSet in a jar file

    In our application, the content of the html-pages of the help
    set is not displayed ( the index is ! ) if we put the help set
    in a jar file.
    Withour using a jar file, it works fine.
    The problem appeared with all JavaHelp versions I tried (up to 2.0 beta)
    and using JREs >= 1.3.1_0x. Its funny that it works fine with 1.3.1
    Capitels in the file names are NOT the problem.
    Can anybody help me ?
    Do I have to include somethingh in the MANIFEST.MF file of
    the jar ? If so, what ?

    Check the case of the file names such as map.jhm File names are not case sensitive when in a jar file.

  • Problem loading image icons from jar

    I have created an Applet , that works as an application too.I created the certificate the jar, with the images and the classes, i signed it... The html page is working fine as the exe i have made from the jar, but ONLY if the folder with the images is in the same directory!!!I have searched in java and other forums for an answer that fits but..
    Here is a sample of my code.
    images[0]=new ImageIcon((Applet15.class.getResource("/palaio/Image8.jpg")));
    images[1]=new ImageIcon((Applet15.class.getResource("/palaio/Image22.jpg")));
    images[2]=new ImageIcon((Applet15.class.getResource("/palaio/Image30.jpg")));
    images[3]=new ImageIcon((Applet15.class.getResource("/palaio/Image36.jpg")));
    images[4]=new ImageIcon((Applet15.class.getResource("/palaio/Image42.jpg")));
    images[5]=new ImageIcon((Applet15.class.getResource("/palaio/Image63.jpg")));
    public Applet15() {
          private void jbInit() throws Exception {
      public String getAppletInfo() {
        return "Applet Information";
      public String[][] getParameterInfo() {
        return null;
      public static void main(String[] args) {
        Applet15 applet = new Applet15();
        applet.isStandalone = true;
        Frame frame;
        frame = new Frame();
        frame.setTitle("Applet Frame");
        frame.add(applet, BorderLayout.CENTER);
        applet.init();
        applet.start();
        frame.setSize(450,400);
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
        frame.setVisible(true);Thank you!!

    This tutorial should resolve the problem
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/data.html

  • Problem may be with saaj.jar and AXIS,WAS,WSAD

    Hi,
    I have successfully developed and deployed an EJB using WSAD 5.1.2's WebSphere 5.0 Test Environment. I have even able to access the EJB using UTC(Universal Test Client) in WSAD and by launching the j2ee client module using
    WebSphere lauchClient program.
    Basically I have below directory structure:
    a.ear
    --|-----axis.war
    -----------|------ lib
    --------------------|--- all axis related jars are here
    --|-----demoEjb.jar (has java jar dependencies set to axis.war\lib jars
    I have now exposed this ejb as web service using AXIS 1.2 RC2 deployed as web module inside WSAD. This web service is properly exposed as web service as I can see it and access its wsdl when I access axis web services.
    Now I have written a standalone-outside-wsad web service client that uses AXIS stubs and when I try to consume to this ejb web service I am getting below error.
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (500)Internal Server Error
    faultActor:
    faultNode:
    faultDetail:
    {}:return code: 500
    Error 500: class org.apache.axis.SOAPPart does not implement interface org.w3c.dom.Document
    {http://xml.apache.org/axis/}HttpErrorCode:500
    (500)Internal Server Error
    at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:663)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94)
    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
    at org.apache.axis.client.Call.invoke(Call.java:2702)
    at org.apache.axis.client.Call.invoke(Call.java:2378)
    at org.apache.axis.client.Call.invoke(Call.java:2301)
    at org.apache.axis.client.Call.invoke(Call.java:1758)
    at com.sosnoski.test.DemoBindingStub.getAccountHistory(DemoBindingStub.java:194)
    at com.sosnoski.test.Client.query(Client.java:63)
    at com.sosnoski.test.Client.main(Client.java:100)
    I read somewhere with axis mailing lists that it is problem related to axis's saaj.jar and wsad's websphere 5.0
    test environment's webservices.jar so I even replaced my wsad installation's D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\webservices.jar with
    saaj.jar but this did not help and even I have added an references to saaj.jar usign wsad's websphere 5.0 test environment
    environment tab->ws.ext.dirs property and even this did not help.
    Can anyone please tell me why is error occurring and how to solve it ?
    Thanks & Regards,
    Kumar.

    Yes :-)
    At the ear level, set the Classloader mode to PARENT_FIRST and WAR classloader policy to APPLICATION. At the axis web module level, set the Classloader mode to PARENT_LAST
    We can colloborate to our future efforts if you can please give your active personal id from which you can respond faster for queries ....

  • Problem for downloading Weather client.jar file

    Hi,
    I downloaded Weblogic server6.1 windows version.my system enveronmet is:Compaq system
    with 20GB and 128MB Ram
    OS is windows-98.Iam able to run server and compile and create example Weather.ear
    file.but iam geting problem when iam try to download Client.jar from this URL:http://host:port/weather
    here i change host is my system name and port is 7001 like what ever you given instruction
    in document.but it's not opning that file it's giving error that error message I
    attach with this message.this is my problem please tell me how to solve this problem.
    Thanking you
    seenu
    [att1.html]

    I would like to know too. I am a newbie on this matter as well. I am curious about the RUNCLIENT. Can I use java <className that references the EJB>?

  • Problem with weblogic-cmp-rdbms-jar.xml

    While using ANT by apache to create a deployable EAR file for my application i
    created the weblogic-cmp-rdbms-jar.xml file with the following DOCTYPE header
    <!DOCTYPE weblogic-rdbms-bean PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0
    EJB RDBMS20 Persistence//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
    when i go for ejbc following error is displayed
    [java] ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'.
    The error was:
    [java] weblogic.xml.process.ProcessorFactoryException: The public id, "-//BEA
    Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS20 Persistence//EN", specified in the
    XML document is invalid. Use one of the following valid public ids:
    [java] "-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN"
    [java] "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB 1.1 RDBMS Persistence//EN"
    [java]
    [java] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:239)
    [java] at weblogic.ejb20.cmp11.rdbms.Deployer.parseXMLFile(Deployer.java:293)
    [java] at weblogic.ejb20.cmp11.rdbms.Deployer.readTypeSpecificData(Deployer.java:358)
    [java] at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceType.ja
    va:482)
    [java] at weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceType.java:406
    [java] at weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:139)
    [java] at weblogic.ejb20.ejbc.EJB11CMPCompiler.generatePersistenceSources(EJB11CMPCompiler.
    java:61)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:233)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:360)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
    [java] at weblogic.ejbc.main(ejbc.java:21)
    [java]
    [java] ERROR: ejbc found errors
    BUILD FAILED
    i have created the Doctype header after refering to the documentation available
    at http://edocs.bea.com/wls/docs61///////ejb/EJB_reference.html
    please help me as i am not able to find out the exact problem. i have also applied
    the ejb2.0 patch available for 6.0 which is supposed to enable the ejb2.0 related
    features
    Any help will be really appreciated
    thanx in advance
    Daljit

    Are you trying to make an EJB 1.1 CMP bean or an EJB 2.0 CMP bean.
    It looks like you have an EJB 1.1 ejb-jar.xml, but have requested an EJB 2.0 cmp descriptor.
    Take a look at examples/ejb/basic/containerManaged and ejb20/basic/containerManaged for the 2 examples.
    -- Rob
    Daljit Chauhan wrote:
    While using ANT by apache to create a deployable EAR file for my application i
    created the weblogic-cmp-rdbms-jar.xml file with the following DOCTYPE header
    <!DOCTYPE weblogic-rdbms-bean PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0
    EJB RDBMS20 Persistence//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
    when i go for ejbc following error is displayed
    [java] ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'.
    The error was:
    [java] weblogic.xml.process.ProcessorFactoryException: The public id, "-//BEA
    Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS20 Persistence//EN", specified in the
    XML document is invalid. Use one of the following valid public ids:
    [java] "-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS Persistence//EN"
    [java] "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB 1.1 RDBMS Persistence//EN"
    [java]
    [java] at weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.java:239)
    [java] at weblogic.ejb20.cmp11.rdbms.Deployer.parseXMLFile(Deployer.java:293)
    [java] at weblogic.ejb20.cmp11.rdbms.Deployer.readTypeSpecificData(Deployer.java:358)
    [java] at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFile(PersistenceType.ja
    va:482)
    [java] at weblogic.ejb20.persistence.PersistenceType.setupDeployer(PersistenceType.java:406
    [java] at weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:139)
    [java] at weblogic.ejb20.ejbc.EJB11CMPCompiler.generatePersistenceSources(EJB11CMPCompiler.
    java:61)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:233)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:360)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
    [java] at weblogic.ejbc.main(ejbc.java:21)
    [java]
    [java] ERROR: ejbc found errors
    BUILD FAILED
    i have created the Doctype header after refering to the documentation available
    at http://edocs.bea.com/wls/docs61///////ejb/EJB_reference.html
    please help me as i am not able to find out the exact problem. i have also applied
    the ejb2.0 patch available for 6.0 which is supposed to enable the ejb2.0 related
    features
    Any help will be really appreciated
    thanx in advance
    Daljit

  • Problem regarding Deployment of EJB jar file

    I am getting the following problem when i am trying to deploy my EJB on to the Weblogic 8.1 using the EjbModules option.
    Please help me
    Exception:weblogic.management.ApplicationException: prepare failed for mybank Module: mybank Error: Exception preparing module: EJBModule(mybank,status=NEW) Unable to deploy EJB: E:\OnlineBanking\mybank\mybank.jar from mybank.jar: weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-jar.xml: Class bytes found but defineClass()failed for: 'mybankEJB' at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.initializeBeanInfos(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;)V(MBeanDeploymentInfoImpl.java:550) at weblogic.ejb20.deployer.MBeanDeploymentInfoImpl.<init>(Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Lweblogic.utils.classloaders.GenericClassLoader;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Lweblogic.utils.jars.VirtualJarFile;)V(MBeanDeploymentInfoImpl.java:232) at weblogic.ejb20.deployer.EJBDeployer.prepare(Lweblogic.utils.jars.VirtualJarFile;Ljava.lang.ClassLoader;Lweblogic.management.descriptors.toplevel.EJBDescriptorMBean;Ljavax.naming.Context;Ljava.util.Map;)V(EJBDeployer.java:1302) at weblogic.ejb20.deployer.EJBModule.prepare(Ljava.lang.ClassLoader;)V(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule(Lweblogic.utils.classloaders.GenericClassLoader;Lweblogic.j2ee.J2EEApplicationContainer$Component;Z)V(J2EEApplicationContainer.java:3101) at weblogic.j2ee.J2EEApplicationContainer.prepareModules([Lweblogic.j2ee.J2EEApplicationContainer$Component;Ljava.lang.String;Z)V(J2EEApplicationContainer.java:1560) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEApplicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(J2EEApplicationContainer.java:1208) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lweblogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplicationContainer.java:1051) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer()V(SlaveDeployer.java:2444) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer()Z(SlaveDeployer.java:2394) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare()V(SlaveDeployer.java:2310) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lweblogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskRuntimeMBean;Z)V(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic.management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;ZLjava.lang.StringBuffer;)Z(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.util.ArrayList;Z)V(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel.ExecuteThread;)V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    In addition to the JavaEE Tutorial link above, Sun Java System Application Server 9.0 Documentation is here:
    http://docs.sun.com/app/docs/coll/1343.3
    -cheng

  • Validate w/ schema ---Problem setting up JAXP1.2 jar

    Sorry, I may just be being a retard
    I am trying to validate an xml document with a schema. I know that I need to use a JAXP 1.2 parser.
    I am using Eclipse 2.1 right now, but I tried this through the command prompt to see if it was something I was doing specifically in eclipse.
    First, I want to make sure that I have the proper jar.
    Where do I get the JAXP 1.2 jar? The only place that I found it was with the Java Web Services Developer Pack 1.4 release. Is that the correct place to get it?
    Second, if so, what do I need to do to get java to use that jar instead of existing one? From what I read, I just need to put the new jar in the classpath first. Maybe I am doing this worng, please explain what I should be doing.
    Here is the code that I am running. I keep getting the SAXNotRecognizedException that they say you get when you don't have a JAXP 1.2 parser.
    import java.io.*;
    import java.sql.*;
    import javax.xml.parsers.*;
    import org.apache.commons.digester.Digester;
    public class dhq {
       static final String JAXP_SCHEMA_LANGUAGE =
          "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
       static final String W3C_XML_SCHEMA =
          "http://www.w3.org/2001/XMLSchema";
       static final String JAXP_SCHEMA_SOURCE =
          "http://java.sun.com/xml/jaxp/properties/schemaSource";
       static final String DHQWEB_SCHEMA = "dhqweb.xsd";
       static final String DHQWEB_XML = "DHQ.xml";
       public static void main(String[] args) {
          try {
          SAXParserFactory factory =
             SAXParserFactory.newInstance();
          factory.setValidating(true);
          SAXParser parser = factory.newSAXParser();
          parser.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA); //Throws SAXNotRecognizedException here
          parser.setProperty(JAXP_SCHEMA_SOURCE, new File(DHQWEB_SCHEMA));
          Digester d = new Digester(); //Haven't gotten to implementing this yet.
          parser.parse(new FileInputStream(new File(DHQWEB_XML)), d);Thanks in advance for any help, especially for helping with such a newb problem.

    Here is some content from the following install link:
    http://java.sun.com/xml/docs/summer02/jaxp/ReleaseNotes.html#deploy
    Using JAXP 1.2 with the Java Web Services Developer Pack (Java WSDP)
    Again, if you are using the Java WSDP installation process to do the update, then you don't have to worry about the updates. But if you are updating individual jar files, copy them to
    <JWSDP_HOME>/common/endorsed/
    Using JAXP 1.2 with Tomcat version 4.0.3 or 3.3
    First, be sure to remove xerces.jar from
    <TOMCAT_HOME>/common/lib/
    The reason for that step is that xerces.jar contains earlier Xerces implementations which will interfere with the operation of JAXP 1.2.
    The next step depends on which version of the Java 2 SDK you are using:
    For version 1.4 of the Java 2 SDK:
    You need to know that JAXP 1.1 is built into that version of the platform. JAXP 1.1 has a smaller footprint, but JAXP 1.2 implements XML Schema, and it also includes transform compiler, XSLTC.
    To use the JAXP 1.2 implementation instead of the JAXP 1.1 implementation, copy all of the JAR files except jaxp-api.jar to
    <TOMCAT_HOME>/common/lib/
    Then, when running Tomcat, set the java.endorsed.dirs system property to
    <TOMCAT_HOME>/common/lib/
    Note:
    The jaxp-api.jar file should not be copied, because it contains high-level factory APIs that are not subject to change.
    For version 1.3 of the Java 2 SDK:
    Copy all 6 JAR files to
    <TOMCAT_HOME>/common/lib/
    and add that directory to your classpath.
    Using JAXP 1.2 with version 1.4.0 of the Java 2 platform
    Version 1.4 of the Java 2 platform has JAXP 1.1 implementations built in. JAXP 1.1 has a smaller footprint, but JAXP 1.2 implements XML Schema and the transform compiler, XSLTC.
    To use the JAXP 1.2 implementation, copy all of the jar files except jaxp-api.jar into
    <JAVA_HOME>/jre/lib/endorsed/
    Note:
    The jaxp-api.jar file should not be copied, because it contains high-level factory APIs that are not subject to change.

  • Problem with Identifying images in JAR

    Hi,
    I am using Eclipse as JAVA IDE. I have a project X with a folder called images. which contains all the image files. In my classes I am refering to the images as <b>images/x.gif</b< (say). It works fine when I run it as a stand alone application. Now I want to export this as JAR when I do that and try running it using <b>java -jar X.jar</b>. It says its not able to find the file <b>x.gif</b>. Why is this happening and how do I over come this problem. Another question. I have a manifest file in which I have specified my Main Class. And an additional jar that its reffering to. Why was not there a mechanism for specfying that if in the manifest file. If you are refering to gifs in the application. Hope somebody could help me out.
    With Regards
    Tom

    You need to load images from JAR files this way:
    ClassLoader cl = cl = this.getClass().getClassLoader();
    Image im = cl.getResource("images/"+filename)This code will also work in your eclipse project if the files are located in /images/ in the project folder. Of course, they will have to be added to the jar in the same folder.
    - bjorn

Maybe you are looking for

  • Retrieve deleted messages in SXI_MONITOR

    I'm trying to access some old messages from sxi_monitor. i have the message ID for reference. i saw the message in the SXMSPHIST table in se16 but with a REORG status of DEL. Is there a way to retrieve this message to view the audit log? Thank you. I

  • How to properly uninstall SCVMM

    Hi Folks, I am trying to install SCVMM 2012 R2 on a machine that previously had an earlier version of SCVMM installed (removed using Add/Remove programs).  However the installer is failing with error Note: 1: 1729  Product: Microsoft Web Deploy 3.5 -

  • When I try to start Firefox nothing happens

    I updated to 3.6 beta 4 and it started after the installation but the next time I tried to run it nothing happened other than the hour glass for a second or two. I rebooted no change. I uninstalled it and downloaded and installed 8.0 and still nothin

  • Hey, sorry, but one more quick question... noise at startup

    sorry but i'm a relatively new mac (and laptop) user, and I have been unable to find a way to stop the noise the computer makes (through the speakers, like the noise it should make) when I turn it on. This is true for both the windows and mac side of

  • Dreamweaver CS6 slow

    Have been intensely coding for several days.  DW began to get slower and slower, and then buggy.  By slow, for example, I mean switching between documents via the tabs gets you a nicely irritating pause.  Whereas Notepad++ works just as expected - qu