[Concern-users] RE: server.log and jmx-console output
Brought to you by:
hengels,
leonchiver
|
From: Raoul Z. <rao...@to...> - 2004-05-14 09:21:27
|
Probably doing something wrong..... (again) I'm running from eclipse now, as I kept getting NoClassDefFoundError. Now I get other errors, like: "Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial" Which appears when executing: controllerHome =3D (ControllerHome)new InitialContext().lookup(name + "/Controller"); Seems it does not have access to the Jboss server. I've checked my lib directory and have the exact same jars there as you do... Is there any other way to do what you'd normally do with the script or this class? How do you specify the pk?? I've tried [SQLUser].Engagement.id, just Engagement.id and just id. Raoul -----Oorspronkelijk bericht----- Van: Holger Engels [mailto:he...@me...]=20 Verzonden: vrijdag 14 mei 2004 10:16 Aan: Raoul Zon CC: con...@li... Onderwerp: RE: server.log and jmx-console output Quoting Raoul Zon <rao...@to...>:=20 =20 > Holger, > =20 > I've checked in the new AbstractActivity class. =20 Thanks!=20 =20 > I've tried running both: <pk> and the primary key, both fail. > The first one (how stupid of me to even try...) gives the newline error.=20 > The other one gives:=20 > "[: =3D=3D: unknown operand=20 > Exception in thread "main" java.lang.NoClassDefFoundError:=20 > org/concern/j2ee/client/commandline/Concern"=20 > I've checked the dist/lib and the jar containing the class does exist. > I've tried setting the classpath manually by overriding the shellscript,=20 > but without success.=20 =20 The cygwin bash has problems to interprete the script. Don't know why.=20 =20 > I run the command from the root of the project...in my case: > /cygdrive/c/eclipse/workspace/concern=20 =20 You need the jboss client jars to access jboss. The client jars are copied by=20 the build script, if you set jboss.client in the custom-build.properties of=20 this module. The content of my client/dist/lib is:=20 =20 dist/=20 dist/lib=20 dist/lib/concern-client.jar=20 dist/lib/concern-client-commandline.jar=20 dist/lib/jboss-j2ee.jar=20 dist/lib/concern-controller.jar=20 dist/lib/concern-model.jar=20 dist/lib/jsse.jar=20 dist/lib/jbossjmx-ant.jar=20 dist/lib/jbosssx-client.jar=20 dist/lib/jacorb.jar=20 dist/lib/getopt.jar=20 dist/lib/jboss-common-client.jar=20 dist/lib/log4j.jar=20 dist/lib/jbosscx-client.jar=20 dist/lib/jboss-client.jar=20 dist/lib/jmx-ejb-connector-client.jar=20 dist/lib/jboss-transaction-client.jar=20 dist/lib/jbossha-client.jar=20 dist/lib/gnu-regexp.jar=20 dist/lib/jnet.jar=20 dist/lib/concurrent.jar=20 dist/lib/jboss-net-client.jar=20 dist/lib/auth.conf=20 dist/lib/jmx-connector-client-factory.jar=20 dist/lib/xdoclet-module-jboss-net.jar=20 dist/lib/jboss-jaas.jar=20 dist/lib/jmx-rmi-connector-client.jar=20 dist/lib/jboss-system-client.jar=20 dist/lib/jbossmqha.jar=20 dist/lib/jboss-iiop-client.jar=20 dist/lib/jmx-invoker-adaptor-client.jar=20 dist/lib/jbossmq-client.jar=20 dist/lib/jboss-jsr77-client.jar=20 dist/lib/jbossall-client.jar=20 dist/lib/jnp-client.jar=20 dist/lib/jcert.jar=20 =20 =20 Holger=20 ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |