Hello,
Once again I find myself of classpath/jar hades. I have the
following code that runs on my development machine fine:
FileInputStream is = new FileInputStream(this.poolDir + poolName +
"/" + Constants.FILENAME_PROPERTIES);
SAXBuilder builder = new SAXBuilder();
Document propertiesDoc = builder.build(is);
XPath xPath = XPath.newInstance(Constants.XPATH_TAGLINE);
However, when I deploy, I get the below exception on the Xpath xPath
= ... line.
java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
at com.netBrackets.core.FileIO.getTagline(FileIO.java:49)
at
com.netBrackets.core.SponserConfig.<init>(SponserConfig.java:29)
at UserInfoWindow.<init>(UserInfoWindow.java:127)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun
.reflect
.NativeConstructorAccessorImpl
.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun
.reflect
.DelegatingConstructorAccessorImpl
.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
494)
at
com
.webobjects
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:575)
at
com
.webobjects
.appserver
._private
.WOComponentDefinition
._componentInstanceInContext(WOComponentDefinition.java:463)
at
com
.webobjects
.appserver
._private
.WOComponentDefinition
.componentInstanceInContext(WOComponentDefinition.java:573)
at
com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:
1954)
at
com.webobjects.appserver.WOComponent.pageWithName(WOComponent.java:1200)
at PoolLogin.login(PoolLogin.java:125)
I've setup my build I think to include all the needed jar files (I put
them in a jars subdirectory of my project - all from here: http://www.jdom.org/)
according to this:
<target name="build.woapp">
....
<woapplication ...>
...
<lib dir="Libraries">
<include name="jars/*.jar"/>
<exclude name="**/*.woa/**"/>
</lib>
</woapplication>
</target>
And since there's no error on the below two lines I'm thinking the
jars are getting included in my deployed build (btw, is there any way
I check for sure that the jars are included by looking at the
deployment bundle?)
SAXBuilder builder = new SAXBuilder();
Document propertiesDoc = builder.build(is);
So, any ideas why it can't seems to find the SAXBuilder class on my
deployment machine when it does find it on the development machine?
Seems I can never deploy any new jars without running into trouble
like this, wish I could figure it out once and for all.
Thanks,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]