[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] Eclipse + ClassLoader + LocalCatalog
|
Dear all,
I have the following problem.
I created a new data type from XML content.
When I run uDig for the time in a clean workspace, everything works
well. I can create services that are displayed in the localcatalog view.
When I close and try to run uDig once again, previously loaded services
are loaded through the ServiceExtension extension. It seems that the XML
parser used to load my service is the one from the JDK, not the xerces
librairy I included in my plugin, not the xerces version included in the
lib plugin.
As I use Castor for XML mapping, I get an exception when reading XML
content.
I really believe it is a problem of classloader but I don't know what to do?
Any Idea ?
I already encountered a similar problem when embedding Jetty in uDig, I
worked very well on first run but never again. I did not resolve this
bug. This new problem let me say that it could be a problem with xml
parsers as Jetty also uses XML for its configuration.
Thanks for your help
Vincent.
PS: I did not forget my previous questions (one week ago) to display
layers in a heriarchical manner, but I tried to diplay them first in a
flat way. Can the members method on IGeoResource help me ?
Here is the console log (all log4j events were not present during first
clean run)
log4j:ERROR A "org.apache.log4j.PatternLayout" object is not assignable
to a "org.apache.log4j.Layout" variable.
log4j:ERROR The class "org.apache.log4j.Layout" was loaded by
log4j:ERROR
[org.eclipse.core.runtime.adaptor.EclipseClassLoader@1d314cc] whereas
object of type
log4j:ERROR "org.apache.log4j.PatternLayout" was loaded by
[org.eclipse.core.runtime.adaptor.EclipseClassLoader@cb754f].
log4j:ERROR No layout set for the appender named [A1].
log4j:ERROR A "org.apache.log4j.PatternLayout" object is not assignable
to a "org.apache.log4j.Layout" variable.
log4j:ERROR The class "org.apache.log4j.Layout" was loaded by
log4j:ERROR
[org.eclipse.core.runtime.adaptor.EclipseClassLoader@1d314cc] whereas
object of type
log4j:ERROR "org.apache.log4j.PatternLayout" was loaded by
[org.eclipse.core.runtime.adaptor.EclipseClassLoader@cb754f].
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
log4j:ERROR No layout set for the appender named [A1].
action.remove: 'elcl16/remove_co.gif' found action.remove
action.remove: 'dlcl16/remove_co.gif' found action.remove
Exception in thread "TsoChannelsWatcher, OASIS_TSO_CHANNELS_1_0"
java.lang.RuntimeException: Could not instantiate parser
org.apache.xerces.parsers.SAXParser: java.lang.ClassCastException:
org.apache.xerces.parsers.XML11Configuration
at
org.exolab.castor.util.LocalConfiguration.getParser(LocalConfiguration.java:332)
at
org.exolab.castor.util.LocalConfiguration.getParser(LocalConfiguration.java:263)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:642)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:565)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:748)
at
net.eads.irgs5.oasis.tsochannels.model.castor.TSO_Channel.unmarshalTSO_Channel(TSO_Channel.java:619)
at
net.eads.irgs5.oasis.tsochannels.catalog.TsoChannelsWatcher.run(TsoChannelsWatcher.java:157)
at java.lang.Thread.run(Unknown Source)
Here is a message I get since I updated from 1.0.5 to 1.1M2 : in
${workspace}/metadata/.log, maybe it can help. I get this message at
each uDig run.
!ENTRY org.eclipse.core.runtime 2 2 2006-02-01 20:03:21.820
!MESSAGE Job found still running after platform shutdown. Jobs should
be canceled by the plugin that scheduled them during shutdown:
net.refractions.udig.project.ui.internal.render.displayAdapter.impl.EventJob
!SESSION Wed Feb 01 20:03:27 CET 2006
------------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 2006-02-01 20:03:27.335
!MESSAGE -showsplash
!STACK
java.io.IOException: CreateProcess:
E:\udig_sdk_1.1M2-nightlybuild.26012006\eclipse -name Eclipse
-showsplash 600
D:\dev\workspaces\uDig-workspace\.metadata\.plugins\org.eclipse.pde.core\uDig\org.eclipse.osgi\nl\fr\splash.bmp
error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.eclipse.core.launcher.Main.runCommand(Main.java:1565)
at org.eclipse.core.launcher.Main.handleSplash(Main.java:1541)
at org.eclipse.core.launcher.Main.basicRun(Main.java:276)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)