JAXB v1.0.2 and Webstart

Hi,
I'm trying to use JAXB within an app that is started via JNLP and WebStart.
If i add all the JAXP jars to the JNLP file the app fails to start when JAXB calls into some xerces code that tries to access java.home.
java.security.AccessControlException: access denied (java.util.PropertyPermission java.home read)
/* stack trace */
     at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
     at javax.xml.bind.helpers.AbstractUnmarshallerImpl.getXMLReader(AbstractUnmarshallerImpl.java:80)
If i dont put in the JAXP jars then i get the following:
Caused by: java.lang.RuntimeException: Installation Problem??? Couldn't load messages: Can't find bundle for base name org.apache.xerces.impl.xpath.regex.message, locale en_US
     at com.sun.msv.datatype.xsd.regex.RegexParser.setLocale(RegexParser.java:132)
     at com.sun.msv.datatype.xsd.regex.RegexParser.<init>(RegexParser.java:122)
If i put the jaxp jars in jre/lib/endorsed, then everything works - except that isnt going to work for a remote client.
So, question is why does xerces require access to java.home ?

I am getting essentially the same exception when running my app from command line:
java.lang.RuntimeException: Installation Problem??? Couldn't load messages: Can't find bundle for base name org.apache.xerces.impl.xpath.rege
x.message, locale en_US
at com.sun.msv.datatype.xsd.regex.RegexParser.setLocale(RegexParser.java:132)
at com.sun.msv.datatype.xsd.regex.RegexParser.<init>(RegexParser.java:122)
at com.sun.msv.datatype.xsd.regex.ParserForXMLSchema.<init>(ParserForXMLSchema.java:71)
[ snip ]
The same code works find when running inside a webapp on Tomcat 5.
Did you ever find the source of your problem, and indeed a solution?

Similar Messages

  • JNLP and WEBSTART newbie

    Hi All,
    I have a few queries on this technology.
    1) What is the relationship of JNLP and WEBSTART. I thot that WEBSTART is a reference implementation of JNLP api from SUN. Heard that other companies also have implementation of JNLP. Is it true ?
    2) In the JNLP api(s) whats the use of the classes ?
    BasicService, ClipboardService, DownloadService, FileOpenService, FileSaveService, PrintService, and PersistenceService
    3) Do we have to use these classes to make an application available thru WEBSTART ? if not then when will they be used ?
    4)Does webstart and jnlp used only if your application is published on the webserver(HTTP). Can I use webstart to start an application from a shared drive/mapped drive on another PC via File protocol ?
    Pls. advise.
    Thanks,
    Net5nuts

    Hi net5nuts,
    check out the Lopica Web Start Paradise for answers to your question @ http://lopica.sourceforge.net
    I good place to start is the Web Start Link-opida @ http://lopica.sourceforge.net/links.html
    - Gerald

  • User access control and WebStart

    I'm considering tools and utils for a new project and WebStart looks like it could suit our needs just perfect.
    Just one little question:
    If I have a system with multiple applications controlled by WebStart, is it possible to restrict user access?
    I need to be able to present different selections of applications to different types of users, is this possible to configure/code for WebStart?
    Thankful for pointers

    At what point do you want to treat different users
    differently (like allowing access to different apps)?
    Possible points could be:
    - at the webserver level (different download pages,
    that are access protected)
    - different Web Start application caches (as far
    as I understand under Win32 all users share
    one cache - but this seems subject to some
    property configuration in WebStart)
    - within the application (the app expecting different
    license keys, passwords or such)
    - within Web Start (Web Start utility asks for password,
    this could be achieved by writing a custom jnlp
    client - think openjnlp as example
    http://openjnlp.nanode.org/)
    I think the first two options are not useful, as
    users might get the application somewhere else
    and just copy it onto their box - this is also
    true for the last option.
    So I would put access control into the applications
    themselves.

  • JAXB 2.0, XMLAdaptor and HashMap for customized mapping

    I have a requirement to implement a custom mapping of HashMap in JAXB. Basically I want to be able to use a HashMap structure to represent key/value pairs instead of the default List. So I need to be able to store (marshal) a HashMap structure into XML, and then be able to read (unmarshal) the XML back into a HashMap.
    I've discovered the XMLAdaptor class and I think this is the way to do it:
    https://jaxb.dev.java.net/nonav/jaxb20-pr/api/javax/xml/bind/annotation/adapters/XmlAdapter.html
    However, my knowledge of generics and annotations in 5.0, and XML schemas are somewhat elementary - so I'm a bit stuck.
    If someone has a complete working example of the HashMap example they show in the API doc linked above, I would greatly appreciate it if you could post it here.
    Otherwise, perhaps you could answer a couple of questions for me.
    1) I tried using the XSD directly from the example in the API doc (Step 2).
         <xs:complexType name="myHashMapType">
           <xs:sequence>
             <xs:element name="entry" type="myHashMapEntryType"
                            maxOccurs="unbounded"/>
           </xs:sequence>
         </xs:complexType>
         <xs:complexType name="myHashMapEntryType">
           <xs:simpleContent>
             <xs:extension base="xs:string"/>
           </xs:simpleContent>
           <xs:attribute name="key" type="xs:int"/>
         </xs:complexType>xjc complains when I generate the classes and says that the 'xs:attribute name=key' shouldn't be there. If I move it up into the 'xs:extension' node it works. But then I get strange XML when I create some key/value pairs and marshal them. The first XML node looks okay, but the rest of the List items start with '<xsi:entry ...', e.g.
    <entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="myHashMapEntryType" key="key0">value0</entry>
    <xsi:entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="myHashMapEntryType" key="key1">value1</xsi:entry>
    ...So my first question is, what is the proper XSD to represent a HashMap with XML like the following:
         <hashmap>
             <entry key="id123">this is a value</entry>
             <entry key="id312">this is another value</entry>
          </hashmap>2) Now for the HashMap part of it; you need to create a class that extends XmlAdaptor<HashMap, MyHashMapType> with marshal and unmarshal methods. This is where I get a little fuzzy on exactly what these methods need to do. The example in the API doc doesn't show this.
    3) And finally; once I have all this in place, how do I actually marshal and unmarshal, presumably using the value types that I created instead of the value types that were auto generated by xjc? At least I think that's what I'm supposed to do.
    Thanks.

    Download the javaeetutorial5
    Under this path is a working example.
    \examples\jaxb\j2s-xmlAdapter-field
    I've tried following the bad example you sited, and even with a great deal of work it still fails to work.
    I think the example will help clarify how marshall and unmarshall methods are to be implemented. What would be really nice is for whoever wrote the example you sited to finish the job instead of expecting the reader of their documentation to figure it out.
    I fail to understand why JaxB has failed to directly support a collection so prevalent in its use as a HashMap. I also don�t know why they can�t support a Map interface that by default maps to a HashMap.
    Best of luck to you,
    Robert

  • JAXB anonymous complex types and inner interfaces

    When JAXB generates interfaces/classes for a schema with nested anonymous complex types, it nests the resultant interfaces/classes. Is there any way to force JAXB to put these nested interfaces/classes at the top level of the package instead?
    Note that if I specify a <class> binding, it changes the name of the inner interface/class, but doesn't change the fact that it's nested. It is my understanding that in JAXB Beta specifying a <class> binding for an anonymous complexType would in fact push it to the top level. Was this a bug, or is it a feature missing from 1.0, or am I misinformed about JAXB Beta?
    I realize that scope-wise it makes sense to generate nested anonymous complex types as inner classes, however it leads to highly unreadable code when dealing with deeply nested structures. I'm hoping someone knows of a way to workaround this issue without simply redefining the anonymous complex types as named complex types.
    Thanks,
    -Greg Merrill

    According to sec 4.4 "By default if xml schema component for which java content interface is to be generated is scoped within a complex type then the java content interface should appear nested within the content interface representing the complex type. ".
    So I doubt that worked with beta and you may have to represent this anonymous complex type as a named complex type to avoid the nesting.
    Regards,
    Bhakti

  • Security Exception with JavaHelp and Webstart

    I have seen several posts on here concerning JavaHelp with Webstart, but no one seems to be getting the same error that I have. Everything works fine if I run the application and launch help outside of Webstart.
    When I download the app using webstart, my helpset seems to get loaded properly, but I get the following error when trying to launch JavaHelp from within the application:
    Parsing failed for null
    Exception caught while parsing nulljava.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
    java.lang.NullPointerException
    I'm not quite sure why it's trying to access the property user.home, but it doesn't seem that others that have post get this error.
    Does anyone have any suggestions?
    Thanks.

    Ok... this appears to be an issue with the new JavaHelp 2.0 because it works perfectly fine in version 1.3
    It appears that version 2.0 has a "favorites" section that, I'm guessing here, stores the users favorites locally. That would be why the user.home property gets accessed and the security policy is violated with Webstart.
    I can't say that this is a bug... maybe I can disable the "favorites" feature... either that or I need to stick with JavaHelp 1.3
    Thanks.

  • CACERTS both in JRE and WebStart

    Hi..again
    Does anyone know the reason why there is one "cacerts" file both in the JRE/lib/security and in the webstart directory. I know the "cacerts" file is used for verification processes (https, signed jarfiles) but how and when are they used in the cycle of accessing the server, validating server certs and validating signed jarfiles.
    Regards
    Jojje

    Since Java Web Start was originally distributed as a stand alone package, it contained it's own cacerts file. (Which is by now out dated) Now that Java Web Start is only distributed as a part of the JRE, it will, starting in J2SE 1.4.2, just use the cacerts in lib/security.
    The cacerts file is used as the default set of trusted root CA's A signed jar file must be signed with a certificate deriving from one of the root certs in cacerts or else an additional warning will be displayed on the certificate dialog, and the user will be advised not to trust the cert.
    /Dietz

  • Jclient application and Webstart

    Can i use WebStart to run a Jclient application?
    Will i meet any performance problem?
    Thanks.

    Yes you can - and in 9.0.3 we have made this easier.
    As to whether there will be a performance issue? - Well it depends what you mean. WebStart is only a way of deploying
    and accessing your application. Once it is running it should now behave any different if it was run using WebStart or
    is deployed manually.
    These is some information on the on line help - search for JClient and Web Start
    Regards
    Grant Ronald
    Product Management

  • JConsole and Webstart

    I would like to JConsole my webstart application. I tried adding com.sun.management.jmxremote as a system property to JNLP file, but I could not find a way to make webstart applications run through the JDK's JRE (which is what JConsole needs).
    So is there a nice way to JConsole webstart applications?

    It is possible to attach a debugger to a JVM started by Web Start. I got the following batch file from another thread and I made it to work for me.
    @echo off
    setlocal
    rem *** The following parameters must come from the JNLP file ***
    set VM_ARGS=-ea -Xincgc -Xmx96m -Dcom.sun.management.jmxremote
    set URL=http://mywebsite/downloads/myapp.jsp
    rem *** This path must be absolute because javaws uses a simple string-compare against the expected path ***
    set JAVAW_PATH=C:\Program Files\java\jdk1.5.0_04\bin\javaw.exe
    rem *** Enable the following line to have Webstart dump all possible logs ***
    rem set WS_DEBUG=-XX:TraceBasic=true -XX:TraceNetwork=true -XX:TraceCache=true -XX:TraceTemp=true -XX:TraceSecurity=true -XX:TraceExtensions=true
    rem *** Enable the following line create a JNLP session on startup ***
    set JDPA=-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n
    set DEBUG=-Xdebug -Xnoagent -Djava.compiler=NONE %JDPA% -Dcom.sun.management.jmxremote
    set WS_OPTS="-Xbootclasspath/a:%JAVA_HOME%\jre\lib\javaws.jar;%JAVA_HOME%\jre\lib\deploy.jar" "-Djnlpx.vmargs=%DEBUG%" "-Djnlpx.jvm=%JAVAW_PATH%" "-Djnlpx.splashport=-1" "-Djnlpx.home=%JAVA_HOME%\jre\bin" "-Djnlpx.remove=false" "-Djnlpx.offline=false" "-Djnlpx.heapsize=NULL,NULL" "-Djava.security.policy=file:%JAVA_HOME%\jre\lib\security\javaws.policy" "-Djnlpx.deployment.system.home=C:\WINDOWS\Sun\Java\Deployment" "-Djnlpx.deployment.user.home=C:\Documents and Settings\hxue.FRACTAL\Application Data\Sun\Java\Deployment" -DtrustProxy=true -Xverify:remote
    echo on
    "%JAVA_HOME%\jre\bin\java.exe" %VM_ARGS% -esa  %WS_OPTS% -classpath "%JAVA_HOME%\jre\lib\javaws.jar" com.sun.javaws.Main %WS_DEBUG% %URL%Save the content in a .bat file (I assume you use Windows) and run it from the command line. After your web start app starts running, attach your debugger to port 8888.

  • Upgrade JDK and WebStart - big problems

    I have been developing (compiling and running) a J2EE application using JDK 1.3.1_02. Now I am trying to upgrade it to Java 1.4.2_03. This process has been very frustrating and left me with a bunch of questions.
    The application uses several external JAR libraries (JavaDatePicker, rpValidation) and some J2EE libraries (ejb.jar, jta.jar, oc4jclient.jar, etc...). For the most part, when I examine the manifest of these jars, they say that they were created by java 1.3.
         eg: jta.jar
              "Manifest-Version: 1.0
              Created-By: 1.3.1_02 (Sun Microsystems Inc.)"
    QUESTION #1) Do these jar files need to be upgraded to a v1.4? In other words, can I run an application using Java 1.4 if it references a library that was created with Java v1.3?
    POTENTIAL ANSWER) I don't think that they need to be upgraded b/c if so then the newer JDev (which ships with jdk 1.4) would contain newer versions.
    The application works when I run it from my development environment (JDeveloper 9.0.3.3 with a newly installed JDK 1.4.2_03). However, it does not work when I run it from Java Web Start. The problem comes when it's time to do an RMI lookup on an EJB. At that point the program throws the following exception:
         javax.naming.NamingException: Lookup error: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionContext; nested exception is:
              java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionContext
    This error has never happened before. It only occurs when I changed the descriptor in the jnlp file from <j2se version="1.3"/> to <j2se version="1.4"/>. I know that the class is deployed because I include the jar in the jnlp file.
    local.jnlp:
         <resources>
         <j2se version="1.4"/>
         <jar href="client.jar" />
         <jar href="mymt.zip" />
         <!-- Javadatepicker libraries -->
         <jar href="javadatepicker.jar" />
         <jar href="metouia.jar" />
         <jar href="kunststoff.jar" />
         <!-- RM lookup library -->
         <jar href="RMInterfaces.jar" />
         <!-- J2EE libraries -->
         <jar href="ejb.jar" />
         <jar href="oc4jclient.jar" />
         <jar href="jta.jar" />
         <jar href="jaas.jar" />
         <jar href="jms.jar" />
              <jar href="jmxgrinder.jar" />
              <jar href="jmxri.jar" />
              <jar href="jmxtools.jar" />
         <!-- Field Validation Library -->
         <jar href="rpValidation.jar" />
         <extension name="common" href= "localmt.jnlp" />
         </resources>
    To further complicate things, I did a search and found that HttpSessionContext is: "Deprecated. As of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API."
    But my code never even calls this class. So I'm guessing that something in one of the libraries calls it. And these libraries must be from the old JDev and thus call old classes. So I upgraded all the j2ee libraries that I bundle in the deployed application with the ones that ship with JDev 9044. However, I still get the same error.
    What I don't understand is why it runs in JDev but not after being deployed with JWS ?! What's wrong with my RMI lookup?

    After upgrade, previous admin account will not work. You will need to add GUI admin account through the console access. So before starting with upgrade process please make sure you have console access available for the appliance. Command would be :
    add-guiadmin [admin] [password]
    Syntax Description
    admin User name for the GUI account.
    password Password for the GUI account.
    Usage Guidelines
    If you do not set up a GUI account using the add-guiadmin command, then there is no way to access the ACS SE other than through the CLI administrator account and a serial connection. After initial installation of the ACS SE, add a web GUI account using this command.

  • JSP and JAXB

    DB Structure
    Parent Table - Incident --> Child Table - IncidentCharges --> Child Table of IncidentCharges --> IncidentChargeWeapons
    Container
    Oracle Containers for JAVA(OC4J)
    We have a schema (Incident.xsd) which comprises of our entire database structure. We unmarshalled the schema using JAXB to Java classes and interfaces .
    It created 2 .java classes and 2 .java interfaces for each high level tag . for eg for our Incident tag it created a Incident interface and a IncidentType Interface
    and also it created 2 classes IncidentImpl and IncidentTypeImpl . The IncidentTypeImpl has all the get and set properties we require eg. getIncidentType,
    setIncidentType,getIncidentNumber,setIncidentNumber,getOccuranceDate,setOccuranceDate etc.
    Our objective is to create a JSP page which has form fields to enter data which use these JAXB generated classes get and set properties. In other words
    we want to bind the JSP form fields to these JAXB generated classes. And once these JAXB objects are populated we want to marshal it and create a XML file with the data from those JAXB . Our database would then consume the generated XML. We tried creating a simple incident form with just 3 fields IncidentType,Occurance date and Incident Number and tried to bind these fields with the properties from IncidentTypeImpl classes using the <jsp:usebean> tag . When we deployed it to our container and tried to load the Incident.jsp page , it would not load up . Only when we cleared all the bindings it loaded up .
    Then we tried another workaround (just to get it working. Not a preferred approach) . We created another simple JAVA bean(not JAXB generated beans) which has set and get properties for the form fields and bound the form fields to it.
    On submitting the JSP page we called a servlet which takes data from our created bean and transfers it to the JAXB generated IncidentTypeImpl bean. When we deployed this the jsp page loads up and also our bean is filled with data . But the servlet bombs with this error below.
    500 Internal Server Error
    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
    at Servlets.IncidentServlet.doPost(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    We have 2 questions .
    1. Can a JSP page be bound directly to this JAXB generated bean in pretty much the same way as we bind it to our own bean ? (We would like to do this so that we dont have to create duplicate classes which mirror the JAXB generated classes.)
    2. Is there something special we have to do to deploy this application to recognize the JAXB classes. Do we have to deploy some jar file for it to recognize those classes ?

    I've used oracle's xdk to generate both the interfaces and the implementation classes. Next i've implemented a service class with some methods to return java classes as generated by oracle's jaxb. The return types of these service methods are interfaces, not the implementation classes.
    I can generate an adf data control for this service class, but the data control palette doesn't show the attributes for the jaxb generated classes (i have changed the bean class property in the data control description xml file).
    It's not possible to ignore the interfaces and just use the implementation classes, as the implementation classes specify their return types in interfaces. I don't want to rewrite all the generated code.

  • JAXB 2.0 with JXDM gives error.  Use @XmlType.name and @XmlType.namespace

    Hi,
    I am getting the below error for JXDM when using. It was mentioned in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302524 that it is fixed. Still getting this error.
    a) Appreciate if anyone can tell how to use the bug fix b20 that is mentioned in the above? I downloaded the latest jaxb 2.0 from this site and also from the jaxb RI(Reference Implementation and tried both).
    b) Is there any workaround to get through this?
    Will appreciate if any one can give advise on this.
    ************** Here is the error message ******************
    There was this problem creating a context com.sun.xml.bind.v2.runtime.IllegalAnn
    otationsException: 1 counts of IllegalAnnotationExceptions
    Two classes have the same XML type name "usStateCodeType". Use @XmlType.name and
    @XmlType.namespace to assign different names to them.
    this problem is related to the following location:
    at gov.ojp.it.jxdm.usps_states._1.USStateCodeType
    at protected gov.ojp.it.jxdm.usps_states._1.USStateCodeType gov.
    ojp.it.jxdm._3_0_2.proxy.usps_states._1.USStateCodeType.value
    at gov.ojp.it.jxdm._3_0_2.proxy.usps_states._1.USStateCodeType
    at protected gov.ojp.it.jxdm._3_0_2.proxy.usps_states._1.USState
    CodeType generated.CjsAddressType.locationStateCodeUSPostalService
    at generated.CjsAddressType
    at protected java.util.List generated.CjsPersonType.personAddres
    s
    at generated.CjsPersonType
    at protected generated.CjsPersonType generated.CjsSuspectType.su
    spectPerson
    at generated.CjsSuspectType
    at protected generated.CjsSuspectType generated.CjsReportType.su
    spect
    at generated.CjsReportType
    at public generated.CjsReportType generated.ObjectFactory.create
    CjsReportType()
    at generated.ObjectFactory
    this problem is related to the following location:
    at gov.ojp.it.jxdm.fips_5_2._1.USStateCodeType
    at protected gov.ojp.it.jxdm.fips_5_2._1.USStateCodeType gov.ojp
    .it.jxdm._3_0_2.proxy.fips_5_2._1.USStateCodeType.value
    at gov.ojp.it.jxdm._3_0_2.proxy.fips_5_2._1.USStateCodeType
    at protected java.util.List gov.ojp.it.jxdm._3_0.AddressType.loc
    ationStateCodeFips52Alpha
    at gov.ojp.it.jxdm._3_0.AddressType
    at protected java.util.List gov.ojp.it.jxdm._3_0.LocationType.lo
    cationAddress
    at gov.ojp.it.jxdm._3_0.LocationType
    at protected java.util.List gov.ojp.it.jxdm._3_0.OrganizationTyp
    e.organizationLocation
    at gov.ojp.it.jxdm._3_0.OrganizationType
    at protected java.util.List gov.ojp.it.jxdm._3_0.BookingType.boo
    kingAgency
    at gov.ojp.it.jxdm._3_0.BookingType
    at generated.CjsBookingType
    at public generated.CjsBookingType generated.ObjectFactory.creat
    eCjsBookingType()
    at generated.ObjectFactory
    Check this out
    Exception in thread "main" java.lang.NullPointerException
    at bpd.MakeNewItem.marshallItem(MakeNewItem.java:119)
    at bpd.MakeNewItem.persistItem(MakeNewItem.java:112)
    at bpd.MakeNewItem.<init>(MakeNewItem.java:31)
    at bpd.MakeNewItem.main(MakeNewItem.java:137)
    ********************End of error message ******************
    Thanks
    Sat
    Message was edited by:
    sat_p

    In Help > About > Properties:
    sqldeveloper.oci.available = true

  • Bgm.ser and jaxb.properties not created

    Is there a particular reason to why the bgm.ser and jaxb.properties files are not created when a schema only consists of a simpletype and I run the binding compiler???
    The two files seem to be created when I include a 'dummy' complextype in the schema. Is a complextype needed in order for the files to be created?
    Cheers.
    Anders
    <simpleType name="Values">
        <restriction base="string">
            <enumeration value="ValueOne"/>
            <enumeration value="ValueTwo"/>
            <enumeration value="ValueThree"/>
            <enumeration value="ValueFour"/>
        </restriction>
    </simpleType>

    I've had the same exact problem! I had the property file in my JAR file properly, but the JAXBContext.newInstance( "package.name" ) call was failing - while at the same time I could load the property file via the ClassLoader just fine, by hand.
    I played around with source for the jaxb beta a bit and I think I found the problem. I recompiled the JAR file after changing the "fileSep" variable in the "searchforcontextPath" method from "file.separatorChar" to "/".
    This seemed to fix the problem. Well, the problem of it not finding the properties file that is... now I've got some kinda non-marshalable exception (but I haven't even spent 3 minutes on that problem yet, as opposed to the hours wasted on this bug).
    I'm not sure if this bug only cropped up when running under a Windows env or not (my test was running under JBoss on XP... though I was building/compiling under Linux).
    Anyway... to fix this just change that variable.. it's on line 228 (i think... i might have added some debug lines of my own in the code) of the javax/xml/bind/ContextFinder.java file. Then just re-jar it over the old JAR -- oh yeah, you'll need a few Message.property files from the jaxb-api.jar file for the new jar file to work (so make sure you unjar the old file 1st or back it up or whatnot).

  • Install only JRE and not WebStart with v1.4

    I have an application running over the web that automatically installs the JRE for people if they haven't installed it yet. Right now, I'm using version 1.3.1, but I'd like to change that to version 1.4.1.
    When I install the JRE with support for a browser, though, it automatically installs WebStart, which I didn't ask for. I don't need WebStart to be installing on people's computers, so I was wondering if there might be a way to install the just the JRE (and browser plugin). Anyone know if there's a way?

    I also want to find a way of installing without Webstart.
    REason is that this is for a citrix installation and Webstart makes the apps work differently.

  • Xsi:type information is missing after Marshalling in JAXB

    Hi,
    I'm trying to mock the webservice, i have created classes for schema using JAXB (without any customization) and it's working. But when i try to marhsall my objects , it doesn't generate the xsi:type information of any element and attribute. I want this information since my webservice client needs this information.
    I have tried to use mapSimpleTypeDef ="true" generateElementProperty="false" but it doesn�t help.
    Following is output of marshal process
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <MessageRetrieveResponseReturn xmlns:java="java:types.api.brokerapi.soap.mms"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <return>
         <APIVersion>1.0</APIVersion>
         <ErrorCode>1000</ErrorCode>
         <ErrorInfo> Success</ErrorInfo>
         <BillingInfo xsi:type="java:BillingInfoObject" xsi:nil="true"/>
              <HeaderInfo xsi:type="java:HeaderInfoType" xsi:nil="true"/>
              <Content xsi:type="java:MessageContentType" xsi:nil="true"/>
              </return>
    </MessageRetrieveResponseReturn>
    I want output to be look like following
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <MessageRetrieveResponseReturn xmlns:java="java:types.api.brokerapi.soap.mms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <return xsi:type="java:MessageRetrieveResponse" >
         <APIVersion xsi:type="java:apiVersionType">1.0</APIVersion>
         <ErrorCode xsi:type="xsd:string">1000</ErrorCode>
         <ErrorInfo xsi:type="xsd:string">Success</ErrorInfo>
         <BillingInfo xsi:type="java:BillingInfoObject" xsi:nil="true"/>
              <HeaderInfo xsi:type="java:HeaderInfoType" xsi:nil="true"/>
              <Content xsi:type="java:MessageContentType" xsi:nil="true"/>
              </return>
    </MessageRetrieveResponseReturn>
    I'm new to JAXB. Please let me know what I�m missing here
    Regards

    Not got a single answer , surprise whether the question is too dumb to ask or JAXB doesn't support feature or my requirement is weird :-) ... in any case let me know please
    regards

Maybe you are looking for

  • Text Field location differs on design view and preview mode

    I am using Adobe LiveCycle Desginer ES.  I am updating forms currently created in Livecycle 6 and 7.  I am noticing the text fields are lower on the preview mode than where I have placed them on the design mode. In design mode, they are perfectly in

  • My itouch won't open and now freezes my itunes

    My itouch won't open any applications or my music and now when I plug it into my macbook pro my itunes has the spinning wait curser perminently on.

  • Ringtones- Not correct account

    I have searched but did not find an answer to my question. I am trying to purchase ringtones, and I go about the correct way, but when it asks me to enter my Itunes account and password, it states to re-enter using the same account I used to purchase

  • Ssrs 2012 change parameter values

    In an existing SSRS 2012 report, I have a requirement for a user to be able to select by multiple school(s) and/or multiple grade(s). This is fine except certain schools like elementary have grade levels of KG to 06, Middle school has grades of 06 to

  • Ios 4.2.1 downloads

    Hi, I have a new ipod touch, and i keep getting asked to download ios 4.2.1 when ever i plug into my computer. Firstly, is this 100% needed? and secondld, if so, is there any alternative to downloading the 608MB file from itunes? i am trying to downl