I asked this yesterday but I probably did not give
enough information to get a good answer.

All I want to do is test the template install with
jboss3.0 so I can move my development to jboss.

I can see the modules are installed when I do the
build for the template.

09:57:49,225 INFO  [MainDeployer] Starting deployment
of package:
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
09:57:50,314 INFO  [EJBDeployer]
Bean   : test/TestMessage
Method : public void ejbCreate() throws
CreateException
Section: 15.7.3
Warning: The ejbCreate() method must define no
application exceptions.

09:57:50,316 INFO  [EJBDeployer]
Bean   : test/TestMessage
Method : public void ejbRemove() throws EJBException
Section: 15.7.5
Warning: The ejbRemove() method must define no
application exceptions.

09:57:50,320 INFO  [EjbModule] Creating
09:57:50,424 INFO  [EjbModule] Deploying
test/TestEntity
09:57:51,440 INFO  [EjbModule] Deploying
test/SequenceGenerator
09:57:51,475 INFO  [EjbModule] Deploying
test/TestSession
09:57:51,744 INFO  [EjbModule] Deploying
test/TestMessage
09:57:57,739 INFO  [EjbModule] Created
09:57:57,741 INFO  [EjbModule] Starting
09:57:58,234 INFO  [test/TestEntity] Created table
'TESTENTITY' successfully.
09:57:58,337 INFO  [EjbModule] Started
09:57:58,339 INFO  [MainDeployer] Successfully
completed deployment of package:
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/ejb-test.jar
09:57:58,358 INFO  [URLDeploymentScanner] Started
09:57:58,359 INFO  [MainDeployer] Successfully
completed deployment of package:
file:/home/jim/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xml
09:57:58,360 INFO  [Server] JBoss (MX MicroKernel)
[3.0.0 Date:200205311035] Started in 0m:41s:836ms

So I go to run the client and I get this error.  NOTE
I will get this error wether the jboss server is
running or not!!! So that tells me there is a problem
with my config for jndi.

/opt/j2sdk1.4.0//lib/tools.jar test.client.TestClient
javax.naming.NoInitialContextException: 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
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
        at
javax.naming.InitialContext.lookup(InitialContext.java:347)
        at
test.client.TestClient.main(TestClient.java:21)




Since I think it is the jndi config I will include my
file also (even though it is the default):

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

I have tried everything for the url attribute that I
can think of to identify the machine and the port but
nothing changed.  I ahve read everything I can find on
jndi and it looks like I am doing thing correctly.

If I have to spend to much more time just checking if
I can get this running I am going to have to abandon
jboss all together and go back to doing things myself
and I do not want to do that.  This app is going to
grow way beyond what I am doing for this demo so I
will need sometype of container.  Maybe I should just
go back to the 2.4.6 version.

In case it matters I am doing this on RH 7.2 using
jdk1.4.

Please help a newbie!

Jim Williams
Software Engineer, 4Access Communications

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to