Problem in starting J2EE server, Syntax error in DOS

OS: Windows98
j2sdkee1.3
jsdk1.3
Hi, guys:
I try to run the example of J2ee Tutorial sample code but I find that that the setenv.bat in j2sdkee1.3\bin has sytax error in MS DOS in the following lines
set JAAS_OPTIONS=XXX=YYY
set SSL_OPTIONS=XXX=YYY
set LISTEN_OPTIONS=XXX=YYY
I don't understand why they have such a problem. Didn't they even try to run J2ee server on Windows ? Can't believe such irresponsible development is from SUN.
Can anyone help ? Thanks

Hi, Guys:
I found the answer base on my research and other's topic answers, especially thank Laughton Jackson.
#1) Change setenv.bat
***********OLD*****************
set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
set JAVACMD=%JAVA_HOME%\bin\java -Xmx128m %SSL_OPTIONS% %JAAS_OPTIONS%
change the above to
**************NEW*****************
set JAAS_OPTIONS=-Djava.security.auth.policy
set JAAS_OPTIONS1=%J2EE_HOME%\lib\security\jaas.policy
set SSL_OPTIONS=-Djavax.net.ssl.trustStore
set SSL_OPTIONS1=%J2EE_HOME%\lib\security\cacerts.jks
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket
set LISTEN_OPTIONS1=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
set CLASSPATH=%CLASSPATH%;%CPATH%
set JAVACMD=%JAVA_HOME%\bin\java -Xmx128m
Notice that we break those lines of the format
set XX=YY=ZZ and add set CLASSPATH=%CLASSPATH%;%CPATH%. Those env variables look very confusing at first. Actually they are nothing but tools that the original person who wrote this script uses to saving his typing !
#2 Change j2ee.bat
************OLD********************
%JAVACMD% %LISTEN_OPTIONS% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% -classpath %CPATH% com.sun.enterprise.server.J2EEServer %*
Change the above to
************NEW********************
%JAVACMD% %SSL_OPTIONS%=%SSL_OPTIONS1% %JAAS_OPTIONS%=%JAAS_OPTIONS1% %LISTEN_OPTIONS%=%LISTEN_OPTIONS1% -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.home=%JMS_HOME% -Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH% -Djms.properties=%J2EE_HOME%\config\jms_service.properties -Djava.security.policy==%J2EE_HOME%\lib\security\server.policy -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config -Dcom.sun.enterprise.home=%J2EE_HOME% com.sun.enterprise.server.J2EEServer %1 %2
Notice that we changed "com.sun.enterprise.server.J2EEServer %*" to
"com.sun.enterprise.server.J2EEServer %1 %2"
Good luck
Henry

Similar Messages

  • Problem with starting J2EE server via MMC

    I'm getting J2EE server not started (jcontrol stopped immediatelly when it starts) with the following issues in the log/trace:
    [Thr 2372] Wed Apr 12 15:53:12 2006
    [Thr 2372] *** ERROR => invalid return code of process [bootstrap_ID8265050] (exitcode=-2) [jstartxx.c   1433]
    [Thr 2372] JControlExecuteBootstrap: error executing bootstrap node [bootstrap_ID8265050] (rc=-2)
    [Thr 2372] JControlCloseProgram: started (exitcode = -2)
    [Thr 2372] JControlCloseProgram: good bye... (exitcode=-2)
    and above
    [Thr 2372] Wed Apr 12 15:53:11 2006
    [Thr 2372] JControlExecuteBootstrap: execute bootstrap process [bootstrap_ID8265050]
    [Thr 2372] INFO: Invalid property value [JLaunchParameters/]
    [Thr 2372] [Node: server0 bootstrap] java home is set by profile parameter
         Java Home: C:\j2sdk1.4.2_11
    Pleae help.
    Thanks a lot

    Hi
    Thank you very much for your reply!
    But,
    I started SAPDB:J2E service, but I have the same outcome:
    [Thr 3964] Tue Apr 18 13:45:53 2006
    [Thr 3964] *** ERROR => invalid return code of process [bootstrap_ID8265050] (exitcode=-2) [jstartxx.c   1433]
    [Thr 3964] JControlExecuteBootstrap: error executing bootstrap node [bootstrap_ID8265050] (rc=-2)
    [Thr 3964] JControlCloseProgram: started (exitcode = -2)
    [Thr 3964] JControlCloseProgram: good bye... (exitcode=-2)
    I tried to start: SAPDB:  J2E (omststknl.exe)/SAPDB:  J2E (quick)+slow + SAPDB:  .M750018/SAPDB:  .M750018 (omststknl.exe)/SAPDB:  .M750018 (quick)+slow, but they coudn't be started - is this my problem?
    ==> log
    [Thr 3964] Tue Apr 18 13:45:52 2006
    [Thr 3964] JControlExecuteBootstrap: execute bootstrap process [bootstrap_ID8265050]
    [Thr 3964] INFO: Invalid property value [JLaunchParameters/]
    [Thr 3964] [Node: server0 bootstrap] java home is set by profile parameter
         Java Home: C:\j2sdk1.4.2_11
    JStartupIReadSection: read node properties [bootstrap_ID8265050]
    -> node name       : server0 bootstrap
    -> node type       : bootstrap
    -> java path       : C:\j2sdk1.4.2_11
    -> java parameters : -Djco.jarm=1 -Djco.jarm=1
    -> java vm version : 1.4.2_11-b06
    -> java vm vendor  : Java HotSpot(TM) Server VM (Sun Microsystems Inc.)
    -> java vm type    : server
    -> java vm cpu     : x86
    -> heap size       : 1024M
    -> root path       : C:\usr\sap\J2E\JC00\j2ee\cluster
    -> class path      : .\bootstrap\launcher.jar
    -> OS libs path    : C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> main class      : com.sap.engine.offline.OfflineToolStart
    -> framework class : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class  : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path  : C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar
    -> parameters      : com.sap.engine.bootstrap.Bootstrap ./bootstrap ID008265050
    -> debuggable      : yes
    -> debug mode      : no
    -> debug port      : 60000
    -> shutdown timeout: 120000
    JStartupStartJLaunch: program = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[00] = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[01] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_FY06P1J
    -> arg[02] = -DSAPINFO=J2E_00_bootstrap
    -> arg[03] = -file=C:\usr\sap\J2E\JC00\j2ee\cluster\instance.properties
    -> arg[04] = -nodeName=bootstrap_ID8265050
    -> arg[05] = -nodeId=-1
    -> arg[06] = -syncSem=JSTARTUP_WAIT_ON_3892
    -> arg[07] = -jvmOutFile=C:\usr\sap\J2E\JC00\work\jvm_bootstrap_ID8265050.out
    -> arg[08] = -stdOutFile=C:\usr\sap\J2E\JC00\work\std_bootstrap_ID8265050.out
    -> arg[09] = -locOutFile=C:\usr\sap\J2E\JC00\work\dev_bootstrap_ID8265050
    -> arg[10] = -mode=BOOTSTRAP
    -> arg[11] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_FY06P1J
    -> lib path = PATH=C:\j2sdk1.4.2_11\jre\bin\server;C:\j2sdk1.4.2_11\jre\bin;c:\sapdb\programs\bin;c:\sapdb\programs\pgm;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\;c:\program files\winzip;c:\data\notes;c:\program files\notes;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Adaptec Shared\System;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> exe path = PATH=C:\j2sdk1.4.2_11\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;c:\sapdb\programs\bin;c:\sapdb\programs\pgm;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\;c:\program files\winzip;c:\data\notes;c:\program files\notes;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Adaptec Shared\System;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    [Thr 3964] Tue Apr 18 13:45:53 2006
    [Thr 3964] *** ERROR => invalid return code of process [bootstrap_ID8265050] (exitcode=-2) [jstartxx.c   1433]
    [Thr 3964] JControlExecuteBootstrap: error executing bootstrap node [bootstrap_ID8265050] (rc=-2)
    [Thr 3964] JControlCloseProgram: started (exitcode = -2)
    [Thr 3964] JControlCloseProgram: good bye... (exitcode=-2)
    Please help

  • Problem in starting J2EE server

    when i type j2ee at the command promt to start the j2ee server,i get an "Exception in thread Main" and the server does not start.When i checked the System.err file, it had:
    java.lang.NoSuchMethodError
         at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImpl.java:1256)
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(ShutdownUtilDelegate.java:223)
         at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:178)
         at javax.rmi.CORBA.Util.writeAny(Util.java:80)
    Can anyone tell me where the problem is and how to solve it.I have already set the environment varaible J2EE_HOME to my j2sdkee path...

    Make sure you have J2SDK1.4 installed

  • Problem while Starting J2EE Server

    When I am starting the J2ee Server , I am getting this error
    D:\>j2ee -verbose
    J2EE server listen port: 1050
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/IdentityHashtable
    at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.<clinit>(Util.java:87)
    at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935)
    at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895)
    at com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(TransientNameService.java:117)
    at com.sun.corba.ee.internal.CosNaming.TransientNameService.<init>(TransientNameService.java:70)
    at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:103)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    D:\>
    D:\>set path
    Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;d:\clearcase\bin;D:\ANT\apache-ant-1.6.5\bin;D:\ANT\apache-ant-1.6.5\lib;D:\jdk1.5.0_06\bin;D:\gt4\bin;D:\Sun\jwsdp-2.0\apache-ant\bin;D:\j2sdkee1.3.1\bin;D:\Sun\jwsdp-2.0\jwsdp-shared\Bin
    D:\>set java_home
    JAVA_HOME=D:\jdk1.5.0_06
    D:\>set j2ee_home
    J2EE_HOME=D:\j2sdkee1.3.1
    D:\>set ant_home
    ANT_HOME=D:\ANT\apache-ant-1.6.5

    You might have to use older version of JDK supported for J2EE 1.3.
    According to the page http://java.sun.com/j2ee/sdk_1.3/ JavaE 1.4 or later releases of 1.3 will work.
    If you must use Java SE 5.0, try moving to a newer version of SDK, J2EE 1.4 or Java EE 5 available from http://java.sun.com/javaee

  • [b]problem in starting j2EE RI server[/b]

    I am getting this error when i try to start j2EE server. it is a J2EE RI installed with sunONE studio 4 update 1 edition.
    Can someone tell me what is the problem ?
    C:\Program Files\s1studio\ee\j2sdkee1.3.1\bin>j2ee -verbose
    No local string for j2ee.listenPort
    J2EE server listen port: 1050
    No local string for j2ee.naming
    Naming service started: 1050
    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
    No local string for idle_resource_threshold_error
    No local string for binding.datasource
    No local string for binding.datasource
    No local string for binding.datasource
    No local string for binding.datasource
    No local string for binding.datasource
    No local string for binding.datasource
    java.lang.ClassNotFoundException: com.pointbase.xa.xaDataSource
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.sun.enterprise.repository.JdbcXAResource.createDataSource(JdbcXAResource.java:65)
    at com.sun.enterprise.resource.ResourceInstaller.installJdbcXADataSources(ResourceInstaller.java:458)
    at com.sun.enterprise.resource.ResourceInstaller.installJdbcDataSources(ResourceInstaller.java:349)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:264)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    No local string for poolmgr.datasourceerror
    Error in creating data source object
    No local string for jms.start
    Starting JMS service...
    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
    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 jms.start.failed
    Couldn't start JMS service...
    javax.jms.JMSException: Can't start JMSService
    at com.sun.jms.service.JMSManagerImpl.startJMSService(JMSManagerImpl.java:86)
    at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:169)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:268)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    javax.jms.JMSException: Can't start JMSService
    at com.sun.jms.service.JMSManagerImpl.startJMSService(JMSManagerImpl.java:86)
    at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:169)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:268)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException: Can't start JMSService
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    J2EE server reported the following error: Can't start JMSService
    Error executing J2EE server ...
    java.lang.NoClassDefFoundError: com/pointbase/jdbc/jdbcDataSource
    at com.sun.jms.service.JMSServiceImpl.stop(JMSServiceImpl.java:1329)
    at com.sun.jms.service.JMSServiceImpl.stop(JMSServiceImpl.java:1308)
    at com.sun.jms.service.JMSServiceImpl$1.run(JMSServiceImpl.java:102)

    Depending on your OS, there are two possibilities:
    PointBase:
    the .lck file was not being deleted due to a permission error, and that led to a string of events that would cause the check point error. (e.g. a rollback would be attempted on every access to the db)
    Adding "FilePermission delete" to the servlet block of the lib/security/server.policy file fixed the problem.
    or
    After installing the Sun ONE Studio 4 update 1 software, I'm receiving errors trying to use the J2EE RI server, the PointBase database, and/or the internal UDDI Registry. How do I fix this?
    Applicable to release S1S4u1 EEfJ. Also applicable to releases: S1S7 EEfS (Solaris environment only)
    If you are in a Solaris(TM) environment and plan to use the PointBase Server 4.2 Restricted Edition database, the J2EE(TM) Reference Implementation 1.3.1 server, the internal Java(TM) Web Services Developer Pack's (JWSDP) Tomcat 4.1 server, or the internal UDDI registry server packaged with the Sun(TM) ONE Studio, Enterprise Edition for Java(TM) software (IDE), be aware that you must have write access to the IDE directories used by these components. To ensure a writeable IDE installation, install a personal copy of the Sun ONE Studio, Enterprise Edition for Java software in your home directory and run the product from this location.
    Please note that the default Solaris installation procedure causes the <s1studio-install-dir> tree to be owned by the root user. Therefore, a non-root user running the IDE will be denied write access resulting in errors when attempting to run any of these packaged servers.
    To install a personal copy of the Sun ONE Studio 4, Enterprise Edition for Java, please use the following instructions.
    If you have the Sun ONE Studio 4 update 1 CD, do the following:
    1.Be sure you are logged on as 'yourself', not a root user.
    2.Insert the CD. NOTE: If the Auto run feature is enabled, an installer wizard appears and asks for the root password. Close this wizard. Do not install this product as root user.
    3.From the directory where you want the IDE installed, type /cdrom/s1studio/image/ffj_installers_ee/ffj_ee_solsparc_en.bin
    4.Follow the install panels, using the Sun ONE Studio 4, Enterprise Edition for Java Getting Started Guide (found at http://forte.sun.com/ffj/documentation/s1s41/getstartedee41.pdf )for any additional information.
    If you have downloaded Sun ONE Studio 7, Enterprise Edition for Solaris from the web site, do the following:
    1. Go to this web site http://www.sun.com/software/sundev/jde/buy/index.html and read the section called "Before you Download" for additional pre-install information.
    2. Scroll to the area entitled Enterprise Edition for Java and click on the Try & Buy Download link. This takes you to the Download Center Login page.
    3. Enter your username and password to login, (you may need to register). Accept the license agreement. You will be presented with the download page.
    4. Be sure you are logged on as 'yourself', not a root user.
    5. Find the correct file for the Solaris platform, ffj_ee_solsparc_en.bin, (151.54MB), and click the link to begin the product download, saving the file into a download directory of your choice.
    6. Once the download is complete, set the DISPLAY environment variable to display to your local system, for example: % setenv DISPLAY your-local-system:0.0
    7. Set the execute permission on the ffj_ee_solsparc_en.bin file by typing: % chmod a+x ffj_ee_solsparc_en.bin
    8. Execute the installer as a non-root user by typing (from the download directory): % ffj_ee_solsparc_en.bin
    9. See the Sun ONE Studio 4, Enterprise Edition for Java Getting Started Guide (found at http://forte.sun.com/ffj/documentation/s1s41/getstartedee41.pdf ) for additional installation and configuration information.

  • Error at starting j2ee server (newbie)

    Dear all,
    I am not able to start j2ee server successfully. I keep getting the following error when I try to start the server by typing j2ee:
    C:\Documents and Settings\ali>j2ee
    J2EE server listen port: 1050
    Redirecting the output and error streams to the following files:
    C:\j2sdkee1.3.1\logs\nofear\j2ee\j2ee\system.out
    C:\j2sdkee1.3.1\logs\nofear\j2ee\j2ee\system.err
    Exception in thread "main"
    I have j2sdkee1.3.1 and jdk1.3.0_05 installed in my laptop with the following settings:
    User variable:
    PATH=C:\jdk1.3.0_05\bin;C:\j2sdkee1.3.1\bin;C:\Program Files\Java\jre1.6.0_02\bin;C:\Program Files\Java\jdk1.6.0_02\bin; C:\j2sdkee1.3.1\bin;
    CLASSPATH=.;C:\Program Files\Java\jre1.6.0_02\bin;C:\jdk1.3.0_05\bin;C:\j2sdkee1.3.1\bin;
    System variable:
    PATH=D:\MikTex\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_02\bin;C:\PROGRA~1\CINDER~1\CINDER~2\Program;C:\Program Files\Java\jre1.6.0_02\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools;C:\WINDOWS\system32\wbem;C:\Program Files\ImageConverter Plus;C:\Program Files\Samsung\Samsung PC Studio 3\;C:\Program Files\QuickTime\QTSystem\;C:\jdk1.3.0_05\bin;C:\j2sdkee1.3.1\bin;
    CLASSPATH= .;C:\jdk1.3.0_05\bin;C:\Program Files\Java\jdk1.6.0_02\bin; C:\Program Files\Java\jre1.6.2_02\bin;C:\Program Files\Java\jdk1.6.0_02\bin;C:\Program Files\Java\jre1.6.0_05\lib\ext\QTJava.zip;C:\j2sdkee1.3.1\bin;C:\j2sdkee1.3.1;
    Java_home= C:\jdk1.3.0_05
    J2ee_home= C:\j2sdkee1.3.1
    Could you please tell me why as I am not able to pass this stage without help?
    Kind regards,
    Al

    Modify your JAVA_HOME to C:\Program%20%Files\j2sdk1.4.2_08
    as spaces are not allowed. Most probably it will work.
    I have installed J2EE SDK 1.3 on my machine. I have
    set
    J2EE_HOME=C:\j2sdkee1.3.1
    JAVA_HOME=C:\Program Files\j2sdk1.4.2_08
    and
    PATH=C:\j2sdkee1.3.1\bin
    CLASSPATH
    =%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale
    environmental variables. All the four path seem to
    OK. But when I'm trying to start application server
    using j2ee -verbose command on my dos prompt I'm
    getting following error
    'C:\Program' is not recognized as an internal or
    external command, operable program or batch file.
    I tried j2ee -verbose command from C: prompt as well
    as from C:\j2sdkee1.3.1\bin prompt in which j2ee
    batch file is present.
    Please help/guide on above issue

  • Problem starting J2EE Server

    I installed J2EE on Windows NT. I am getting the following exceptions when I started J2EE Server....
    1. java.lang.NullPointerException at com.sun.enterprise.server.J2EEServer.....
    2. RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process....
    I tried to change the port no. from the default 1050 to 10500, but it didn't help.
    Any suggestions please?

    Since u r getting the TCP/IP port already in use error, u probably have some other service/server running on that port.Try the following steps:
    1) Start menu >> Control Panel >> Services
    2) See which services are running presently. In case u have any web server,Appln. server running. , stop them and then start J2EE again.
    But, I still think u r missing something in the classpath.

  • Error message while starting J2EE Server!

    Hi!
    I get this error message when i try to start J2EE server:
    c:\j2ee -verbose
    Exception in thread "main" java.lang.NoSuchMethodError
    at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImp
    l.java:1256)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(Sh
    utdownUtilDelegate.java:223)
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(Shutdown
    UtilDelegate.java:178)
    at javax.rmi.CORBA.Util.writeAny(Util.java:80)
    at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.re
    bind(Unknown Source)
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188
    at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202
    at javax.naming.InitialContext.rebind(InitialContext.java:370)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:192)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
    erImpl.java:149)
    at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
    at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.ja
    va:473)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Can someone tell me why?
    Thanks

    You need jsdk 1.3.1_03 or above to run j2ee 1.3.1 Any other version will give you this error.

  • When starting J2EE server .....

    I have installed j2sdk 1.4 & j2sdkee1.3 on Windows XP. I have set Environment variables.
    When I start j2ee server
    COMMAN PROMPT SAYS
    C:\>j2ee
    Warning: This J2EE SDK release has only been tested on J2SE v1.3
    J2EE server listen port: 1050
    Redirecting the output and error streams to the following files:
    c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.out
    c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.err
    Exception in thread "main"
    C:\>
    SYSTEM.ERR shows
    Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.
    java.lang.NoSuchMethodError: loadClass0
         at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native Method)
         at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:58)
         at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:181)
         at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:84)
         at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:392)
         at javax.rmi.CORBA.Util.loadClass(Util.java:233)
         at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:179)
         at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:58)
         at com.sun.enterprise.server.J2EEServer.createActivationObjects(../../src/share/com/sun/enterprise/server/J2EEServer.java:397)
         at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/enterprise/server/J2EEServer.java:227)
         at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/enterprise/server/J2EEServer.java:901)
    SYSTEM.OUT shows
    Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
    VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
    J2EE Home Directory has been set to: c:\j2sdkee1.3.
    Naming service started:1050
    I tried changing the port number from 1050 to 10590 (as shown in Sun site) but didn't help. Same problem.
    One more thing, can this problem be b'coz of "Warning: This J2EE SDK release has only been tested on J2SE v1.3" this starting line on start of server.
    Can anyone tell me, y am I facing this problem and how to solve it. Other applications like deploytool, cloudscape r running fine. I didn't try others.
    Looking for help as soon as possible
    Thanks
    Trupti

    You may want to try and use J2SE 1.3 instead of J2SE 1.4. This may alleviate your issue.

  • Can't start J2EE server

    I have installed Java 2 SDK, Enterprise Edition version 1.3 on Win NT server. Installation was successfull.
    While starting J2EE server, I am getting following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: COMPUTER\db\

    A few basic steps taken from http://java.sun.com/j2ee/sdk_1.3/install.html#win_soft
    Installing the Windows Bundle
    1. If you have installed a previous version of the J2EE SDK product, you must delete or un-install the previous version from your computer before proceeding with the new version.
    2. Set the environment variables.
    Before running the J2EE SDK, you must set these environment variables:
    J2EE_HOME - the directory where you installed this release.
    JAVA_HOME - the directory where the Java 2 SDK Standard Edition is installed.
    PATH - include the bin directory beneath the directory where you've installed this release.

  • Can't start J2ee server using j2sdkee1.3.1

    When i try to start j2ee server , it shows the following
    Error message.
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context
    at com.sun.enterprise.server.J2EEServer.<clinit>(J2EEServer.java:53)
    I have set all environment variables as follows
    set path=.;c:\jdk1.2.2\bin;c:\j2sdkee1.3.1\bin;
    set classpath=.c:\jdk1.2.2\lib;c:\j2sdkee1.3.1\lib\j2ee.jar
    set JAVA_HOME=c:\jdk1.2.2
    set J2EE_HOME=c:\j2sdkee1.3.
    pls kindly give a solution.

    Try rather using the 1.4 version available here: http://java.sun.com/j2ee/1.4/
    and use this dedicated forum: http://forum.java.sun.com/forum.jsp?forum=136
    -Alexis

  • Starting j2ee server from a java Application

    Hi.
    I'm trying to start j2ee server by clicking a button in an application I'm developing. I don't know how to do it. I haven't found In the documentation some topic related. I look at the j2ee.bat but it just call a class named J2EEServer, and the API of this class is not in the API of the j2ee.
    Can you help me please??
    Thanks
    Maucho

    thanks!
    That was my first approach , and it works, but the problem is that I can't kill the process then, cause the method destroy() don't kill j2ee. Maybe it kills the j2ee.bat, but not the server itself. Maybe you know how to do it, I'll really appreciate it.
    Regards

  • Cannot start J2EE server on Windows 2000 server

    Hi..
    I installed J2EE 1.3(beta) along with J2SE1.3 that comes with the Java Jump start CDs.
    The installation process went fine...I configured the environment variables but when I try to start the J2EE server from command prompt I get the following error.
    E:\>j2ee -verbose
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context at com.sun.enterprise.server.J2EEServer.<clinit>(J2EEServer.java:59)
    The same error is encountered with other switches(stop, version etc.) of j2ee.
    There is no conflict of port numbers. Can anyone please guide me properly what I have done wrong in the installation process?
    Thanks

    Well...I removed the CLASSPATH variable all together and reinstalled J2SE 1.3 again(refreshed all the environment variables) and then started j2ee server....and it worked this time...
    Thanks alot...

  • When starting J2EE server PE8 on Linux

    When starting J2EE server PE8 on Linux Fedora Core 1, the following message is displayed:-
    "Unable to read system environment. No system environment will be used."
    1. Is there any side effect to the J2EE server PE8 performance or functionalities about this warning message?
    2. Is there any way to avoid this issuea in case it does have side effect?
    Regards,
    William

    I find libcliutil.so in $J2EE_HOME/lib and did the followings and got:-
    #> ldd libcliutil.so
    ldd: warning: you do not have execution permission for `./libcliutil.so'
    libpthread.so.0 => /lib/tls/libpthread.so.0 (0x008ad000)
    libdl.so.2 => /lib/libdl.so.2 (0x00782000)
    libcrypt.so.1 => /lib/libcrypt.so.1 (0x00433000)
    libresolv.so.2 => /lib/libresolv.so.2 (0x00913000)
    libstdc++-libc6.2-2.so.3 => not found
    libm.so.6 => /lib/tls/libm.so.6 (0x0075e000)
    libc.so.6 => /lib/tls/libc.so.6 (0x00623000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0060b000)
    Can we infer that the warning message is displayed due to "libstdc++-libc6.2-2.so.3 => not found"?
    Regards,
    William

  • Error when starting j2ee server, please help

    JMS expert,
    I am using j2sdkee1.3 with jdk1.3.1_01 over NT system. When I started JMS provider by "j2ee -verbose", I got an exception saying "TCP/IP ports(1050) in use by another process". Then I tried other port numbers like 1051 and 1061, the same error kept coming. What is the best port number I should use or whatelse I should do to solve this problem? Thanks.
    C:\j2sdkee1.3\jms_execise>c:\j2sdkee1.3\bin\j2ee -verbose
    J2EE server listen port: 1081
    org.omg.CORBA.INTERNAL: minor code: 1398079697 completed: No
    at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:256)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205)
    at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:140)
    at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:488)
    at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:154)
    at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:112)
    at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:110)
    at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:128)
    at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
    at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:2421)
    at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2356)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:193)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:203)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:203)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
    J2EE server reported the following error: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
    Error executing J2EE server ...
    ****************************************************************

    Hello.,
    Did you get a resolution to this error ? I get the same error, odd thing is that i had it working for several days and now it won;t start ?
    JMS expert,
    I am using j2sdkee1.3 with jdk1.3.1_01 over NT system.
    When I started JMS provider by "j2ee -verbose", I got
    an exception saying "TCP/IP ports(1050) in use by
    another process". Then I tried other port numbers like
    1051 and 1061, the same error kept coming. What is
    the best port number I should use or whatelse I should
    do to solve this problem? Thanks.
    C:\j2sdkee1.3\jms_execise>c:\j2sdkee1.3\bin\j2ee
    -verbose
    J2EE server listen port: 1081
    org.omg.CORBA.INTERNAL: minor code: 1398079697
    completed: No
    at
    at
    at
    t
    com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(
    IOPImpl.java:256)
    at
    at
    at
    t
    com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIO
    Impl.java:205)
    at
    at
    at
    t
    com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(G
    OPImpl.java:140)
    at
    at
    at
    t
    com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(
    OAORB.java:488)
    at
    at
    at
    t
    com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(PO
    Impl.java:154)
    at
    at
    at
    t
    com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.ja
    a:112)
    at
    at
    at
    t
    com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB
    java:110)
    at
    at
    at
    t
    com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.
    ava:128)
    at
    at
    at
    t
    com.sun.corba.ee.internal.core.Future.evaluate(Future.j
    va:21)
    at
    at
    at
    t
    com.sun.corba.ee.internal.corba.ORB.resolveInitialRefer
    nce(ORB.java:2421)
    at
    at
    at
    t
    com.sun.corba.ee.internal.corba.ORB.resolve_initial_ref
    rences(ORB.java:2356)
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
    :193)
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
    a:913)
    java.lang.RuntimeException: Unable to create ORB.
    Possible causes include TCP/IP ports in use by another
    process
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
    :203)
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
    a:913)
    java.lang.RuntimeException: Unable to create ORB.
    Possible causes include TCP/IP ports in use by another
    process
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
    :203)
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
    a:913)
    java.lang.RuntimeException: Unable to create ORB.
    Possible causes include TCP/IP ports in use by another
    process
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
    :350)
    at
    at
    at
    t
    com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
    a:913)
    J2EE server reported the following error: Unable to
    create ORB. Possible causes include TCP/IP ports in
    use by another process
    Error executing J2EE server ...

Maybe you are looking for

  • Strange problem with network drive

    i can see my network drive but i cant see the files and folders inside .Please help me...

  • QQ International for Mac: Video Chat problem

    Hello Communities, I downloaded the MAC version for QQ International to talk to a cousin of mine who will be working in China.  He's had it on his Windows system here in the states for sometime with no problems.  I can get the audio part to work, but

  • Speeding up image analysis,

    I am using a VI to analyse an AVI file showing liquid particle flow I want to acheive this in real time, by using the video capture card, however the system is far too slow to acheive this I am using colour matching, and doing some binary operations

  • Worst Function in an Application EVER!

    Just using the Capture function and 50 mins into the capture decided I didn't want to run to the end of the capture process so hit the "Esc" key to stop the process. The system then decided that what I really wanted was not to stop the import and kee

  • Can't play the musics I bought on iTMS

    Hello everyone, Yesterday I installed Windows Vista on my computer and when everything was done I've decided to go and install iTunes. The installation went just fine the problems started when I tried to play musics that were aquired through iTMS. Af