UpdateCenter and classloader problem

View: New views
10 Messages — Rating Filter:   Alert me  

UpdateCenter and classloader problem

by Eclesia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am working on Geographic Information system platform based on NetBeans Platform 6.1.

Here is the current structure :

BASE APPLICATION :
- Module GeoTools : lib wrapper
- Module Apache commons : lib wrapper
- Module Puzzle Main : normal module, provide base GIS services

UPDATE CENTER :
- SLD Editor
- Fwtools binding
- ...some are will come once this issue fixed...

The SLD editor install correctly in the platform but
can't use correctly the geotools module because of
classloaders problems.

When I have everything in a simple project (and so only one classloader)
It works perfectly.
but when It is split on different classloader (netbeans RCP)it just go crazy, not finding some
xml files, URI problems, class cast problems ...
(I also have the same kind of problem on the jasperreport module)
I can't move everything under a single classloader, it's just impossible.


I really dont see how I can solve the problem and I'm getting frustrated
because of the weeks I've wasted on this.


If someone can give me a hand.

I can provide what is needed to test :
- source (using SVN)
- binaries
- ...
Just tell me what you need and I'll do my best to provide it.


regards


johann.sorel@...

____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails

Re: UpdateCenter and classloader problem

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

are you talking this project?
http://docs.codehaus.org/display/PUZZLEGIS/Puzzle+GIS+Project

I might be able to check that out. no promises though..
how do you lookup the xml files on classpath? what are the URI problems
you talking about?


Milos

mkleint@...
milos.kleint@...

johann Sorel wrote:

> Hello,
>
> I am working on Geographic Information system platform based on NetBeans Platform 6.1.
>
> Here is the current structure :
>
> BASE APPLICATION :
> - Module GeoTools : lib wrapper
> - Module Apache commons : lib wrapper
> - Module Puzzle Main : normal module, provide base GIS services
>
> UPDATE CENTER :
> - SLD Editor
> - Fwtools binding
> - ...some are will come once this issue fixed...
>
> The SLD editor install correctly in the platform but
> can't use correctly the geotools module because of
> classloaders problems.
>
> When I have everything in a simple project (and so only one classloader)
> It works perfectly.
> but when It is split on different classloader (netbeans RCP)it just go crazy, not finding some
> xml files, URI problems, class cast problems ...
> (I also have the same kind of problem on the jasperreport module)
> I can't move everything under a single classloader, it's just impossible.
>
>
> I really dont see how I can solve the problem and I'm getting frustrated
> because of the weeks I've wasted on this.
>
>
> If someone can give me a hand.
>
> I can provide what is needed to test :
> - source (using SVN)
> - binaries
> - ...
> Just tell me what you need and I'll do my best to provide it.
>
>
> regards
>
>
> johann.sorel@...
>
> ____________________________________________________________
> GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
> Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails
>  


Re: UpdateCenter and classloader problem

by Eclesia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Yes that's the project.

You can found a wiki explaining how to build from source :
http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source

It's a mix using Maven and Ant to dispatch the jars in the correct
netbeans modules. I haven't found another way to do it, If you know
a way to make a netbeans lib wrapper module use maven I would like to hear it.


If you want to try the sld editor out of puzzle :
(to see what should be the result)
http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip

It would be really great If you could have a look.


> how do you lookup the xml files on classpath? what are the URI problems
> you talking about?

I dont really know ... Everything is made in the geographic library GeoTools.
that means I can't change the code to suit netbeans, I believe the only choice left
is to play with classloaders.


regards

johann.sorel@...



> -----Original Message-----
> From: milos.kleint@...
> Sent: Wed, 07 May 2008 16:00:15 +0200
> To: dev@...
> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>
> are you talking this project?
> http://docs.codehaus.org/display/PUZZLEGIS/Puzzle+GIS+Project
>
> I might be able to check that out. no promises though..
> how do you lookup the xml files on classpath? what are the URI problems
> you talking about?
>
>
> Milos
>
> mkleint@...
> milos.kleint@...
>
> johann Sorel wrote:
>> Hello,
>>
>> I am working on Geographic Information system platform based on NetBeans
>> Platform 6.1.
>>
>> Here is the current structure :
>>
>> BASE APPLICATION :
>> - Module GeoTools : lib wrapper
>> - Module Apache commons : lib wrapper
>> - Module Puzzle Main : normal module, provide base GIS services
>>
>> UPDATE CENTER :
>> - SLD Editor
>> - Fwtools binding
>> - ...some are will come once this issue fixed...
>>
>> The SLD editor install correctly in the platform but
>> can't use correctly the geotools module because of
>> classloaders problems.
>>
>> When I have everything in a simple project (and so only one classloader)
>> It works perfectly.
>> but when It is split on different classloader (netbeans RCP)it just go
>> crazy, not finding some
>> xml files, URI problems, class cast problems ...
>> (I also have the same kind of problem on the jasperreport module)
>> I can't move everything under a single classloader, it's just
>> impossible.
>>
>>
>> I really dont see how I can solve the problem and I'm getting frustrated
>> because of the weeks I've wasted on this.
>>
>>
>> If someone can give me a hand.
>>
>> I can provide what is needed to test :
>> - source (using SVN)
>> - binaries
>> - ...
>> Just tell me what you need and I'll do my best to provide it.
>>
>>
>> regards
>>
>>
>> johann.sorel@...
>>

Re: UpdateCenter and classloader problem

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

johann Sorel wrote:

> Hello,
>
> Yes that's the project.
>
> You can found a wiki explaining how to build from source :
> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>
> It's a mix using Maven and Ant to dispatch the jars in the correct
> netbeans modules. I haven't found another way to do it, If you know
> a way to make a netbeans lib wrapper module use maven I would like to hear it.
>  
well, you could build the whole application using maven
http://mojo.codehaus.org/nbm-maven-plugin/
http://www.netbeans.org/download/magazine/04/nbmag4-modulesmaven.pdf

the latest (3.1.1) version of maven support includes a sample archetype
for platform app. Not everything done though (like creating a webstart
app and application zip/installers) but it's in the works.

Milos

>
> If you want to try the sld editor out of puzzle :
> (to see what should be the result)
> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>
> It would be really great If you could have a look.
>
>
>  
>> how do you lookup the xml files on classpath? what are the URI problems
>> you talking about?
>>    
>
> I dont really know ... Everything is made in the geographic library GeoTools.
> that means I can't change the code to suit netbeans, I believe the only choice left
> is to play with classloaders.
>
>
> regards
>
> johann.sorel@...
>
>
>
>  
>> -----Original Message-----
>> From: milos.kleint@...
>> Sent: Wed, 07 May 2008 16:00:15 +0200
>> To: dev@...
>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>
>> are you talking this project?
>> http://docs.codehaus.org/display/PUZZLEGIS/Puzzle+GIS+Project
>>
>> I might be able to check that out. no promises though..
>> how do you lookup the xml files on classpath? what are the URI problems
>> you talking about?
>>
>>
>> Milos
>>
>> mkleint@...
>> milos.kleint@...
>>
>> johann Sorel wrote:
>>    
>>> Hello,
>>>
>>> I am working on Geographic Information system platform based on NetBeans
>>> Platform 6.1.
>>>
>>> Here is the current structure :
>>>
>>> BASE APPLICATION :
>>> - Module GeoTools : lib wrapper
>>> - Module Apache commons : lib wrapper
>>> - Module Puzzle Main : normal module, provide base GIS services
>>>
>>> UPDATE CENTER :
>>> - SLD Editor
>>> - Fwtools binding
>>> - ...some are will come once this issue fixed...
>>>
>>> The SLD editor install correctly in the platform but
>>> can't use correctly the geotools module because of
>>> classloaders problems.
>>>
>>> When I have everything in a simple project (and so only one classloader)
>>> It works perfectly.
>>> but when It is split on different classloader (netbeans RCP)it just go
>>> crazy, not finding some
>>> xml files, URI problems, class cast problems ...
>>> (I also have the same kind of problem on the jasperreport module)
>>> I can't move everything under a single classloader, it's just
>>> impossible.
>>>
>>>
>>> I really dont see how I can solve the problem and I'm getting frustrated
>>> because of the weeks I've wasted on this.
>>>
>>>
>>> If someone can give me a hand.
>>>
>>> I can provide what is needed to test :
>>> - source (using SVN)
>>> - binaries
>>> - ...
>>> Just tell me what you need and I'll do my best to provide it.
>>>
>>>
>>> regards
>>>
>>>
>>> johann.sorel@...
>>>
>>>      


Re: UpdateCenter and classloader problem

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

johann Sorel wrote:

> Hello,
>
> Yes that's the project.
>
> You can found a wiki explaining how to build from source :
> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>
> It's a mix using Maven and Ant to dispatch the jars in the correct
> netbeans modules. I haven't found another way to do it, If you know
> a way to make a netbeans lib wrapper module use maven I would like to hear it.
>
>
> If you want to try the sld editor out of puzzle :
> (to see what should be the result)
> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>
> It would be really great If you could have a look.
>
>
>  
>> how do you lookup the xml files on classpath? what are the URI problems
>> you talking about?
>>    
>
> I dont really know ... Everything is made in the geographic library GeoTools.
> that means I can't change the code to suit netbeans, I believe the only choice left
> is to play with classloaders.
>  

can you at least point me to the code that is failing? I've tried to
look at it but there's really heaps of binaries thrown in and I'm not
even sure how to reproduce the problem

Milos

>
> regards
>
> johann.sorel@...
>
>
>
>  
>> -----Original Message-----
>> From: milos.kleint@...
>> Sent: Wed, 07 May 2008 16:00:15 +0200
>> To: dev@...
>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>
>> are you talking this project?
>> http://docs.codehaus.org/display/PUZZLEGIS/Puzzle+GIS+Project
>>
>> I might be able to check that out. no promises though..
>> how do you lookup the xml files on classpath? what are the URI problems
>> you talking about?
>>
>>
>> Milos
>>
>> mkleint@...
>> milos.kleint@...
>>
>> johann Sorel wrote:
>>    
>>> Hello,
>>>
>>> I am working on Geographic Information system platform based on NetBeans
>>> Platform 6.1.
>>>
>>> Here is the current structure :
>>>
>>> BASE APPLICATION :
>>> - Module GeoTools : lib wrapper
>>> - Module Apache commons : lib wrapper
>>> - Module Puzzle Main : normal module, provide base GIS services
>>>
>>> UPDATE CENTER :
>>> - SLD Editor
>>> - Fwtools binding
>>> - ...some are will come once this issue fixed...
>>>
>>> The SLD editor install correctly in the platform but
>>> can't use correctly the geotools module because of
>>> classloaders problems.
>>>
>>> When I have everything in a simple project (and so only one classloader)
>>> It works perfectly.
>>> but when It is split on different classloader (netbeans RCP)it just go
>>> crazy, not finding some
>>> xml files, URI problems, class cast problems ...
>>> (I also have the same kind of problem on the jasperreport module)
>>> I can't move everything under a single classloader, it's just
>>> impossible.
>>>
>>>
>>> I really dont see how I can solve the problem and I'm getting frustrated
>>> because of the weeks I've wasted on this.
>>>
>>>
>>> If someone can give me a hand.
>>>
>>> I can provide what is needed to test :
>>> - source (using SVN)
>>> - binaries
>>> - ...
>>> Just tell me what you need and I'll do my best to provide it.
>>>
>>>
>>> regards
>>>
>>>
>>> johann.sorel@...
>>>
>>>      


Re: UpdateCenter and classloader problem

by Eclesia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,


On the svn trunk you can find the folder : puzzle and modules.
First you must compile puzzle.
Then you go in modules and you open the sld_editor in netbeans.
You will have to fix the platform path to use puzzle.

Then you run the module, you will see a "tools" tab
on the right. When you explore the nodes you will
found the sld editor tool. double click.

Try to make a new file ....
And here it raise the errors.

I hope it helps :) .

thanks for having a look.


> -----Original Message-----
> From: milos.kleint@...
> Sent: Thu, 15 May 2008 08:54:19 +0200
> To: dev@...
> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>
> johann Sorel wrote:
>> Hello,
>>
>> Yes that's the project.
>>
>> You can found a wiki explaining how to build from source :
>> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>>
>> It's a mix using Maven and Ant to dispatch the jars in the correct
>> netbeans modules. I haven't found another way to do it, If you know
>> a way to make a netbeans lib wrapper module use maven I would like to
>> hear it.
>>
>>
>> If you want to try the sld editor out of puzzle :
>> (to see what should be the result)
>> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>>
>> It would be really great If you could have a look.
>>
>>
>>
>>> how do you lookup the xml files on classpath? what are the URI problems
>>> you talking about?
>>>
>>
>> I dont really know ... Everything is made in the geographic library
>> GeoTools.
>> that means I can't change the code to suit netbeans, I believe the only
>> choice left
>> is to play with classloaders.
>>
>
> can you at least point me to the code that is failing? I've tried to
> look at it but there's really heaps of binaries thrown in and I'm not
> even sure how to reproduce the problem
>
> Milos
>

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
Check it out at http://www.inbox.com/marineaquarium

Re: UpdateCenter and classloader problem

by Milos Kleint-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

at which point shall I get exceptions? I could create a new file without
problems.
see screenshot.

can you post the exceptions you are getting?

i'm using the netbeans dev build from 1st of May

Milos

johann Sorel wrote:

> Hello,
>
>
> On the svn trunk you can find the folder : puzzle and modules.
> First you must compile puzzle.
> Then you go in modules and you open the sld_editor in netbeans.
> You will have to fix the platform path to use puzzle.
>
> Then you run the module, you will see a "tools" tab
> on the right. When you explore the nodes you will
> found the sld editor tool. double click.
>
> Try to make a new file ....
> And here it raise the errors.
>
> I hope it helps :) .
>
> thanks for having a look.
>
>
>  
>> -----Original Message-----
>> From: milos.kleint@...
>> Sent: Thu, 15 May 2008 08:54:19 +0200
>> To: dev@...
>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>
>> johann Sorel wrote:
>>    
>>> Hello,
>>>
>>> Yes that's the project.
>>>
>>> You can found a wiki explaining how to build from source :
>>> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>>>
>>> It's a mix using Maven and Ant to dispatch the jars in the correct
>>> netbeans modules. I haven't found another way to do it, If you know
>>> a way to make a netbeans lib wrapper module use maven I would like to
>>> hear it.
>>>
>>>
>>> If you want to try the sld editor out of puzzle :
>>> (to see what should be the result)
>>> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>>>
>>> It would be really great If you could have a look.
>>>
>>>
>>>
>>>      
>>>> how do you lookup the xml files on classpath? what are the URI problems
>>>> you talking about?
>>>>
>>>>        
>>> I dont really know ... Everything is made in the geographic library
>>> GeoTools.
>>> that means I can't change the code to suit netbeans, I believe the only
>>> choice left
>>> is to play with classloaders.
>>>
>>>      
>> can you at least point me to the code that is failing? I've tried to
>> look at it but there's really heaps of binaries thrown in and I'm not
>> even sure how to reproduce the problem
>>
>> Milos
>>
>>    
>
> ____________________________________________________________
> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
> Check it out at http://www.inbox.com/marineaquarium
>  


puzzle.png (145K) Download Attachment

Re: UpdateCenter and classloader problem

by Eclesia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I use NetBeans 6.1 RCP (official release, not the dev platform)

I have this error when trying to make a new file on both windowXP and ubuntu x64 :
(Dont attack me if you see eclipse in the error log, not my fault)

java.lang.IllegalArgumentException: resolve against non-hierarchical or relative base
        at org.eclipse.emf.common.util.URI.resolve(URI.java:1853)
        at org.eclipse.emf.common.util.URI.resolve(URI.java:1826)
        at org.eclipse.emf.common.EMFPlugin.getBaseURL(EMFPlugin.java:212)
        at org.eclipse.xsd.util.XSDResourceImpl.createEntityResolver(XSDResourceImpl.java:435)
        at org.eclipse.xsd.util.DefaultJAXPConfiguration.createEntityResolver(DefaultJAXPConfiguration.java:113)
        at org.eclipse.xsd.util.DefaultJAXPConfiguration.createDocumentBuilder(DefaultJAXPConfiguration.java:106)
        at org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:334)
        at org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:372)
        at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:680)
        at org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:784)
        at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
        at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
        at org.geotools.xml.Schemas.parse(Schemas.java:246)
        at org.geotools.xml.XSD.buildSchema(XSD.java:169)
        at org.geotools.xml.XSD.getSchema(XSD.java:126)
        at org.geotools.xml.SchemaLocator.locateSchema(SchemaLocator.java:91)
        at org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:285)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.geotools.xml.Parser.parse(Parser.java:179)
        at org.geotools.xml.Parser.parse(Parser.java:139)
        at org.puzzle.sldeditor.gui.SLDEditorTool.open(SLDEditorTool.java:89)
        at org.puzzle.sldeditor.gui.SLDEditorTool.guiOpenActionPerformed(SLDEditorTool.java:299)
        at org.puzzle.sldeditor.gui.SLDEditorTool.access$100(SLDEditorTool.java:39)
        at org.puzzle.sldeditor.gui.SLDEditorTool$2.actionPerformed(SLDEditorTool.java:256)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
        at java.awt.Component.processMouseEvent(Component.java:6041)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5806)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4413)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2440)
        at java.awt.Component.dispatchEvent(Component.java:4243)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)




Is there something in the dev version of netbeans rcp that fix this problem ?

regards.


> -----Original Message-----
> From: milos.kleint@...
> Sent: Thu, 15 May 2008 10:13:40 +0200
> To: dev@...
> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>
> at which point shall I get exceptions? I could create a new file without
> problems.
> see screenshot.
>
> can you post the exceptions you are getting?
>
> i'm using the netbeans dev build from 1st of May
>
> Milos
>
> johann Sorel wrote:
>> Hello,
>>
>>
>> On the svn trunk you can find the folder : puzzle and modules.
>> First you must compile puzzle.
>> Then you go in modules and you open the sld_editor in netbeans.
>> You will have to fix the platform path to use puzzle.
>>
>> Then you run the module, you will see a "tools" tab
>> on the right. When you explore the nodes you will
>> found the sld editor tool. double click.
>>
>> Try to make a new file ....
>> And here it raise the errors.
>>
>> I hope it helps :) .
>>
>> thanks for having a look.
>>
>>
>>
>>> -----Original Message-----
>>> From: milos.kleint@...
>>> Sent: Thu, 15 May 2008 08:54:19 +0200
>>> To: dev@...
>>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>>
>>> johann Sorel wrote:
>>>
>>>> Hello,
>>>>
>>>> Yes that's the project.
>>>>
>>>> You can found a wiki explaining how to build from source :
>>>> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>>>>
>>>> It's a mix using Maven and Ant to dispatch the jars in the correct
>>>> netbeans modules. I haven't found another way to do it, If you know
>>>> a way to make a netbeans lib wrapper module use maven I would like to
>>>> hear it.
>>>>
>>>>
>>>> If you want to try the sld editor out of puzzle :
>>>> (to see what should be the result)
>>>> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>>>>
>>>> It would be really great If you could have a look.
>>>>
>>>>
>>>>
>>>>
>>>>> how do you lookup the xml files on classpath? what are the URI
>>>>> problems
>>>>> you talking about?
>>>>>
>>>>>
>>>> I dont really know ... Everything is made in the geographic library
>>>> GeoTools.
>>>> that means I can't change the code to suit netbeans, I believe the
>>>> only
>>>> choice left
>>>> is to play with classloaders.
>>>>
>>>>
>>> can you at least point me to the code that is failing? I've tried to
>>> look at it but there's really heaps of binaries thrown in and I'm not
>>> even sure how to reproduce the problem
>>>
>>> Milos
>>>
>>>
>>
>> ____________________________________________________________
>> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on
>> your desktop!
>> Check it out at http://www.inbox.com/marineaquarium
>>

Re: UpdateCenter and classloader problem

by Eclesia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I tryed a devlopment version of netbeans platform...
NetBeans IDE Dev (Build 200805150003)

And ... it works now. :)


Is there going to be a release like a 6.1.1 or 6.2 ?
or only netbeans7 next november ?

regards



> -----Original Message-----
> From: sorel.johann@...
> Sent: Thu, 15 May 2008 01:04:00 -0800
> To: dev@...
> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>
>
> I use NetBeans 6.1 RCP (official release, not the dev platform)
>
> I have this error when trying to make a new file on both windowXP and
> ubuntu x64 :
> (Dont attack me if you see eclipse in the error log, not my fault)
>
> java.lang.IllegalArgumentException: resolve against non-hierarchical or
> relative base
>         at org.eclipse.emf.common.util.URI.resolve(URI.java:1853)
>         at org.eclipse.emf.common.util.URI.resolve(URI.java:1826)
>         at
> org.eclipse.emf.common.EMFPlugin.getBaseURL(EMFPlugin.java:212)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.createEntityResolver(XSDResourceImpl.java:435)
>         at
> org.eclipse.xsd.util.DefaultJAXPConfiguration.createEntityResolver(DefaultJAXPConfiguration.java:113)
>         at
> org.eclipse.xsd.util.DefaultJAXPConfiguration.createDocumentBuilder(DefaultJAXPConfiguration.java:106)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:334)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:372)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:680)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:784)
>         at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
>         at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
>         at org.geotools.xml.Schemas.parse(Schemas.java:246)
>         at org.geotools.xml.XSD.buildSchema(XSD.java:169)
>         at org.geotools.xml.XSD.getSchema(XSD.java:126)
>         at
> org.geotools.xml.SchemaLocator.locateSchema(SchemaLocator.java:91)
>         at
> org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:285)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>         at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> Source)
>         at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>         at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown

> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at org.geotools.xml.Parser.parse(Parser.java:179)
>         at org.geotools.xml.Parser.parse(Parser.java:139)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool.open(SLDEditorTool.java:89)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool.guiOpenActionPerformed(SLDEditorTool.java:299)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool.access$100(SLDEditorTool.java:39)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool$2.actionPerformed(SLDEditorTool.java:256)
>         at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
>         at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
>         at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
>         at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
>         at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
>         at
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
>         at java.awt.Component.processMouseEvent(Component.java:6041)
>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
>         at java.awt.Component.processEvent(Component.java:5806)
>         at java.awt.Container.processEvent(Container.java:2058)
>         at java.awt.Component.dispatchEventImpl(Component.java:4413)
>         at java.awt.Container.dispatchEventImpl(Container.java:2116)
>         at java.awt.Component.dispatchEvent(Component.java:4243)
>         at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
>         at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
>         at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
>         at java.awt.Container.dispatchEventImpl(Container.java:2102)
>         at java.awt.Window.dispatchEventImpl(Window.java:2440)
>         at java.awt.Component.dispatchEvent(Component.java:4243)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
>         at
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
>         at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
>         at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
>         at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>
>
>
>
> Is there something in the dev version of netbeans rcp that fix this
> problem ?
>
> regards.
>
>
>> -----Original Message-----
>> From: milos.kleint@...
>> Sent: Thu, 15 May 2008 10:13:40 +0200
>> To: dev@...
>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>
>> at which point shall I get exceptions? I could create a new file without
>> problems.
>> see screenshot.
>>
>> can you post the exceptions you are getting?
>>
>> i'm using the netbeans dev build from 1st of May
>>
>> Milos
>>
>> johann Sorel wrote:
>>> Hello,
>>>
>>>
>>> On the svn trunk you can find the folder : puzzle and modules.
>>> First you must compile puzzle.
>>> Then you go in modules and you open the sld_editor in netbeans.
>>> You will have to fix the platform path to use puzzle.
>>>
>>> Then you run the module, you will see a "tools" tab
>>> on the right. When you explore the nodes you will
>>> found the sld editor tool. double click.
>>>
>>> Try to make a new file ....
>>> And here it raise the errors.
>>>
>>> I hope it helps :) .
>>>
>>> thanks for having a look.
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: milos.kleint@...
>>>> Sent: Thu, 15 May 2008 08:54:19 +0200
>>>> To: dev@...
>>>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>>>
>>>> johann Sorel wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Yes that's the project.
>>>>>
>>>>> You can found a wiki explaining how to build from source :
>>>>> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>>>>>
>>>>> It's a mix using Maven and Ant to dispatch the jars in the correct
>>>>> netbeans modules. I haven't found another way to do it, If you know
>>>>> a way to make a netbeans lib wrapper module use maven I would like to
>>>>> hear it.
>>>>>
>>>>>
>>>>> If you want to try the sld editor out of puzzle :
>>>>> (to see what should be the result)
>>>>> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>>>>>
>>>>> It would be really great If you could have a look.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> how do you lookup the xml files on classpath? what are the URI
>>>>>> problems
>>>>>> you talking about?
>>>>>>
>>>>>>
>>>>> I dont really know ... Everything is made in the geographic library
>>>>> GeoTools.
>>>>> that means I can't change the code to suit netbeans, I believe the
>>>>> only
>>>>> choice left
>>>>> is to play with classloaders.
>>>>>
>>>>>
>>>> can you at least point me to the code that is failing? I've tried to
>>>> look at it but there's really heaps of binaries thrown in and I'm not
>>>> even sure how to reproduce the problem
>>>>
>>>> Milos
>>>>
>>>>
>>>
>>> ____________________________________________________________
>>> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on
>>> your desktop!
>>> Check it out at http://www.inbox.com/marineaquarium
>>>

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!

Re: UpdateCenter and classloader problem

by Shanbag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Fri, May 16, 2008 at 10:25 PM, johann Sorel <sorel.johann@...> wrote:

Hello,

I tryed a devlopment version of netbeans platform...
NetBeans IDE Dev (Build 200805150003)

And ... it works now. :)


Is there going to be a release like a 6.1.1 or 6.2 ?
or only netbeans7 next november ?
Yes NetBans 6.5
Next September!

regards



> -----Original Message-----
> From: sorel.johann@...
> Sent: Thu, 15 May 2008 01:04:00 -0800
> To: dev@...
> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>
>
> I use NetBeans 6.1 RCP (official release, not the dev platform)
>
> I have this error when trying to make a new file on both windowXP and
> ubuntu x64 :
> (Dont attack me if you see eclipse in the error log, not my fault)
>
> java.lang.IllegalArgumentException: resolve against non-hierarchical or
> relative base
>         at org.eclipse.emf.common.util.URI.resolve(URI.java:1853)
>         at org.eclipse.emf.common.util.URI.resolve(URI.java:1826)
>         at
> org.eclipse.emf.common.EMFPlugin.getBaseURL(EMFPlugin.java:212)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.createEntityResolver(XSDResourceImpl.java:435)
>         at
> org.eclipse.xsd.util.DefaultJAXPConfiguration.createEntityResolver(DefaultJAXPConfiguration.java:113)
>         at
> org.eclipse.xsd.util.DefaultJAXPConfiguration.createDocumentBuilder(DefaultJAXPConfiguration.java:106)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:334)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.getDocument(XSDResourceImpl.java:372)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:680)
>         at
> org.eclipse.xsd.util.XSDResourceImpl.doLoad(XSDResourceImpl.java:784)
>         at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094)
>         at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900)
>         at org.geotools.xml.Schemas.parse(Schemas.java:246)
>         at org.geotools.xml.XSD.buildSchema(XSD.java:169)
>         at org.geotools.xml.XSD.getSchema(XSD.java:126)
>         at
> org.geotools.xml.SchemaLocator.locateSchema(SchemaLocator.java:91)
>         at
> org.geotools.xml.impl.ParserHandler.startElement(ParserHandler.java:285)
>         at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
>         at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> Source)
>         at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>         at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at org.geotools.xml.Parser.parse(Parser.java:179)
>         at org.geotools.xml.Parser.parse(Parser.java:139)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool.open(SLDEditorTool.java:89)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool.guiOpenActionPerformed(SLDEditorTool.java:299)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool.access$100(SLDEditorTool.java:39)
>         at
> org.puzzle.sldeditor.gui.SLDEditorTool$2.actionPerformed(SLDEditorTool.java:256)
>         at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
>         at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
>         at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
>         at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
>         at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
>         at
> java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
>         at java.awt.Component.processMouseEvent(Component.java:6041)
>         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
>         at java.awt.Component.processEvent(Component.java:5806)
>         at java.awt.Container.processEvent(Container.java:2058)
>         at java.awt.Component.dispatchEventImpl(Component.java:4413)
>         at java.awt.Container.dispatchEventImpl(Container.java:2116)
>         at java.awt.Component.dispatchEvent(Component.java:4243)
>         at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
>         at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
>         at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
>         at java.awt.Container.dispatchEventImpl(Container.java:2102)
>         at java.awt.Window.dispatchEventImpl(Window.java:2440)
>         at java.awt.Component.dispatchEvent(Component.java:4243)
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
>         at
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
>         at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
>         at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
>         at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>
>
>
>
> Is there something in the dev version of netbeans rcp that fix this
> problem ?
>
> regards.
>
>
>> -----Original Message-----
>> From: milos.kleint@...
>> Sent: Thu, 15 May 2008 10:13:40 +0200
>> To: dev@...
>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>
>> at which point shall I get exceptions? I could create a new file without
>> problems.
>> see screenshot.
>>
>> can you post the exceptions you are getting?
>>
>> i'm using the netbeans dev build from 1st of May
>>
>> Milos
>>
>> johann Sorel wrote:
>>> Hello,
>>>
>>>
>>> On the svn trunk you can find the folder : puzzle and modules.
>>> First you must compile puzzle.
>>> Then you go in modules and you open the sld_editor in netbeans.
>>> You will have to fix the platform path to use puzzle.
>>>
>>> Then you run the module, you will see a "tools" tab
>>> on the right. When you explore the nodes you will
>>> found the sld editor tool. double click.
>>>
>>> Try to make a new file ....
>>> And here it raise the errors.
>>>
>>> I hope it helps :) .
>>>
>>> thanks for having a look.
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: milos.kleint@...
>>>> Sent: Thu, 15 May 2008 08:54:19 +0200
>>>> To: dev@...
>>>> Subject: Re: [openide-dev] UpdateCenter and classloader problem
>>>>
>>>> johann Sorel wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Yes that's the project.
>>>>>
>>>>> You can found a wiki explaining how to build from source :
>>>>> http://docs.codehaus.org/display/PUZZLEGIS/Build+from+source
>>>>>
>>>>> It's a mix using Maven and Ant to dispatch the jars in the correct
>>>>> netbeans modules. I haven't found another way to do it, If you know
>>>>> a way to make a netbeans lib wrapper module use maven I would like to
>>>>> hear it.
>>>>>
>>>>>
>>>>> If you want to try the sld editor out of puzzle :
>>>>> (to see what should be the result)
>>>>> http://www.ftp-developpez.com/altersig/logiciels/SLDEditor.zip
>>>>>
>>>>> It would be really great If you could have a look.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> how do you lookup the xml files on classpath? what are the URI
>>>>>> problems
>>>>>> you talking about?
>>>>>>
>>>>>>
>>>>> I dont really know ... Everything is made in the geographic library
>>>>> GeoTools.
>>>>> that means I can't change the code to suit netbeans, I believe the
>>>>> only
>>>>> choice left
>>>>> is to play with classloaders.
>>>>>
>>>>>
>>>> can you at least point me to the code that is failing? I've tried to
>>>> look at it but there's really heaps of binaries thrown in and I'm not
>>>> even sure how to reproduce the problem
>>>>
>>>> Milos
>>>>
>>>>
>>>
>>> ____________________________________________________________
>>> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on
>>> your desktop!
>>> Check it out at http://www.inbox.com/marineaquarium
>>>

____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!



--
-Rajath Shanbag