Operating System - HP-UX
1748143 Members
3620 Online
108758 Solutions
New Discussion юеВ

Webmin & tomcat cannot start .

 
omars
Advisor

Webmin & tomcat cannot start .

Hi ,
Apache suite is runing fine. The version of Apache is 2.043, running on HPUX-11.0

But webmin & tomcat gives the following errors :

/opt/hpws/webmin/webmin-init start
Starting Webmin server in /opt/hpws/webmin
syntax error in file /opt/hpws/webmin/miniserv.pl at line 6, next 2 tokens "use
Socket"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 40, next 2 tokens "\Ne
t:"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 46, next 2 tokens "}"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 54, next 2 tokens "}"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 62, next 2 tokens "}"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 114, next 2 tokens "re
f("
Spurious backslash ignored at /opt/hpws/webmin/miniserv.pl line 115.
syntax error in file /opt/hpws/webmin/miniserv.pl at line 118, next 2 tokens "}"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 135, next 2 tokens "lo
cal @user"
syntax error in file /opt/hpws/webmin/miniserv.pl at line 140, next token "["
syntax error in file /opt/hpws/webmin/miniserv.pl at line 145, next token "["
/opt/hpws/webmin/miniserv.pl has too many errors.


While tomcat start command gives

# /opt/hpws/tomcat/bin/startup.sh
Warning: running Tomcat as root can cause security vulnerabilities
(for more information see tomcat.user.guide)
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program


Hope someone could help me .
thanks .

regards ,
omari
Nothing is too late to learn
8 REPLIES 8
Ravi_8
Honored Contributor

Re: Webmin & tomcat cannot start .

Hi,

have you the set the path for java in /etc/PATH file?
never give up
Kellogg Unix Team
Trusted Contributor

Re: Webmin & tomcat cannot start .

Do you have webmin startup script in /opt/hpapache2/webmin directory? If yes, try starting from there.

...Manjeet
work is fun ! (my manager is standing behind me!!)
omars
Advisor

Re: Webmin & tomcat cannot start .

Hi to All,

a.)Firstly i dont think i have java .So can u tell me a place to download the apporpiate version ?

b.)But i do have the Perl and it is located in
the directory /opt/perl/bin .
Running webmin in inside the directory /opt/hpws/webmin still
yields the same errors.

Hope to hear from you all.
Nothing is too late to learn
Ricky B. Nino
Frequent Advisor

Re: Webmin & tomcat cannot start .

Hi Omar,

You can download java from www.sun.com .

Please take note of the java version you are going to download. It should satisfy the requirement of your TOMCAT version. Write-ups about these compatibilities were also posted in www.sun.com .

good luck...
Opportunities expand for people willing to put time and effort into learning new skills.
KapilRaj
Honored Contributor

Re: Webmin & tomcat cannot start .

Omari,

Nice to find someone who is using Tomcat . It is a servlette engine and runs as a JVM (Java Virtual Machine).

-We use JDK 1.3.1 for running tomcat. You may download the same and use it.

-It is better to include the PATH variable in /opt/hpws/tomcat/bin/environmentsetup.sh this line may be included in the startup.sh (A better standard to name it)

-Do not run Tomcat as root , create a seperate user and run it.If you are running it as root so as to bind listner to port 80 use some setuid functions....

For what r u using Tomcat ?....

Cheers,

kaps
Nothing is impossible
omars
Advisor

Re: Webmin & tomcat cannot start .

Hi Raj ,
I will try to download the Java
1.4.1 and see if tomcat works .

Anyway tomcat is included in the bundle package for hp-ux apache web suite , ( ie a web-server purpose )


By the way i am wondering why there's errors after starting webmin.
It seems perl command does not
understand the script miniserv.pl
despite having the directive /opt/perl/bin/perl .

I attach here the script for better understanding .
Nothing is too late to learn
KapilRaj
Honored Contributor

Re: Webmin & tomcat cannot start .

Not a big CAT in scripting so no comments abt the script attached. What is webmin ?. U hv'nt said why u need tomcat if u donot need why to start ?.

kaps
Nothing is impossible
omars
Advisor

Re: Webmin & tomcat cannot start .

Hi to ALL ,

Tomcat is now successfully running after the installation
of Java 1.4.
(http://www.sun.com or if using
hp-ux platform , then
http:www.software.hp.com
)

Perl5 .8 needs to be download
in order for webmin to start .
(http:www.perl.com )


Will update this issue , after
downloading & installing Perl5.8

rgds,
omari
Nothing is too late to learn