Avatar billede mini97ad Nybegynder
19. september 2005 - 12:52 Der er 3 kommentarer

Kan ikke oprette Tomcat som service

Hej

jeg forsøger at få en tomcat server til at køre som service. Hver gang jeg starter servicen får jeg fejlkode: System error 1067 occured.

Ved I hvorfor dette sker?

Her er indholdet af min wrapper fil:


# jk_service.properties - a bootstrup file for the Tomcat NT service.
#
# This file provides jk_nt_service with the needed information to
# start tomcat at a different process.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to modify is the first two properties, i.e.
# wrapper.tomcat_home and wrapper.java_home. Most of the configuration
# is derived from these two.
#

#
# wrapper.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
wrapper.tomcat_home=D:\...............
#
# wrapper.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
wrapper.java_home=D:............

#
#------ ADVANCED MODE ------------------------------------------------
# Make sure that you read the how-to before making too many changes.
#---------------------------------------------------------------------
#

#
# Defining where the service is going to put the standard
# output of Tomcat. This is where System.out.println and
# System.err.println goes to.
#
wrapper.stdout=$(wrapper.tomcat_home)\logs\stdout.log
wrapper.stderr=$(wrapper.tomcat_home)\logs\stderr.log

#
# Additions to the path. put here directories where you store DLLs for
# native methods etc.
#
wrapper.ld_path=$(wrapper.java_home)\jre\bin
#wrapper.ld_path=D:\
wrapper.ld_path=$(wrapper.tomcat_home)\bin\native

#
# Defining the classpath. All the rows that belongs to the class_path
# property are concatenated to create the classpath for Tomcat.
#
# If you have additional locations that you would like to add to the
# claspath you should add a new wrapper.class_path=<location> line.
#
wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar

#
# and a tribute to JDK1.1.x
#
#wrapper.class_path=$(wrapper.java_home)\lib\classes.zip
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar

#
# This is the Java interpreter used for running Tomcat
#
wrapper.javabin=$(wrapper.java_home)\bin\java.exe

#
# This is Tomcat's startup class (the class that contains Tomcat's
# starting point.
#
wrapper.startup_class=org.apache.catalina.startup.Bootstrap

#
# This is the location where tomcat's policy file
# is located
#
wrapper.tomcat_policy=$(wrapper.tomcat_home)\conf\catalina.policy

#
# This is the location where tomcat's server.xml configuration file
# is located.
#
wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml

#
# The NT service uses AJP12/AJP13 to shutdown Tomcat. The
# wrapper.shutdown_port tells the service the identity of the port that
# is used by AJP12/AJP13.
#
wrapper.shutdown_port=8009

#
# Can either be ajp12 or ajp13 depending on your configuration.
#
# Default value is ajp12
#
wrapper.shutdown_protocol=ajp12

#
# This is the command line that is used to start Tomcat. You can *add* extra
# parameters to it but you can not remove anything.
#
#wrapper.cmd_line=$(wrapper.javabin) -Djava.security.policy=="$(wrapper.tomcat_policy)"  -Dtomcat.home="$(wrapper.tomcat_home)" -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml)
wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy=="$(wrapper.tomcat_policy)" -Dtomcat.home="$(wrapper.tomcat_home)" -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start
Avatar billede arne_v Ekspert
19. september 2005 - 12:55 #1
er

wrapper.tomcat_home=D:\...............
wrapper.java_home=D:............

korrekte ?
Avatar billede mini97ad Nybegynder
19. september 2005 - 12:58 #2
ja de er korrekte - jeg har selv lige hurtigt erstattet den rigtige sti med D:\....
Avatar billede mini97ad Nybegynder
20. september 2005 - 08:56 #3
Er der virkelig ikke nogen, der har et bud?
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Uanset kodesprog, så giver vi dig mulighederne for at udvikle det, du behøver.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester