- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Tomcat root application bug?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 04:17 AM
тАО05-29-2009 04:17 AM
It seams to be a case problem since I get 400 - bad request. Renaming the war and/or the deployed root directory does not work either.
Any ideas of what might be causing this and what I can do to successfully deploy any root application?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2009 08:11 AM
тАО06-09-2009 08:11 AM
Re: Tomcat root application bug?
Disk: ODS-2 or ODS-5?
JAVA$... and DECC$... logicals?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2009 09:55 PM
тАО06-09-2009 09:55 PM
Re: Tomcat root application bug?
Except for the default HP Tomcat scripts I run the following:
admds79103@secv21> type applications:[web.bin]JAVA$CONFIG_SETUP.COM
$! JAVA$CONFIG_SETUP.COM
$!
$! --NOTE:
$! -- THIS FILE WAS ORIGINALLY GENERATED BY
$! -- SYS$COMMON:[JAVA$150.COM]JAVA$CONFIG_WIZARD.COM;1
$! -- ON 27-FEB-2009 12:09:29.25
$! -- IT MAY HAVE BEEN MANUALLY EDITTED SINCE THEN.
$! --
$! -- For more complete description of the logicals shown,
$! -- please read the release notes.
$!
$! The following are useful in all environments.
$!
$ SET PROCESS/PARSE_STYLE=EXTENDED
$ DEFINE/JOB DECC$ARGV_PARSE_STYLE TRUE
$ DEFINE/JOB DECC$EFS_CASE_PRESERVE TRUE
$ DEFINE/JOB JAVA$DAEMONIZE_MAIN_THREAD TRUE
$ DEFINE/JOB JAVA$DISABLE_CMDFILE_WHITESPACE_PARSING TRUE
$ DEFINE/JOB DECC$ENABLE_GETENV_CACHE TRUE
$!
$! Omitting logicals useful in debugging environment.
$!
$! Logicals useful for mimicing UNIX-like environments:
$!
$ DEFINE/JOB JAVA$CREATE_DIR_WITH_OWNER_DELETE TRUE ! make mkdir & rmdir symmetric --
$! no need to change dir. protection before delete
$ DEFINE/JOB JAVA$DELETE_ALL_VERSIONS TRUE ! delete all copies of file on delete operation
$ DEFINE/JOB JAVA$RENAME_ALL_VERSIONS TRUE ! rename all copies of file on rename operation
$ DEFINE/JOB DECC$POSIX_SEEK_STREAM_FILE TRUE ! make seek() beyond EOF not extend file if no write happened
$!
$! Logicals useful for applications with many children:
$!
$ DEFINE/JOB JAVA$FORK_PIPE_STYLE 2 ! use buffered Mailbox devices and TCP/IP devices for interprocess communication
$ DEFINE/JOB JAVA$FORK_SUPPORT_CHDIR TRUE ! simulate chdir behavior on runtime.exec()
$ DEFINE/JOB JAVA$FORK_MAILBOX_MESSAGES 8 ! default -- increase for better buffering
$ DEFINE/JOB JAVA$WAIT_FOR_CHILDREN 5 ! seconds to delay exiting main to allow children to exit first
$!
$! Logicals useful for supporting file sharing:
$!
$ DEFINE/JOB DECC$FILE_SHARING TRUE ! ask for C-RTL support for file sharing
$!
$! Omitting logicals useful for bypassing secondary stat() call.
$!
$! Logicals useful to set up caching of file/directory information
$!
$ DEFINE/JOB JAVA$CACHING_INTERVAL 10 ! to disable, undefine logical or set value to 0
$ DEFINE/JOB JAVA$CACHING_DIRECTORY TRUE ! enable special case -- don't look in directory if directory known to be absen
t
$!
$ DEFINE/JOB JAVA$CREATE_STMLF_FORMAT TRUE ! No stream-lf log files please. 2009-03-05 GID/FI
$ DEFINE/JOB JAVA$FSYNC_INTERVAL 5 ! Flush files including log files every Xs
$!
$! Logicals useful for supporting both ODS-2 and ODS-5 formatted disks.
$!
$ DEFINE/JOB JAVA$FILENAME_CONTROLS -1 ! enable all mappings
$!
$! See: SYS$COMMON:[JAVA$150.COM]JAVA$FILENAME_CONTROLS.COM for explanation of bits enabled above.
$!
$! Logicals useful for workstations with PC-style keyboard:
$!
$ DEFINE/JOB JAVA$KEYBOARD_TYPE_DEC TRUE ! make PC-style keyboard transmit keycodes like DEC-style keyboard
$!
admds79103@secv21>
Is it parse style that mess things up? It is needed for a couple of the web applications though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2009 10:09 PM
тАО06-09-2009 10:09 PM
Re: Tomcat root application bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 12:04 AM
тАО06-10-2009 12:04 AM
Re: Tomcat root application bug?
admds79103@secv21> type applications:[web.conf]TOMCAT_JVM_ARGS.DAT
-mx512m
-Djava.awt.headless=true
-Djava.awt.headlesslib=true
-XX:+ServerApp
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=TOMCAT_ROOT/conf/logging.properties
admds79103@secv21>
and this is the login.com for the user running Tomcat:
admds79103@secv21> typ APPLICATIONS:[WEB.BIN]login.com
$! 2009-02-27 GID/FI Login.com for Tomcat user.
$!
$ write sys$output "''f$cvtime()' Info: Entering ''f$environment("PROCEDURE")'"
$ bin_dir = f$parse(f$environment("PROCEDURE"),,,"DEVICE") + f$parse(f$environment("PROCEDURE"),,,"DIRECTORY")
$ conf_dir = bin_dir - ".BIN]" + ".CONF]"
$!
$! Setup Java enironment
$ @'bin_dir'JAVA$CONFIG_SETUP.COM
$!
$! Tell HP scripts where to find JVM config.
$ define/job APACHE$JAKARTA_JAVA_PARAMETERS_FILE 'conf_dir'TOMCAT_JVM_ARGS.DAT
$ define/job APACHE$JAKARTA_USER_CLASSPATH "TOMCAT_ROOT:[bin]*.JAR" ! Needed for logging
$!
$! Execute application specific script
$ if f$search("''bin_dir'SETUP_ENVIRONMENT.COM") .nes. "" then @'bin_dir'SETUP_ENVIRONMENT.COM
$!
$! Give the applications a chance to navigate from the root.
$ TOMCAT_ROOT = BIN_DIR - ".BIN]" + ".CLUSTER." + f$getsyi("NODENAME") + ".APACHE.JAKARTA.TOMCAT]"
$ @utils:[000000]DEFINE_CONCEALED.COM TOMCAT_ROOT "''TOMCAT_ROOT'"
$!
$! Jump to tomcat_bin so that log conf files are found.
$ set default TOMCAT_ROOT:[BIN]
$!
$ show process /parse
$!
$ write sys$output "''f$cvtime()' Info: Exiting ''f$environment("PROCEDURE")'"
$!
$ exit
admds79103@secv21>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 12:44 AM
тАО06-10-2009 12:44 AM
Re: Tomcat root application bug?
DECC$EFS_CASE_SPECIAL (set to "ENABLE")
APACHE$JAKARTA_ENABLE_ODS5 (set to 1)
Also, you have DECC$EFS_CASE_PRESERVE set to true, and I am not sure if that works. I do know that it works when set to "ENABLE"
These three would normally go into the .tomcatrc file.
If the above doesn't work, there may be more that's missing. I suggest you look at the CSWS_JAVA Installation Guide. I believe it has a section that specifically deals with installing on an ODS-5 disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 03:58 AM
тАО06-10-2009 03:58 AM
SolutionFrom how I read this, if DECC$EFS_CASE_SPECIAL is set, it would cause a directory named "ROOT" to appear as "root" to Unix apps.
You might want to check and see if this gets set anywhere, and see what happens if it's disabled.
Here's the description:
DECC$EFS_CASE_SPECIAL
With DECC$EFS_CASE_SPECIAL enabled, case is preserved only for file names containing lowercase. If an element of a file name contains all uppercase letters, it is reported in all lowercase in UNIX style.
When enabled, DECC$EFS_CASE_SPECIAL overrides the value of DECC$EFS_CASE_PRESERVE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2009 11:36 AM
тАО06-11-2009 11:36 AM
Re: Tomcat root application bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 02:16 AM
тАО06-15-2009 02:16 AM
Re: Tomcat root application bug?
I also had to delete everything in [APACHE.JAKARTA.TOMCAT.conf.catalina.localhost...]*.*;* as well as the case on the config file names in there took precedence over the logicals and the .war file name case. Took a while to figure out since it worked in one of two nodes in the cluster :)
You don't happend to know any way of running Tomcat on port 80 without using Apache in front or giving the user running Tomcat full privileges?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 04:51 AM
тАО06-15-2009 04:51 AM
Re: Tomcat root application bug?
I'm glad your initial problemn got solved. As to the other question, no, I don't know a way to do this. You might want to ask that question in a new thread, to catch other people's attention who might know a way to.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 05:19 AM
тАО06-15-2009 05:19 AM
Re: Tomcat root application bug?
Here are some related details...
http://wiki.apache.org/tomcat/HowTo
The approach using the little stub program will also work here, too. That written, the construction and the requisite INSTALL command mechanism differs from the Unix syntax shown in the Apache Wiki.
Details on allowing a non-privileged OpenVMS user to execute a procedure or an image with privileges is discussed around the net; that's basically what is involved here. Here is one article that discusses some of the options:
http://labs.hoffmanlabs.com/node/491
The Apache Wiki article was found via...
http://www.google.com/search?q=tomcat+without+apache