Thanks Jarek, That led me to find that I wasn't building the GEP
runtime jars correctly. However, even with the wstx-asl jar file
included correctly, I'm still getting the same error.
I've proven (to myself at least) that the wstx-asl jar file is on the
classpath by simply adding a couple of lines of code.
WstxInputFactory factory = new WstxInputFactory();
String tmp = factory.toString();
which does now return a new factory for the GEP....It's just that when
the XMLInputFactory goes looking for the wstx class, it can't be found
and I get the same stack trace below.
--B.J.
Jarek Gawor wrote:
Looks like you are missing woodstox parser from classpath:
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>wstx-asl</artifactId>
</dependency>
Jarek
On Mon, Nov 17, 2008 at 10:47 AM, B.J. Reed <[EMAIL PROTECTED]> wrote:
I'm trying to add some code to the GEP and the PluginXmlUtil class in
geronimo-plugin has some very useful methods that I need to call. However,
when I make the call, I always get the same error:
javax.xml.stream.FactoryConfigurationError: Requested factory
com.ctc.wstx.stax.WstxInputFactory cannot be located. Classloader
[EMAIL PROTECTED]
at javax.xml.stream.FactoryLocator.loadFactory(FactoryLocator.java:120)
at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:109)
at javax.xml.stream.FactoryLocator.locate(FactoryLocator.java:54)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:41)
at
org.apache.geronimo.system.plugin.PluginXmlUtil.<clinit>(PluginXmlUtil.java:62)
at
org.apache.geronimo.st.v21.core.operations.GeronimoServerPluginManager.loadPluginMetadata(GeronimoServerPluginManager.java:414)
at
org.apache.geronimo.st.v21.core.operations.GeronimoServerPluginManager.extractPluginMetadata(GeronimoServerPluginManager.java:287)
at
org.apache.geronimo.st.v21.core.operations.GeronimoServerPluginManager.getPluginMetadata(GeronimoServerPluginManager.java:173)
at
org.apache.geronimo.st.v21.ui.wizards.ServerPluginManagerWizard.nextPressed(ServerPluginManagerWizard.java:103)
at
org.apache.geronimo.st.v21.ui.wizards.ServerPluginManagerDialog.nextPressed(ServerPluginManagerDialog.java:34)
at
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
........and many more lines of stack trace.
This class is successfully used by the Admin Console so I'm thinking it's
something pretty straightforward that I'm missing
-- B.J.