• Post Reply Bookmark Topic Watch Topic
  • New Topic

problems about deploytool  RSS feed

 
lucy hu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the deploytool to deploy my application,
after I start the j2ee server,
i got the message like the following:
---------------------------------------------------------------
C:\java\j2ee\bin>j2ee
J2EE server Listen Port: = 1049
No local string for enterprise.log.logging.serverversion.started
No local string for enterprise.log.using.vm.name.version.from
No local string for enterprise.log.vm's.classpath
No local string for enterprise.log.j2ee.homedirectory
No local string for enterprise.log.logging.serverversion.started
No local string for enterprise.log.using.vm.name.version.from
No local string for enterprise.log.vm's.classpath
No local string for enterprise.log.j2ee.homedirectory
Redirecting the output and error streams to the following files:
C:\java\j2ee\logs\home-2ahbp4naz8\ejb\j2ee\system.out
C:\java\j2ee\logs\home-2ahbp4naz8\ejb\j2ee\system.err
J2EE server startup complete.
------------------------------------------
what does local string mean? although the server seems to work fine with this message, but when I start the deploytool, i got the message like this:
-------------------------------------
C:\java\j2ee\bin>deploytool
No local string for enterprise.tools.deployment.main.version
No local string for enterprise.tools.deployment.main.name
No local string for enterprise.tools.deployment.main.defaultstartupmessage
No local string for enterprise.tools.deployment.main.logname
Deployment tool version 1.2.1. Type deploytool -help for command line options. S
tarting...
No local string for deploytoolwindow.title
No local string for deploytoolwindow.inspecting_label
No local string for deploytoolwindow.add_server_label
No local string for deploytoolwindow.add_server_title
No local string for deploytoolwindow.roles_principals_label
No local string for deploytoolwindow.resource_identities_label
No local string for deploytoolwindow.clipboard
No local string for applicationinspector.general
No local string for applicationinspector.jndi
No local string for applicationinspector.web_context
No local string for applicationinspector.security
Exception in thread "main" java.lang.NoClassDefFoundError: javax/help/CSH
at com.sun.enterprise.tools.deployment.ui.ApplicationGeneralInspector.<i<br /> nit>(ApplicationGeneralInspector.java:57)
at com.sun.enterprise.tools.deployment.ui.ApplicationInspector.<init>(Ap
plicationInspector.java:56)
at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.getApplicatio
nInspectorManager(DeployToolWindow.java:157)
at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.<init>(Deploy
ToolWindow.java:66)
at com.sun.enterprise.tools.deployment.main.DeployTool.<init>(DeployTool
.java:66)
at com.sun.enterprise.tools.deployment.main.Main.main(Main.java:65)
-----------------------
seems I am missing a file...
I am using JDK1.3,
could anybody help me?
Lucy
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSH.class is part of jhall.jar which should be in the %J2EE_HOME%/lib directory. This should be included as part of the classpath by the combination of the deploytool.bat and setenv.bat files. (setenv.bat is run by deploytool.bat) Check to make sure that these set commands are being executed properly. I had a problem running this on Win98 and ended up having to hard code the classpath to run the deploytool.
------------------
Moderator of the JDBC Forum
 
lucy hu
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thomas, thank you.
after I change the classpath, it worked,
but I still get those warning about the "local string", I dont' know why... your suggestion?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get the deploytool to run, I had to hardcode everything and ended up with this in my deploytool.bat (where java is the directory where the J2SE is installed and javaee is the directory where the J2EE is installed):
c:\java\bin\java -Xmx128m -Djavax.net.ssl.trustStore=c:\javaee\lib\security\cacerts.jks -Djava.security.auth.policy=c:\javaee\lib\security\jaas.policy -Dcom.sun.enterprise.home=c:\javaee -classpath "c:\javaee\lib\jh.jar;c:\javaee\help\DeployTool\deployhelp.jar;c:\javaee\lib\system\cloudscape.jar;c:\javaee\lib\system\tools.jar;c:\javaee\lib\cloudscape\RmiJdbc.jar;c:\javaee\lib \cloudscape\client.jar;c:\javaee\lib\classes;c:\javaee\classes;c:\javaee\lib\j2ee.jar;c:\javaee\lib\locale;c:\java\jre\lib\rt.jar;c:\java\lib\tools.jar;.;c:\javaee\lib\jhall.jar" com.sun.enterprise.tools.deployment.main.Main
This is my j2ee.bat:
c:\java\bin\java -Xmx128m -Djavax.net.ssl.trustStore=c:\javaee\lib\security\cacerts.jks -Djava.security.auth.policy=c:\javaee\lib\security\jaas.policy -Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060 -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=c:\javaee -Dcom.sun.jms.service.jdbc.dbpath=c:\javaee\repository\main\db\ -Djms.properties=c:\javaee\config\jms_service.properties -Djava.security.policy==c:\javaee\lib\security\server.policy -Djava.security.auth.login.config=c:\javaee\lib\security\login.config -Dcom.sun.enterprise.home=c:\javaee -classpath "c:\javaee\lib\system\cloudscape.jar;c:\javaee\lib\system\tools.jar;c:\javaee\lib\cloudscape\RmiJdbc.jar;c:\javaee\lib\cloudscape\client.jar;c:\javaee\lib\classes;c:\javaee\classes ;c:\javaee\lib\j2ee.jar;c:\javaee\lib\locale;c:\java\jre\lib\rt.jar;c:\java\lib\tools.jar;.;c:\javaee\lib\jhall.jar" com.sun.enterprise.server.J2EEServer -verbose
Hope this helps.
[This message has been edited by Thomas Paul (edited February 22, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!