I get classloader errors from (re-)loading the Oracle JDBC driver when
I attempt to "Restart Server" in hosted mode.

java.lang.UnsatisfiedLinkError: Native Library
/.../oracle/product/10.2.0.4.0/libocijdbc10.so already loaded in
another classloader

Is there something I can do to get pass this?

I'm currently adding the oracle jar to the classpath on the ant hosted target:

oracle.home: /.../oracle/product/10.2.0.4.0
oracle.jar: /.../oracle/product/10.2.0.4.0/ojdbc14.jar

  <target name="hosted" depends="compile" description="Run hosted mode">
    <java failonerror="true" fork="true"
classname="com.google.gwt.dev.HostedMode"
          jvm="/usr/java/jdk1.6/bin/java">
      <env key="LD_LIBRARY_PATH" value="${oracle.home}"/>
      <classpath>
        <pathelement location="${src.home}"/>
        <path refid="project.class.path"/>
        <pathelement location="${oracle.jar}"/>
      </classpath>
      <jvmarg value="-Xmx256M"/>
      <arg value="-startupUrl"/>
      <arg value="Foo.html"/>
      <!-- Additional arguments like -style PRETTY or -logLevel DEBUG -->
      <arg value="foo.Foo"/>
    </java>
  </target>

ojdbc14.jar is not in war/WEB-INF/lib.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to