JAXB with j2sdk1.4.2_06

Has anyone used JAXB with j2sdk1.4.2_06?
If yes, can you please provide the instructions?
Someone told me that JAXB only works with java1.5.

They dont run on Ms Jvm is the answer.
The -target 1.1 flag does work, but only if you do not include any other classes that were pre-compiled with the later version of javac.
I am now using the jdk1.1.8 to compile for Ms Jvm.
Does anyone have a JSObject archive that will work with the Ms Jvm (I have tried extracting the classes from the java40.jar but it doesnt work)?

Similar Messages

  • Jaxb with weblogic -- java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement

    I am trying to use jaxb with Weblogic 6.1. I kept both the jaxb jar file in weblogic
    classpath in setEnv script. I am getting the following error, when I am trying
    to use jaxb
    java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    I tried other options also like coping both jar file in jre/ext dir but then I
    got security error.
    I will appreciate if someone in this newsgroup comments or suugest some solution.
    Thanks
    Jeewan

    On 06 Aug 2002, Jeewan wrote:
    >
    I am trying to use jaxb with Weblogic 6.1. I kept both the jaxb jar
    file in weblogic classpath in setEnv script. I am getting the
    following error, when I am trying to use jaxb
    java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    I tried other options also like coping both jar file in jre/ext dir
    but then I got security error.
    I will appreciate if someone in this newsgroup comments or suugest
    some solution. Put the jaxb jar file in in your webapp's WEB-INF/lib directory and it
    should work fine.
    Barry

  • How to use JAXB with web services

    Hi All,
    I am new to JAVA WS and read the sun jee tutorial on JAX-WS and SAXB. Now I can create simple JAX-WS passing simple parameters. Now I want to create a service which take java bean as a parameter or returns a java bean (complex type). I think this is where JAXB should come. However I can understand JAXB seperately, but still could not find how JAXB is work together with my web service. Could someone help me or point to a simple tutorial/example on using JAXB with JAX-WS. Or simply a tutorial that use Complex data type in JAX-WS.
    Thanks
    Nalaka
    Edited by: nalakayoyo on Mar 27, 2008 11:39 PM

    Hi,
    When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
    When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
    So need of any other external implementation of JAXB when you are working with JAXWS
    Thanks,

  • J2sdkee1.3.1  with j2sdk1.4.0

    hi all,
    I'm using jdbc3 for some of the code i have written, and so I use j2sdk1.4.0 .. and also Im using j2ee server.. j2sdkee1.3.1..
    and have set my java home in the j2ee server as j2sdk1.4.0
    my question is did any body, have any problem using j2sdkee1.3.1 with
    j2sdkee1.4.0 ???
    I use windows2000 prof sp-2
    im getting the following error in random when I shut down the server using
    j2ee -stop
    is this due to the jdk version mismatch??
    error message in the server console is
    Shutting down the J2EE server.
    Shutting down JMS service...
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77F82D8F
    Function=RtlInitUnicodeString+0x1B
    Library=C:\WINNT\System32\ntdll.dll
    Current Java thread:
            at java.lang.Shutdown.halt(Native Method)
            at java.lang.Shutdown.exit(Shutdown.java:211)
            - locked <0AA93568> (a java.lang.Class)
            at java.lang.Runtime.exit(Runtime.java:90)
            at java.lang.System.exit(System.java:713)
            at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:1039)
            at com.sun.enterprise.server.ServerObjectImpl.shutdown(ServerObjectImpl.java:19)
            at org.omg.stub.com.sun.enterprise.server._ServerObjectImpl_Tie._invoke(Unknown
            at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:3
            at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
            at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java
            at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java
    Dynamic libraries:
    0x00400000 - 0x00406000         C:\j2sdk1.4.0\bin\java.exe
    0x77F80000 - 0x77FFB000         C:\WINNT\System32\ntdll.dll
    0x77DB0000 - 0x77E0C000         C:\WINNT\system32\ADVAPI32.dll
    0x77E80000 - 0x77F35000         C:\WINNT\system32\KERNEL32.DLL
    0x77D40000 - 0x77DAD000         C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78046000         C:\WINNT\system32\MSVCRT.dll
    0x6D330000 - 0x6D442000         C:\j2sdk1.4.0\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E74000         C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000         C:\WINNT\system32\GDI32.DLL
    0x77570000 - 0x775A0000         C:\WINNT\System32\WINMM.dll
    0x6D1D0000 - 0x6D1D7000         C:\j2sdk1.4.0\jre\bin\hpi.dll
    0x6D300000 - 0x6D30D000         C:\j2sdk1.4.0\jre\bin\verify.dll
    0x6D210000 - 0x6D228000         C:\j2sdk1.4.0\jre\bin\java.dll
    0x6D320000 - 0x6D32D000         C:\j2sdk1.4.0\jre\bin\zip.dll
    0x6D2D0000 - 0x6D2DD000         C:\j2sdk1.4.0\jre\bin\net.dll
    0x75050000 - 0x75058000         C:\WINNT\System32\WSOCK32.dll
    0x75030000 - 0x75043000         C:\WINNT\System32\WS2_32.DLL
    0x75020000 - 0x75028000         C:\WINNT\System32\WS2HELP.DLL
    0x55600000 - 0x55629000         C:\WINNT\System32\wspwsp.dll
    0x74FD0000 - 0x74FEF000         C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000         C:\WINNT\System32\wshtcpip.dll
    0x785C0000 - 0x785CC000         C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000         C:\WINNT\System32\DNSAPI.DLL
    0x77340000 - 0x77353000         C:\WINNT\System32\iphlpapi.dll
    0x77520000 - 0x77525000         C:\WINNT\System32\ICMP.DLL
    0x77320000 - 0x77337000         C:\WINNT\System32\MPRAPI.DLL
    0x75150000 - 0x75160000         C:\WINNT\System32\SAMLIB.DLL
    0x75170000 - 0x751BF000         C:\WINNT\System32\NETAPI32.DLL
    0x77BE0000 - 0x77BEF000         C:\WINNT\System32\SECUR32.DLL
    0x751C0000 - 0x751C6000         C:\WINNT\System32\NETRAP.DLL
    0x77950000 - 0x7797A000         C:\WINNT\system32\WLDAP32.DLL
    0x77A50000 - 0x77B3A000         C:\WINNT\system32\OLE32.DLL
    0x779B0000 - 0x77A4B000         C:\WINNT\system32\OLEAUT32.DLL
    0x773B0000 - 0x773DE000         C:\WINNT\System32\ACTIVEDS.DLL
    0x77380000 - 0x773A2000         C:\WINNT\System32\ADSLDPC.DLL
    0x77830000 - 0x7783E000         C:\WINNT\System32\RTUTILS.DLL
    0x77880000 - 0x7790D000         C:\WINNT\System32\SETUPAPI.DLL
    0x77C10000 - 0x77C6E000         C:\WINNT\System32\USERENV.DLL
    0x774E0000 - 0x77512000         C:\WINNT\System32\RASAPI32.DLL
    0x774C0000 - 0x774D1000         C:\WINNT\System32\rasman.dll
    0x77530000 - 0x77552000         C:\WINNT\System32\TAPI32.dll
    0x71780000 - 0x7180A000         C:\WINNT\system32\COMCTL32.DLL
    0x70BD0000 - 0x70C34000         C:\WINNT\system32\SHLWAPI.DLL
    0x77360000 - 0x77379000         C:\WINNT\System32\DHCPCSVC.DLL
    0x775A0000 - 0x77625000         C:\WINNT\System32\CLBCATQ.DLL
    0x777E0000 - 0x777E8000         C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000         C:\WINNT\System32\rasadhlp.dll
    0x6D1F0000 - 0x6D1F6000         C:\j2sdk1.4.0\jre\bin\ioser12.dll
    0x77920000 - 0x77943000         C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000         C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000         C:\WINNT\System32\PSAPI.DLL
    Local Time = Sun Aug 04 10:57:13 2002
    Elapsed Time = 76463
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
    # An error report file has been saved as hs_err_pid1636.log.
    # Please refer to the file for further information.
    Thanks a lot for any help...
    -Jer

    j2sdkee1.3.1 with j2sdk1.4.0 works good for me, but
    on Windows NT 4.0SP6. Don't know on W2K.hi Martin,
    Thanks a lot.
    Actually there were problems during deployment of ejb
    applications too. java.exe was generating errors, and were
    raising NamingExceptions during run.
    The gnumake utility I was running, for the deployment, reported
    " Error5 " during this.. which I think is something similar to
    I/O Error..
    Anyway I tried using j2sdk1.4.0_01 , the latest release .,
    and till now these errors have not reoccured.
    Now I assume this was due to some problem with the j2sdk1.4.0
    since the latest jdk seems to have solved it..
    Thanks again.
    -Jer

  • Scrollable Result Set Problem With j2sdk1.4.0_01/jakarta-tomcat-4.0.1

    Consider the Following Code with j2sdk1.4.0_01/jakarta-tomcat-4.0.1
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("Jdbc:Odbc:IMSMC","sa","");
         String sql="select * from <Table Name> ";
    Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    *************Some Code ******************
    catch (Exception ex) {
    ex.printStackTrace();
    }//End of catch     
    }//End of Try
    The Tomcat automatically shuts down If I'm using Scrollable
    Result Set and the following Error Occurs.
              Error
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D366658
    Function=[Unknown.]
    Library=c:\j2sdk1.4.0_01\jre\bin\client\jvm.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.jdbc.odbc.JdbcOdbc.setStmtAttrPtr(Native Method)
         at sun.jdbc.odbc.JdbcOdbc.SQLSetStmtAttrPtr(JdbcOdbc.java:4676)
         at sun.jdbc.odbc.JdbcOdbcResultSet.setRowStatusPtr(JdbcOdbcResultSet.java:4473)
         at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdbcResultSet.java:171)
         at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcOdbcStatement.java:423)
         - locked <02A1FE80> (a sun.jdbc.odbc.JdbcOdbcStatement)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
         at org.apache.jsp.DocumentsPendingReport$jsp._jspService(DocumentsPendingReport$jsp.java:127)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    Dynamic libraries:
    0x00400000 - 0x00406000      c:\j2sdk1.4.0_01\bin\java.exe
    0x77F80000 - 0x77FFB000      C:\WINNT\system32\ntdll.dll
    0x7C2D0000 - 0x7C332000      C:\WINNT\system32\ADVAPI32.dll
    0x7C570000 - 0x7C623000      C:\WINNT\system32\KERNEL32.DLL
    0x77D30000 - 0x77D9E000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78045000      C:\WINNT\system32\MSVCRT.dll
    0x6D330000 - 0x6D445000      c:\j2sdk1.4.0_01\jre\bin\client\jvm.dll
    0x77E10000 - 0x77E6F000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F79000      C:\WINNT\system32\GDI32.dll
    0x77570000 - 0x775A0000      C:\WINNT\system32\WINMM.dll
    0x75E60000 - 0x75E7A000      C:\WINNT\system32\IMM32.DLL
    0x6CA60000 - 0x6CA68000      C:\WINNT\system32\LPK.DLL
    0x66650000 - 0x666A4000      C:\WINNT\system32\USP10.dll
    0x6D1D0000 - 0x6D1D7000      c:\j2sdk1.4.0_01\jre\bin\hpi.dll
    0x6D300000 - 0x6D30D000      c:\j2sdk1.4.0_01\jre\bin\verify.dll
    0x6D210000 - 0x6D228000      c:\j2sdk1.4.0_01\jre\bin\java.dll
    0x6D320000 - 0x6D32D000      c:\j2sdk1.4.0_01\jre\bin\zip.dll
    0x6D2D0000 - 0x6D2DD000      C:\j2sdk1.4.0_01\jre\bin\net.dll
    0x75050000 - 0x75058000      C:\WINNT\system32\WSOCK32.dll
    0x75030000 - 0x75044000      C:\WINNT\system32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\system32\WS2HELP.DLL
    0x74FD0000 - 0x74FEE000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x6D250000 - 0x6D25A000      C:\j2sdk1.4.0_01\jre\bin\JdbcOdbc.dll
    0x0BDC0000 - 0x0BDF2000      C:\WINNT\system32\ODBC32.dll
    0x71780000 - 0x7180A000      C:\WINNT\system32\COMCTL32.dll
    0x782F0000 - 0x78538000      C:\WINNT\system32\SHELL32.dll
    0x70BD0000 - 0x70C34000      C:\WINNT\system32\SHLWAPI.DLL
    0x76B30000 - 0x76B6E000      C:\WINNT\system32\comdlg32.dll
    0x1F850000 - 0x1F866000      C:\WINNT\system32\odbcint.dll
    0x0BF00000 - 0x0BF5E000      C:\WINNT\System32\SQLSRV32.dll
    0x41090000 - 0x410BD000      C:\WINNT\System32\SQLUNIRL.dll
    0x77800000 - 0x7781E000      C:\WINNT\System32\WINSPOOL.DRV
    0x76620000 - 0x76631000      C:\WINNT\system32\MPR.DLL
    0x77820000 - 0x77827000      C:\WINNT\system32\VERSION.dll
    0x759B0000 - 0x759B6000      C:\WINNT\system32\LZ32.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.dll
    0x77A50000 - 0x77B3C000      C:\WINNT\system32\ole32.dll
    0x75170000 - 0x751BF000      C:\WINNT\System32\NETAPI32.dll
    0x7C340000 - 0x7C34F000      C:\WINNT\System32\SECUR32.DLL
    0x751C0000 - 0x751C6000      C:\WINNT\System32\NETRAP.DLL
    0x75150000 - 0x7515F000      C:\WINNT\System32\SAMLIB.DLL
    0x77950000 - 0x7797A000      C:\WINNT\system32\WLDAP32.DLL
    0x77980000 - 0x779A4000      C:\WINNT\System32\DNSAPI.DLL
    0x769A0000 - 0x769A7000      C:\WINNT\system32\NDDEAPI.DLL
    0x1FA20000 - 0x1FA36000      C:\WINNT\System32\sqlsrv32.rll
    0x0C390000 - 0x0C3A9000      C:\WINNT\system32\odbccp32.dll
    0x0C3B0000 - 0x0C3BF000      C:\WINNT\system32\DBNETLIB.DLL
    0x75500000 - 0x75504000      C:\WINNT\system32\security.dll
    0x782D0000 - 0x782EF000      C:\WINNT\system32\msv1_0.dll
    0x77440000 - 0x774B8000      C:\WINNT\system32\CRYPT32.DLL
    0x77430000 - 0x77440000      C:\WINNT\system32\MSASN1.DLL
    0x77BF0000 - 0x77C01000      C:\WINNT\system32\ntdsapi.dll
    0x782C0000 - 0x782CC000      C:\WINNT\System32\rnr20.dll
    0x77340000 - 0x77353000      C:\WINNT\system32\iphlpapi.dll
    0x77520000 - 0x77525000      C:\WINNT\system32\ICMP.DLL
    0x77320000 - 0x77337000      C:\WINNT\system32\MPRAPI.DLL
    0x773B0000 - 0x773DF000      C:\WINNT\system32\ACTIVEDS.DLL
    0x77380000 - 0x773A3000      C:\WINNT\system32\ADSLDPC.DLL
    0x77830000 - 0x7783E000      C:\WINNT\system32\RTUTILS.DLL
    0x77880000 - 0x7790E000      C:\WINNT\system32\SETUPAPI.DLL
    0x7C0F0000 - 0x7C151000      C:\WINNT\system32\USERENV.DLL
    0x774E0000 - 0x77513000      C:\WINNT\system32\RASAPI32.DLL
    0x774C0000 - 0x774D1000      C:\WINNT\system32\RASMAN.DLL
    0x77530000 - 0x77552000      C:\WINNT\system32\TAPI32.DLL
    0x77360000 - 0x77379000      C:\WINNT\system32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000      C:\WINNT\system32\rasadhlp.dll
    0x77920000 - 0x77943000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\system32\PSAPI.DLL
    Local Time = Sat May 01 11:30:40 2004
    Elapsed Time = 5
    # HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
    # Error ID : 4F530E43505002D5
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)
    Also No Error is Thrown with j2sdk1.4.0
    If I'm using Not using Scrollable Result Set, No Error is Thrown.
    Error is Thrown only with Scrollable Result set and with j2sdk1.4.0_01

    Did you forget to put the SQL statement in when you used createStatement? I added it below:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("Jdbc:Odbc:IMSMC","sa","");
    String sql="select * from <Table Name> ";
    Statement stmt=conn.createStatement(sql, ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
    Does the JDBC-ODBC bridge driver accomodate any of these settings you're trying?
    The problem shouldn't have anything to do with Tomcat. Sounds like a JDBC driver issue to me. Try to reproduce the error without Tomcat, and then see if adding the SQL corrects things at all.
    I'd read the docs to see if the bridge driver has these features. I don't think it's up to the full standard.

  • Linux - j2sdk1.4.2_06 can't set path/classpath

    I am struggling to get my java set up to write, compile and run some java programs, and honestly being a linux newbie the docs for such are somewhat confusing..
    I am trying to break this down as simple as possible.
    -I am logged into Linux as root.
    -then download the j2sdk1.4.2_06 in the /USR/ dir
    -I did chmod +x j2sdk1.4.2_06...
    -then./j2sdk1.4.2_06...
    it installed successfully.
    but setting up the path classpath is different.
    I would like two things:
    for my mozilla browser to now be java enabled, AND
    I would like to create a directory called javasrc to hold all my java source code
    but I do not want to develop in root, I want any user to be able to use the javasrc directory and be able to compile and run the programs..
    what exactly do I edit. someone said I need to edit a file in /ETC/PROFILE
    I want to try this..but I dont think it is correct
    export JAVA_HOME=/usr/j2sdk1.4.2_06
    PATH=$HOME:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/X11:/sbin:/home/mqm/bin:$JAVA_HOME/bin
    export PATHthanks

    I'd advice you to not touch CLASSPATH until you've studied how packages and classloading work. Until then it will just get on your way.
    What comes to setting PATH, the file to modify in /etc depends on your distribution -- a least in some versions of SuSE /etc/profile is generated by a script and you are supposed to modify /etc/profile.local instead. You could also edit a file called ".bashrc" in your home directory. The manual page of bash explains the differences between using these files. If you modify /etc/profile you need to either start a new login shell or source the file for the change to have effect. The lines to write are:export JAVA_HOME=/usr/j2sdk1.4.2_06
    export PATH=$PATH:$JAVA_HOME/bin

  • Signed java applet is very slow with 1.4.2_06

    We have an application which has a signed jar applets was working fine with Java Plug-in (JPI) version 1.4.1_02.
    Due to customer requirement they want to run the same applet with JPI version 1.4.2_06, After JPI upgrade the applet is running slow.
    I am not sure what sun has changed the security settings in 1.4.2_06. So, Can some one give there thoughts on why would it run slow because of JPI changes.
    Thanks in advance.
    Aj

    Hi,
    It is nothing to do with Signed applet.
    If URL Connection 's setDefaultCacheUses is set to false then this is causing to run the Applet slow. As it require to download complete jar(if any) everytime.
    From 1.4.1_02 (CachedJarURLConnection.class in jaws.jar):
    public void connect()
    throws IOException
    if(!connected)
    jarFile = JarCache.get(jarFileURL);
    if(jarFile != null)
    {�.
    From 1.4.2_06 (CachedJarURLConnection.class in plugin.jar):
    public void connect()
    throws IOException
    if(!connected)
    if(getUseCaches())
    jarFile = JarCache.get(jarFileURL);
    if(jarFile != null)
    {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • RMI problem with j2sdk1.4

    Hi,
    I have written a simple Ping program, to exercise me with RMI, this program worked fine with jdk1.3, now I have downloaded j2sdk1.4 and I have installed it, I runned the RMI program but now I have a run-time error message.
    Could you explain me what can be happened?
    Thanks a lot

    The error message + stacktrace would help...
    did you also compile with jdk1.4 or just execute with the jre shipped with 1.4?

  • Injest XML (JAXB) with Apache CXF on Weblogic 9.2.3

    I have tried all of the suggestions I can find out there, but still can not get Weblogic and CXF to play along when injesting XML.
    CXF is deployed and working in production.
    Now that I want add a method to XML results, I declared with JAX-RS like this:
    @POST
    @Consumes( "application/xml")
    @Path( "{order_id}/" + ANALYSE_PARAM )
    public void reportResult( @PathParam( "order_id") int orderId, AnalyseResults analyseResults ) {
    // NOTE: AnalyseResults is a JAXB object which we've created (i.e. mappings to Java provided)
    However, when this method is invoked, I get this:
    , I get this:
    2011-10-26 14:02:46,766 WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - WebApplicationException has been caught : no cause is available
    java.lang.IllegalArgumentException: Unable to access unsupported property javax.xml.stream.supportDTD
    at weblogic.xml.stax.ConfigurationContextBase.check(ConfigurationContextBase.java:60)
    at weblogic.xml.stax.ConfigurationContextBase.setProperty(ConfigurationContextBase.java:54)
    at weblogic.xml.stax.XMLStreamInputFactory.setProperty(XMLStreamInputFactory.java:280)
    at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:195)
    at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:166)
    at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1164)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.unmarshalFromInputStream(JAXBElementProvider.java:214)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.doUnmarshal(JAXBElementProvider.java:180)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:149)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1013)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:594)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:559)
    at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:230)
    at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:88)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:166)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
    I've done all the reading out there and taken all the suggestions:
    - the woodstox and stax2 JARs are on my classpath
    - the weblogic-application.xml file has been modified to include (a number of varieties have been tried):
    <prefer-application-packages>
              <package-name>javax.jws.*</package-name>
              <package-name>javax.xml.*</package-name>
              <package-name>org.apache.*</package-name>
    </prefer-application-packages>
    I understand the root of the issue: the System properties / JAR files which are first read by Weblogic force the loading of the weblogic.xml.stax.XMLStreamInputFactory as "the way" to create StAX InputFactories.
    But ... that Factory (for whatever reason) is incompatible with the way that CXF invokes it.
    So ... is there ANY way to get WebLogic to allow CXF to use an alternate parser?

    A support ticket (SR 3-4866617511) with Oracle has confirmed that the Weblogic StAX parser has a defect. A patch is available for WLS 10mp2 (and possibly for 9.2.4).
    However, it is also possible to work around with a different StAX implementation.
    Our choice was Woodstox and after putting the JARs (Woodstox and StaX2 mentioned below plus the xml-apis.jar and a xerces implementation JAR) in WEB-INF/lib and removing the changes to weblogic-application.xml (below), the magic was changing WEB-INF/weblogic.xml file (as described in http://download.oracle.com/docs/cd/E13222_01/wls/docs92/programming/classloading.html )to include:
    <container-descriptor>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    Why does this work?
    By using the "prefer-web-inf-classes" node, the WL Classloader looks first in the JAR files of the Web Application (rather than it's own classes). In this case it finds the META-INF/services/javax.xml.stream.XMLInputFactory from the Woodstox JAR (rather than the one from weblogic.jar). Note how this is not just about loading classes from the WEB-INF/lib JARs first ... it also affects how Weblogic interacts with the JAR Service Provider Interface (SPI ... http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html).
    However, the XercesImpl.jar is becomes necessary because when running without it, the following error occurs:
    javax.xml.datatype.FactoryFinder:Using context class loader: weblogic.utils.classloaders.ChangeAwareClassLoader@1a3c1d6 finder: weblogic.utils.classloaders.CodeGenClassFinder@488280 annotation: appsdirtbiis_dir@btb-ws/ic
    javax.xml.datatype.FactoryFinder:found null in $java.home/jaxp.properties
    javax.xml.datatype.FactoryFinder:loaded from fallback value: org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
    <Nov 8, 2011 11:58:41 AM EST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@e02837 - appName: '_appsdir_tbiis_dir', name: '/btb-ws/ic', context-path: '/btb-ws/ic'] Root cause of ServletException.
    java.lang.Error: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
    Truncated. see log file for complete stacktrace
    >
    THAT issue is due to the fact that the javaee-5.0.5-api.jar's implementation of javax.xml.datatype.DatatypeFactory provides org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl (rather than com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl which is the fallback for the JDK 1.5 implementation that ships with WL 9.2) as the fallback value.
    However, this mechanism is only used because none of the JARs (either in my app or in the standard WL distro) contain an file named "META-INF/services/java.xml.datatype.DatatypeFactory" which points to an existing Xerces implementation.
    The xml-apis.jar was necessary because of unit test I was running on the package. YMMV with the xml-apis.jar.

  • Using JAXB with Oracle CEP

    Just a tip to anyone looking to use JAXB or other APIs requiring class loading with CEP. Because CEP uses OSGi, you must provide your own class loader to use (in this example) JAXB 2.0. For example:
    cLoader = com.mycorp.cep.message.schema.ObjectFactory.class.getClassLoader();+
    jaxbCtxt = JAXBContext.newInstance("com.mycorp.cep.message.schema", cLoader);+
    UnMarsh = jaxbCtxt.createUnmarshaller();+
    The code snippet above demonstrates that before obtaining a JAXBContext object, there must be a separate class loader defined that is not the thread's default class loader. I used the JAXB ObjectFactory class that is generated when processing the schema XSD file.
    There's probably other ways to do this, but I found this way to be the easiest solution so far that works.
    --Jim L
    Edited by: user13107483 on Aug 17, 2010 8:53 AM

    I just downloaded JAXB 2.1 EA 2 from java.net
    The xjc tool supports these arguments:
    -relaxng           :  treat input as RELAX NG (experimental,unsupported)
    -relaxng-compact   :  treat input as RELAX NG compact syntax (experimental,unsupported)I haven't tested this out yet. Let me know if you try this solution.

  • Problem with J2SDK1.4.0

    hi, I just installed the J2SDk1.4.0 on my computer everything went ok but I have problems to open the html files, even with the included examples of Java itself. Every time it tells me the class (of the example) cannot be found, althoug it is in the same directory. with the appletviewer it works (f.e. appletviewer XXX.html), but if I just open the html-file it won't work. I already tried to set the class path (in autoexec.bat, and in explorer the virtual machine is on)to the directory where javac.exe,..... are but it doesn't help.
    does anyone know what I have to do because it is a little urgent to find a sollution.

    Do not set classpath to the directory that contains javac.exe, that will not help. Classpath must point to the directory that contains your class files. Be sure to include the current directory (".") in the classpath:
    set CLASSPATH=.
    Jesper

  • Anyone used JAXB with Eclipse PDE

    It was bizarre that I can use&run jaxb generated classes when I run it as Java appliation. However, when I tried to use those classes into a PDE project. it always reported "Unhandled exception caught in event loop.
    Reason:
    java.lang.NullPointerException" behind the message, system seems has problem finding "java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement"
    Any one has clue, please advise, appreciated!!!

    Hi,
    i am having the same kind of problem. I have a code
    that perfectly run as standard Java application (with
    a main method), but fails when run from a servlet
    under Tomcat.
    The error is :
    java.lang.NoClassDefFoundError:
    javax/xml/bind/StructureValidationException
    Hi,
    Are you trying the EA release?
    The beta release may need jaxb.properties file in the system classpath
    of tomcat. But I do not think you are using that release since your problem is related to the EA release which is not available anymore.
    Thanks,
    Bhakti
    However, i have put the run time jar of jaxb in the
    /WEB-INF/lib directory.
    If you have solved your problem, i am very interrested
    by your solution.
    Regards,
    C�dric

  • Does easyIO.* package come with j2sdk1.4.2_04, Win32?

    ...My first post.
    -Hello everyone.
    I have installed and compiled and executed some small *.java files with great success. I'd be very happy if someone knew how to install this package, or got some clues where to look. Thanks in advance and thanks alot.
    [Klokker.java]
    import easyIO.*;
    class Klokker {...}
    [javac says:]
    c:\tools\......\j2sdk1.4.2_04\bin\javac Klokker.java
    Klokker.java:1: package easyIO does not exist
    import easyIO.*;
    ^

    No, easyIO is not a part of the standard J2SDK. Where did you get it from? Software development libraries usually come with documentation that explains how to install and use them (e.g. a text file called "README" or "INSTALL")
    If you happen to speak Norwegian you can find some instructions here:
    http://www.universitetsforlaget.no/java/easyIO.php

  • Class not found with j2sdk1.4.2_04 but no problem with MS VM

    Hi.
    there is an application on my company's intranet hat has some applets. I installed the j2sdk1.4.2_04 and whenever I start the aplication it says "java.lang.ClassNotFoundException", but if i turn of the j2se for applets (on IE 6.0 sp1: tools>internet options>advances>uncheck use java 2 for ...) and use the microsoft VM the application works just fine.
    can someone help me???

    It seems your application uses classes from Microsoft, not only common classes (JDK 1.1.4). What the name of class in ClassNotFoundException?
    Michael

  • OC4J 10G on Windows2000 with J2SDK1.4.2_04

    C:\oc4j\j2ee\home>java -jar oc4j.jar
    04/05/14 19:01:01 Auto-deploying ../../home/applications/admin_ejb.jar (New serv
    er version detected)... Error in application default: Error loading package at f
    ile:/C:/oc4j/j2ee/home/applications/admin_ejb.jar, javac.exe not found under C:\
    Program Files\Java\j2re1.4.2_04, please use a valid jdk or specify the location
    of your java compiler in server.xml using the <java-compiler .../> tag
    Error initializing server: Error initializing ejb-module, Exception: javac.exe n
    ot found under C:\Program Files\Java\j2re1.4.2_04, please use a valid jdk or spe
    cify the location of your java compiler in server.xml using the <java-compiler .
    ../> tag
    Fatal error: Cannot instantiate ApplicationServerThread AND not in embedded mode
    - forcing exit
    Why is OC4J looking in C:\Program Files\Java\j2re1.4.2_04 instead of c:\j2sdk1.4.2_04?

    Thanks, Avi. I feel silly for overlooking this simple step. I added "c:\j2sdk1.4.2_04\bin" at the end of the PATH variable but that didn't work. When I moved it to the beginning, I finally got it to work.

Maybe you are looking for

  • XI file sender: filename validation to stop processing a file twice

    Hello folks, I have a file sender adapter for a text file with name convention that includes a date - e.g. orders_YYYYMMDD.txt. We have a business requirement to ensure that we don't post the same file more than once. The file can be huge, so it's no

  • Problem with setMaximumSize [JToggleButton]

    Hi to all. I have a little problem when I set Size of JToggleButton. I have a panel that is in a JSplitPane. This panel has GridLayout because I put into many JToggleButtons. I set PreferredSize, MinimumSize and MaximumSize. When application starts P

  • Pivot query, phantom behavior, possible bug?

    Hi experts, Oracle 11g We are trying to construct a binary type table using a pivot query. (I know there will be no 0's, I will fill that in later.) The query to create this table is as follows: create table TEMP_T1 as             select * from (    

  • Element 10 and Canon 5D Mark III RAW file

    My Element 10 can read my Canon 40D RAW files but not the 5D Mark III ones. I downloaded Element Camera RAW update 6.7 and updated Adobe App Manager but could not install the former. An error message indicates that this extension does not apply. Any

  • How to obtain the current panel name

    Hi Is there a way to get, with a function or something, the name of the current Panel I am on? Thanks, Daniel