Announcement Announcement Module
Collapse
No announcement yet.
Problem with install and start of tc server Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with install and start of tc server

    Hi,

    I am trying to install tc server in Windows 2008 server 64 bit machine but I get this error,

    INFO Derived instance name: kcpserv
    INFO Running Windows architecture: winx86_64
    INFO Service Information set.wrapper.ntservice.id=tcruntime-C-Users-Administrator-Documents-tc-server-vfabric-tc-server-standard-2.5.0.RELEASE-kcpserv
    INFO Instance name: kcpserv
    INFO Script directory: C:\Users\Administrator\Documents\tc server\vfabric-tc-server-standard-2.5.0.RELEASE\
    INFO tc Runtime location: C:\Users\Administrator\Documents\tc server\vfabric-tc-server-standard-2.5.0.RELEASE\
    INFO Instance base: C:\Users\Administrator\Documents\tc server\vfabric-tc-server-standard-2.5.0.RELEASE
    INFO Binary dir: C:\Users\Administrator\Documents\tc server\vfabric-tc-server-standard-2.5.0.RELEASE\\tomcat-7.0.12.A.RELEASE
    INFO Runtime version: 7.0.12.A.RELEASE
    INFO Script version: 2.5.0.RELEASE
    INFO Installing instance at C:\Users\Administrator\Documents\tc server\vfabric-tc-server-standard-2.5.0.RELEASE\kcpserv
    FATAL | wrapper | The argument '-Xmx512M' is not a valid property name-value pair.

    Any insight on this will be highly appreciated.

    Regards,
    kcp

  • #2
    Same problem for me on Windows 7 64 bit.

    Comment


    • #3
      Sorry to hear you're having problems.

      Can you please post the contents of your instance's conf/wrapper.conf file?

      Comment


      • #4
        I didn't modify anything from the downloaded zip file. Here's what I did:

        1. Unzip contents to C:\vfabric-tc-server-developer-2.5.0.RELEASE
        Code:
        C:\vfabric-tc-server-developer-2.5.0.RELEASE>tcruntime-instance.bat create insight -t insight
        Creating instance 'insight' ...
          Using separate layout
          Creating bin\setenv.bat
          Creating conf\wrapper.conf
          Applying template 'base'
            Copying template's contents
            Applying fragment 'context-fragment.xml' to 'conf/context.xml'
            Applying fragment 'server-fragment.xml' to 'conf/server.xml'
            Applying fragment 'web-fragment.xml' to 'conf/web.xml'
            Applying fragment 'tomcat-users-fragment.xml' to 'conf/tomcat-users.xml'
            Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties'
          Applying template 'base-tomcat-7'
            Copying template's contents
            Applying fragment 'server-fragment.xml' to 'conf/server.xml'
            Applying fragment 'web-fragment.xml' to 'conf/web.xml'
            Applying fragment 'catalina-fragment.properties' to 'conf/catalina.properties'
          Applying template 'insight'
            Copying template's contents
            Applying fragment 'context-fragment.xml' to 'conf/context.xml'
            Applying fragment 'server-fragment.xml' to 'conf/server.xml'
          Applying template 'bio'
            Copying template's contents
            Applying fragment 'server-fragment.xml' to 'conf/server.xml'
          Configuring instance 'insight' to use Tomcat version 7.0.12.A.RELEASE
          Setting permissions
        Instance created
        Connector summary
          Port: 8080   Type: Blocking IO   Secure: false
        
        C:\vfabric-tc-server-developer-2.5.0.RELEASE>cd insight\bin
        
        C:\vfabric-tc-server-developer-2.5.0.RELEASE\insight\bin>tcruntime-ctl.bat start
        INFO Derived instance name: insight
        INFO Running Windows architecture: winx86_64
        INFO Service Information set.wrapper.ntservice.id=tcruntime-C-vfabric-tc-server-developer-2.5.0.RELEASE-insight
        INFO Instance name:       insight
        INFO Script directory:    C:\vfabric-tc-server-developer-2.5.0.RELEASE\
        INFO tc Runtime location: C:\vfabric-tc-server-developer-2.5.0.RELEASE\
        INFO Instance base:       C:\vfabric-tc-server-developer-2.5.0.RELEASE
        INFO Binary dir:          C:\vfabric-tc-server-developer-2.5.0.RELEASE\\tomcat-7.0.12.A.RELEASE
        INFO Runtime version:     7.0.12.A.RELEASE
        INFO Script version:      2.5.0.RELEASE
        INFO Starting instance at C:\vfabric-tc-server-developer-2.5.0.RELEASE\insight
        FATAL  | wrapper  | The argument '-Xmx1024m' is not a valid property name-value pair.
        And the contents of conf/wrapper.conf:

        Code:
        #********************************************************************
        # Wrapper Properties
        #********************************************************************
        set.CATALINA_HOME=..\..
        set.CATALINA_BASE=..\..
        
        # Java Application
        wrapper.java.command=java
        
        # Java Main class.  This class must implement the WrapperListener interface
        #  or guarantee that the WrapperManager class is initialized.  Helper
        #  classes are provided to do this for you.  See the Integration section
        #  of the documentation for details.
        wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
        
        # Java Home
        set.JAVA_HOME="C:\Java\jdk1.6.0_22"
        
        # Java Additional Parameters
        wrapper.java.additional.1="-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed"
        wrapper.java.additional.2="-Dcatalina.base=%CATALINA_BASE%"
        wrapper.java.additional.3="-Dcatalina.home=%CATALINA_HOME%"
        wrapper.java.additional.4="-Djava.io.tmpdir=%CATALINA_BASE%\temp"
        wrapper.java.additional.5="-Djava.util.logging.manager=com.springsource.tcserver.serviceability.logging.TcServerLogManager"
        wrapper.java.additional.6="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
        wrapper.java.additional.7="-Dwrapper.dump.port=-1"
        wrapper.java.additional.8="-Xmx512M"
        wrapper.java.additional.9="-Xss192K"
        wrapper.java.additional.10="-Dinsight.base=%CATALINA_BASE%/insight"
        wrapper.java.additional.11="-Dinsight.logs=%CATALINA_BASE%/logs"
        wrapper.java.additional.12="-Djava.awt.headless=true"
        wrapper.java.additional.13="-Dgemfire.disableShutdownHook=true"
        wrapper.java.additional.14="-Dgemfire.ignoreMisses=true"
        wrapper.java.additional.15="-XX:MaxPermSize=256m"
        
        # Java Library Path
        wrapper.java.library.path.1=%CATALINA_BASE%\bin\winx86_64
        
        # Java Classpath
        wrapper.java.classpath.1=%CATALINA_BASE%\bin\winx86_64\wrapper.jar
        wrapper.java.classpath.2=%CATALINA_BASE%\bin\winx86_64\threaddumpwrapper.jar
        wrapper.java.classpath.3=%CATALINA_BASE%/bin/insight-bootstrap-tcserver-1.5.0.RELEASE.jar
        wrapper.java.classpath.4=%CATALINA_BASE%/lib/aspectjweaver-1.6.11.jar
        wrapper.java.classpath.5=%CATALINA_HOME%\bin\bootstrap.jar
        wrapper.java.classpath.6=%CATALINA_HOME%\bin\tomcat-juli.jar
        
        # Application parameters.  Add parameters as needed starting from 1
        # The first application parameter is the name of the class whose main
        # method is to be called when the application is launched.  The class
        # name is followed by the number of parameters to be passed to its main
        # method.  Then comes the actual parameters.
        #wrapper.app.parameter.1=org.apache.catalina.startup.Bootstrap
        wrapper.app.parameter.1=net.covalent.tomcat.wrapper.ThreadDumpWrapper
        wrapper.app.parameter.2=start
        
        wrapper.cpu.timeout=5
        wrapper.shutdown.timeout=60
        wrapper.jvm_exit.timeout=60
        
        wrapper.request_thread_dump_on_failed_jvm_exit=TRUE
        
        #********************************************************************
        # Wrapper Logging Properties
        #********************************************************************
        # Format of output for the console.  (See docs for formats)
        wrapper.console.format=PM
        
        # Log Level for console output.  (See docs for log levels)
        wrapper.console.loglevel=INFO
        
        # Log file to use for wrapper output logging.
        wrapper.logfile=%CATALINA_BASE%\logs\wrapper.log
        
        # Format of output for the log file.  (See docs for formats)
        wrapper.logfile.format=LPTM
        
        # Log Level for log file output.  (See docs for log levels)
        wrapper.logfile.loglevel=INFO
        
        # Maximum size that the log file will be allowed to grow to before
        #  the log is rolled. Size is specified in bytes.  The default value
        #  of 0, disables log rolling.  May abbreviate with the 'k' (kb) or
        #  'm' (mb) suffix.  For example: 10m = 10 megabytes.
        wrapper.logfile.maxsize=0
        
        # Maximum number of rolled log files which will be allowed before old
        #  files are deleted.  The default value of 0 implies no limit.
        wrapper.logfile.maxfiles=0
        
        # Log Level for sys/event log output.  (See docs for log levels)
        wrapper.syslog.loglevel=NONE
        
        #********************************************************************
        # Wrapper Windows Properties
        #********************************************************************
        # Title to use when running as a console
        wrapper.console.title=%CATALINA_BASE%
        
        #********************************************************************
        # Wrapper Windows NT/2000/XP Service Properties
        #********************************************************************
        # WARNING - Do not modify any of these properties when an application
        #  using this configuration file has been installed as a service.
        #  Please uninstall the service before modifying this section.  The
        #  service can then be reinstalled.
        
        # Service dependencies.  Add dependencies as needed starting from 1
        wrapper.ntservice.dependency.1=
        
        # Mode in which the service is installed.  AUTO_START or DEMAND_START
        wrapper.ntservice.starttype=AUTO_START
        
        # Allow the service to interact with the desktop.
        wrapper.ntservice.interactive=false
        
        #wrapper.ntservice.id is set in the tcruntime-ctl.bat script
        wrapper.ntservice.name=%wrapper.ntservice.id%
        wrapper.ntservice.displayname=SpringSource tc Runtime instance - %wrapper.ntservice.id%
        wrapper.ntservice.description=SpringSource tc Runtime instance at %wrapper.ntservice.id%

        Comment


        • #5
          Thanks for the info.

          There are a couple of things that don't look quite right. The first one is that it should be necessary to install the instance as a service prior to starting it. If the instance hasn't been installed as a service, start should fail with an error indicating that the instance isn't installed as a service. The second is that the start is failing with an error that mentions "-Xmx1024m", however your wrapper.conf is, as expected, specifying an Xmx of 512M.

          Is it possible that your environment's being 'polluted' by a previous installation? You can use the uninstall verb on tcruntime-ctl.bat to remove an instance's Windows service registration.

          Comment


          • #6
            Aha! Thanks Andy, I've sorted it out.

            The problem was that I had a pre-existing CATALINA_OPTS environment variable which had a value of '-Xmx1024m -Xms512m -XX:MaxPermSize=256M -Dcom.sun.management.jmxremote'. After removing the variable the server started up OK.

            I also needed to install the service (I had tried that and got the same error previously).

            Comment


            • #7
              Excellent. Thanks for letting us know you got to the bottom of it.

              Comment


              • #8
                If it's of any help., i just completed my install by instantiating a command line in Window 7, by Running a command line window as an Administrator. Service got installed in a gifi.

                Comment


                • #9
                  Originally posted by exoreich View Post
                  If it's of any help., i just completed my install by instantiating a command line in Window 7, by Running a command line window as an Administrator. Service got installed in a gifi.
                  Thanks, this is the actual solution. You need to run the install as an adminstrative user to install the service.

                  Comment

                  Working...
                  X