Plugin: ClassNotFoundException "myGroup.eclipse.SamplePlugin"

Post here questions and problems related to oXygen frameworks/document types.
Water
Posts: 1

Plugin: ClassNotFoundException "myGroup.eclipse.SamplePlugin"

Tue Jan 26, 2016 4:24 pm

Hello dear Oxygen fans,
At the moment I want to be able to write a plugin for Oxygen using eclipse.
My latest problem is the following "ClassNotFoundException: myGroup.eclipse.SamplePlugin".

What I would like to know is: Why does it search for "myGroup.eclipse.SamplePlugin" and how can I change it to the "WorkspaceAccessPlugin" which is using this path "package myGroup.workspace;"?

I used this websites setup guide: https://www.oxygenxml.com/doc/versions/17.1/ug-editor/#topics/debug-plugin.html

Eclipse version: Mars
Oxygen version: 15.2

Full Error Report:

Code: Select all

java.lang.ClassNotFoundException: myGroup.eclipse.SamplePlugin
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at ro.sync.exml.plugin.PluginManager.f(Unknown Source)
   at ro.sync.exml.plugin.PluginManager.i(Unknown Source)
   at ro.sync.exml.plugin.PluginManager.<init>(Unknown Source)
   at ro.sync.exml.plugin.PluginManager.getInstance(Unknown Source)
   at ro.sync.ui.application.ApplicationLauncher$1.b(Unknown Source)
   at ro.sync.exml.xc.d(Unknown Source)
   at ro.sync.exml.options.pd.d(Unknown Source)
   at ro.sync.exml.options.u.h(Unknown Source)
   at ro.sync.exml.options.vc.h(Unknown Source)
   at ro.sync.exml.options.u.<init>(Unknown Source)
   at ro.sync.exml.options.vc.<init>(Unknown Source)
   at ro.sync.exml.options.vc.j(Unknown Source)
   at ro.sync.exml.options.Options.init(Unknown Source)
   at ro.sync.exml.options.Options.init(Unknown Source)
   at ro.sync.exml.options.Options.z(Unknown Source)
   at ro.sync.exml.options.Options.getInstance(Unknown Source)
   at ro.sync.exml.r.e(Unknown Source)
   at ro.sync.exml.zip.db.<clinit>(Unknown Source)
   at ro.sync.exml.zip.r.b(Unknown Source)
   at ro.sync.ui.application.ApplicationLauncher.<init>(Unknown Source)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at ro.sync.exml.Oxygen.main(Unknown Source)
0 WARN [ main ] ro.sync.ui.application.ApplicationLauncher - Cannot transfer parameters to the running <oXygen/> XML Developer.
Connection refused: connect
java.net.ConnectException: Connection refused: connect
   at java.net.DualStackPlainSocketImpl.connect0(Native Method)
   at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
   at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
   at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.SocksSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at java.net.Socket.<init>(Unknown Source)
   at java.net.Socket.<init>(Unknown Source)
   at ro.sync.exml.cd.d(Unknown Source)
   at ro.sync.exml.tc.enc(Unknown Source)
   at ro.sync.ui.application.ApplicationLauncher.launch(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at ro.sync.exml.Oxygen.main(Unknown Source)
0 WARN [ main ] ro.sync.exml.tc - Could not send data to the running instance from port: 52687 due to Connection refused: connect
alex_jitianu
Posts: 652

Re: Plugin: ClassNotFoundException "myGroup.eclipse.SamplePlugin"

Tue Jan 26, 2016 5:25 pm

Hi,

It looks like you've changed the packages' names after you've generated the Maven project. Although there is nothing wrong with that you should also update plugin.xml. Please open plugin.xml and replace the values of attributes @class from elements "plugin" and "extension" with the new class qualified names.

Best regards,
Alex

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: Radu and 1 guest