Hi,

I have found some problems with the CDbean example
The run_upload.bat, run_list.bat etc. files that are packaged with the
CDbean example do not have all the right stuff added to their classpaths.
The run_upload.bat should look like this:

REM Runs the `upload' class's main() method

java -classpath .;..\..\lib\ext\ejb.jar;..\..\client\jboss-client.jar;..\..
\client\jnp-client.jar;..\..\client\jbosssx-client.jar;.
com.web_tomorrow.cd.Upload CDs.txt

(it was missing the jnp-client.jar and it had a typo missing the last ;
before com.web_tomorrow.cd.Upload CDs.txt)
So it works now. Also this must be installed in the correct directory so
that the relative paths get to the right place. It would be good to include
the suggested directory in a readme file for the CDbean.zip file.
There are also two errors in the CDs.txt file that the upload client is
reading, these are easy to find and fix with the error messages produced by
upload, but it would be good to include these in the documentation so
people don't think that they have made a mistake....





Hi Everybody,

I am still having the same problem. I have tried running the Upload
application with run_upload.bat on the command line and I still get the
same error:


D:\JBoss_files\JBOSSTest\CD\src>java -classpath .;..\..\lib\ext\ejb.jar;..
\..\client\jboss-client.jar;. com.web_tomorrow.cd.Upload CDs.txt
Upload: javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory [Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
OK

What jar file is org.jnp.interfaces.NamingContextFactory found ? And is
there any other place I should look for this problem?




Hi Please help me with this. Here is the full classpath and message I am
getting when I try to run Upload...

C:\JBuilder4\jdk1.3\bin\javaw -classpath "D:
\JBoss_files\JBOSSTest\CD\src;D:\JBoss-2.2.1\lib\crimson.jar;D:
\JBoss-2.2.1\bin\run.jar;D:\JBoss-2.2.1\bin;D:\JBoss-2.2.1\conf;D:
\JBoss-2.2.1\lib\jaas.jar;D:\JBoss-2.2.1\lib\jboss-jaas.jar;D:
\JBoss-2.2.1\lib\jdbc2_0-stdext.jar;D:\JBoss-2.2.1\lib\jmxri.jar;D:
\JBoss-2.2.1\lib\ext\activation.jar;D:\JBoss-2.2.1\lib\ext\awt.jar;D:
\JBoss-2.2.1\lib\ext\dynaserver.jar;D:\JBoss-2.2.1\lib\ext\ejb.jar;D:
\JBoss-2.2.1\lib\ext\ejxeditor.jar;D:\JBoss-2.2.1\lib\ext\ejxjaws.jar;D:
\JBoss-2.2.1\lib\ext\ejxjboss.jar;D:\JBoss-2.2.1\lib\ext\hsql.jar;D:
\JBoss-2.2.1\lib\ext\idb.jar;D:\JBoss-2.2.1\lib\ext\jboss.jar;D:
\JBoss-2.2.1\lib\ext\jetty-service.jar;D:\JBoss-2.2.1\lib\ext\jms.jar;D:
\JBoss-2.2.1\lib\ext\jmxtools.jar;D:\JBoss-2.2.1\lib\ext\jndi.jar;D:
\JBoss-2.2.1\lib\ext\jnpserver.jar;D:
\JBoss-2.2.1\lib\ext\jpl-util-0_5b.jar;D:
\JBoss-2.2.1\lib\ext\jta-spec1_0_1.jar;D:\JBoss-2.2.1\lib\ext\mail.jar;D:
\JBoss-2.2.1\lib\ext\tomcat-service.jar;D:
\JBoss-2.2.1\lib\ext\jbossmq.jar;D:\JBoss-2.2.1
\db;D:\JBoss-2.2.1\conf\default;D:\JBoss-2.2.1\lib\ext\log4j.jar;D:
\JBoss-2.2.1\log;D:\JBoss-2.2.1\tmp;D:\JBoss-2.2.1\lib\ext\jbosssx.jar;D:
\JBoss-2.2.1\lib\ext\jbosscx-0.2.jar;D:
\JBoss-2.2.1\lib\ext\connector.jar;D:
\JBoss-2.2.1\lib\ext\minerva-1_0b3.jar;D:\JBoss-2.2.1\lib\jaxp.jar;D:
\JBoss-2.2.1\lib\xml.jar;D:\JBoss-2.2.1\lib\ext\ejb2.0.jar;D:
\JBoss-2.2.1\lib\ext\ejxejb.jar;D:
\JBoss-2.2.1\lib\ext\exolabcore-0.1.jar;D:
\JBoss-2.2.1\lib\ext\gnu-regexp-1.0.8.jar;C:
\AppliedBiosystems\Arrays\lib\corelib.jar;C:
\AppliedBiosystems\Arrays\lib\TOPLink\Tools.jar;C:
\AppliedBiosystems\Arrays\lib\TOPLink\TOPLink.jar;C:
\AppliedBiosystems\Arrays\lib\TOPLink\TOPLinkX.jar;C:
\j2sdkee1.3\lib\j2ee.jar;C:\j2sdkee1.3\lib\ejb10deployment.jar;C:
\j2sdkee1.3\lib\j2ee-ri-svc.jar;C:\j2sdkee1.3\lib\jhall.jar;C:
\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:
\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:
\JBuilder4\jdk1.3\jre\lib\rt.jar;C:
\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\JBuilder4\jdk1.3\lib\dt.jar;C
:\JBuilder4\jdk1.3\lib\tools.jar"  com.web_tomorrow.cd.Upload D:
\JBoss_files\JBOSSTest\CD\src\cds.txt
OK

Upload: javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory  [Root exception is
java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory ]




Hi,

Thanks for fixing the links to the Documentation zip files.

I have the CD bean deployed and I am trying to run the Upload client, but I
am getting the following error on the client side (I am running this in
JBuilder)

---------------
OK

Upload: javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory  [Root exception is
java.lang.ClassNotFoundException: org/jnp/interfaces/NamingContextFactory ]
--------------------

The Class org/jnp/interfaces/NamingContextFactory is in my path for this.
What is happening?

Thanks for your help.


Jennifer




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user







_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to