Problem starting Tomcat web server in Ubuntu.
Hi every one,
I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
'/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
I have set JAVA_HOME varible as
'/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
line 41 is '. setJava --devel Java2'
Could anyone help me to solve this issue?
And Thanks in advance
-Jegan
I use Ubuntu OS.I have installed J2sdk.I want to start tomcat webserver but whenever i start the server I get an error as
'/usr/share/tomcat/bin/catalina.sh: line 41: setJava: No such file or directory'
I tried removing the line, to find out the cause of that error.When I removed line 41 , it showed JAVA_HOME variables not set.
I have set JAVA_HOME varible as
'/usr/lib/j2sdk1.5-sun/bin/javac/usr/lib/j2sdk1.5-sun/bin/'
line 41 is '. setJava --devel Java2'
Could anyone help me to solve this issue?
And Thanks in advance
Similar Messages
-
Problem starting apache web server [SOLVED]
when i start apache manually (sudo /etc/rc.d/./httpd start) i just get a fail, but when i start it through webmin i get the following:
stty: standard input: Inappropriate ioctl for device
Can someone tell me how i can fix this, or if it is too hard to fix, give me the name of the next best http server available?i had problems with apache too, but then i just did some changes:
in httpd.conf i changed user from nobody to httpd;
then added to system user httpd via adduser httpd in group nobody and it worked well -
hello
i am a italian newbie for java world, and i would want to make you a question:
for resolving a problem with tomcat web server i must interpretate the following sentence: The best fix is to turn off automatic webapp reloading for the application: in Tomcat's server.xml, find the <Context> declaration, and ensure it is set to: reloadable="false".
there is someone who knows well the tomcat server.xml configuration file?
thank you very much
ps: sorry for my english!hi :-)
when you have a new class, you put it in /WEB-INF/classes/ right?
tomcat doesnt load this automatically,
you have to start-stop tomcat to apply your changes.
when reloadable option is set to true (ex. reloadable="true" )
you dont need to start-stop tomcat because tomcat will
automatically load it for you.
its ok for me in development stage,
but when you deploy your application for production,
its no longer advisable.
why?
because setting it to reloadable to true eats much resources on the server :-(
imagine you have 5000 class and when your setting is autoreload.
this might cause your server to hang.
its better to just stop the server, put your classes then start again the server.
i have to go home for now, i hope i give an idea :-)
regards, -
Problem in starting the web-server after configuring .so on AIX
I am trying to configure a .so file in iplanet fasttrack web server 4.1 on AIX 4.3. I have build the .so file on IBM AIX 4.3. But while starting the web-server it failed to start.It fails when I include the following in obj.conf "Init fn="test-init" config="ConfigFile". While starting web-server I got the following :
server terminated (signal 11): watchdog is restarting it
failure: server initialization failed
Any pointers on this would be helpful.I got similar errors in the past when the web server process was running in the background. Sometimes shutting down WAS does not work.
Before you start WAS ensure that no java process is running or better try rebooting. -
How to set the servlet context path manually in Tomcat web server.
I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
The error , what i'm getting is :
description :The requested resource (/MyApp/servlet/TestServlet) is not available.
Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>TestServlet</servlet-class>
</servlet>
</web-app>
one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
If you have any idea please let me know. -
Problem with iPlanet Web Server 6
We are getting an intermittent problem with our web server, the users start to get problems connecting to the web site.
I have found the following message in the error log -
failure ( 2390): Error accepting connection -5928, oserr=130 (Connect aborted)
can anybody help???Check out the below.
Problem 4680491. CSS causes oserr=130 in iWS 6.0 logs.
Workaround
If you are using the Cisco Content Services Switch (CSS) with Sun ONE Web Server and have set the value of the sticky bit setting in CSS to on, the following error is logged periodically in the error logs:
failure ( 2210): Error accepting connection -5928, oserr=130 (Connect aborted)
This is caused not by a defect in Sun ONE Web Server but by the setting of the sticky bit in CSS. To avoid the error logging, set the value of the sticky bit in CSS to off.
Which as been fixed in iWS 6.0 SP5.
For more info check the below link.
http://docs.sun.com/source/816-6434-10/rn60sp5.html
Dakshin. -
Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server
Hello Experts,
I have never done a BOBJ install before and I have some questions:
First, here is our setup: Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server
1. We are being asked how big u2013 disk space- to make the server. All I can find is 14 GB for an English only install, there is no documentation on how big the databases need to be. Does anyone have any experience and can tell me how big the databases are going to be initially? I need to tell the server team how much space to put on the server.
2. The documentation says to have two databases or schemas, one for Central Management Server and one for the Auditing Data Store. My question around this is whether there is a preferred way to do it, separate databases or separate schemas?
3. The documentation does not say anything about the file system layout, do we need to create the standard SAP file system layout (i.e. /sapmnt, etc.)
Many many thanks in advance, any advice would be a greate help .. please help
Regards,
Sunil PatelHi,
here are some answers:
1. Well for the Installation of the Software as itself (not the databases) i would recommend at least 30 GB. All the Reports are getting stored physically in the installation directory. This behavior is by default. Later you can move the FileStore (where the Reports, Universes, etc. are located in) to a NAS share f.e.
With Regards to the Databases i would recommend 1 GB for the CMS DB and 5 GB for the Audit DB. It depends on how you Audit your System. If you audit more actions, more information in the Audit DB will be stored.
2. 2 Schemas on one DB is fine
3. Usually you run a BOE installation on UNIX/LINUX under an installation user. BOE will be installed into his Home Directory.
Regards
-Seb. -
Problems starting the http server
I have problems starting 9ias http server. I issue:
/u09/ora9ias/infra/opmn/bin> opmnctl startall
opmnctl: starting opmn and all managed processes...
Request partial success -- 1 of 4 processes started.
and the HTTP server does not start.
If I go to the enterprise manager, the only service started is Single Sign On.
If I try to enter to the HTTP server it gives me the following error:
An error was encountered while loading page. Failed to initialize configuration management user session.. Repository access failed Root Cause: Password could not be retrieved. Password could not be retrieved
The iasdb is already started and working.
Any clues what can be going wrong??
help is greatly appreciated.Jorge, I suspect you've already fixed this problem. But if not, I have a standard operating procedure for this. Here's the gist of it, let me know if you need more detail.
1. shutdown the opmn layer (opmnctl stopall)
2. determine if the httpd.pid file exists (it's in the Apache/logs directory on linux)
3. delete the .pid file if it's there
4. if not, or if there's still a problem, tail the error_log for info
5. try to start the httpd (dcmctl start -ct ohs)
6. still a problem? ps -auxw | grep httpd
7. kill off the process(es)
8. try again to start up with dcmctl command in step 5
I can usually get it going at this point. If not, I have to do a reboot, which has always worked. Don't forget to shutdown the emctl and webcachectl if you're rebooting.
Hopefully this helps. It took a lot of learn-as-you-go for us to get this procedure. I'm sure the pros will role their eyes! :-) -
Starting/Stopping Web Server
I am using WebSrvr.Active in my vi to start the web server but when I stop the web server the browser continues to display the front panel. It seems that the setting WebSrvr.Active to false does not stop the server.
Is there a way to check if the server has stopped? Is there a way to disconnect or stop the remote monitoring pragmatically?According to this KB, the Websrvr.active should stop the server. It also metnoins that only the local machine can access this. I am curious though, does the computer you are accessing the web server with still show updating data even after you have called this property? If so, if you try and refresh the page, does it still stay loaded?
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video -
Hi experts,
I have been working with Eclipse for last 1 month. I was just working with Portal application component development and publishing it to the SAP EP J2EE server everything worked fine.
I have eclipse,JDK,Tomcat3.3.2 installed in my laptop and EP J2EE engine runs on the server.
Now i studied online regarding the development process with eclipse, The portal application component is published to Tomcat web server first and tested for possible errors and then published to the EP J2EE server. How this process is handled?
Can any expert explain on this and provide me link to make the required configuration of eclipse for publishing to tomcat web server?
Thank you
arunWell, the answer I found was that I have an invalid character that is not supported yet by the WAS, the character is "ñ".
Using Eclipse and deploying in Tomcat worked fine but in WAS 7.0 SP 8 it throws ParseExceptions
Regards -
Some tutorial for Tomcat Web Server
Hi,
I would like to know where I can find a downloadble tutorial about
Tomcat web server.
I am a begginer in Java technologies and I have a question.
,Tomcat web Server works also like App Server? and Can Apache web
server works together Tomcat app server? and if it possible, How?
Give me an example, please.
Thanks a lot,
ras283You can go to apache.org for information.
Tomcat can work with Apache, but it only serves JSPs and servlets (and static pages, if you don't want to bother with Apache).
The J2EE Reference Implementation (j2sdkee1.3.1) includes Tomcat, and functions as an app server as well. See the J2EE tutorial http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html and Java Pet Store demo http://interstagedemo.fs.fujitsu.com:8000/petstore/index.jsp / http://java.sun.com/features/2001/12/petstore13.html -
Communication problem between external web server and SAP WebAS
Hello Experts,
We are having a serious problem over here where we had one external server is pushing XML string using a HTTP-POST request to our SAP WebAS server (a BSP application is handling this request). We are not able to see the request coming to SAP i.e. SAP-BSP is not receiving XML.
Also we found that, if request is routed through another proxy server (apache tomcat server redireting the request) connected through VPN to our network, it works but if the the same server is inside our network it doesn't. Rather in that case it never hits the Apache-Tomcat server itself.
We tried to identify the network issue but it seems it is not the network or any firewall issue. When we had a small Echo server (itu2019s a small Java server) running on our SAP machine, we could see the request coming in. So it is definitely reaching the SAP server but the SAP Web AS is not picking up. Rather what we found that if the URL is simple e.g. http://<hostname>:<port> it works but if the URL is complex like something generated by SAP incase of BSP application it doesn't.
Any idea what is causing this issue?
I tried to look at SMICM trace files but got nothing. Any idea where would find the trace of incoming HTTP requests to SAP WebAS?
Thanks in advance.
regards
rajeevHi Rajeev,
Pelase find the below link. i am not sure this is the exactly one for you. But i hope it'll help you.
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0350917650DB11174011760851503410End?blog=/pub/wlg/10285
http://www.sap-img.com/basis/basis-faq.htm
Regards,
CSK. -
Problem starting the j2ee server
I am trying to run
j2ee -verbose
and I am getting the following error.
I am running it on Windows 2000
and my environment variables are set like this
set JAVA_HOME=C:\jdk1.3.1_04
set J2EE_HOME=C:\j2sdkee1.3.1
set CLASSPATH=%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale;.;
set PATH=%J2EE_HOME%\bin;C:\jdk1.3.1_04\bin;
Did anyone encountered the same problem. Any ideas on how to solve it.
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;cre
te=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeD
;create=true
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;cre
te=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudsca
eDB;create=true
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscap
DB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.c
re.RemoteXaDataSource@7ecd78
Starting JMS service...
Initialization complete - waiting for client requests
Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
>
Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
>
Starting web service at port: 8000
Starting secure web service at port: 7000
J2EE SDK/1.3.1
LifecycleException: null.open: java.net.BindException: Address in use: JVM_Bin
d
at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1116)
at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
at com.sun.web.server.WebService.start(WebService.java:217)
at com.sun.web.server.WebServer.start(WebServer.java:189)
at com.sun.enterprise.server.J2EEServer.startWebService(J2EEServer.java:
796)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:297)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
java.lang.RuntimeException: null.open
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: null.open
Error executing J2EE server ...Same problem here. Looked at the following file and made change: http.port=8001.
C:\j2sdkee1.3.1\config\web.properties
J2EE Server now starts. Thanks to sangineni. -
i am new to java servlets. i have installed java wev server2.0 on windows 98. i am unable to start it. please someone give me the process to start it.
your help would be very much appreciated.
thank youI have installed java web server on windows 2000 server machine. I am using the following command to start the server
<server_root>\bin>httpd
but it is display some problem and a message displaying 'shut down the server' in between.please help me. -
Web.xml problem in tomcat web hosting site
Hi i need help in this... its urgent
currently i just subscribe to a web hosting site and i need to start the private tomcat in the web server..
The followings are the instructions and i have follow them but i do not know how to create a web.xml file to store in the folder indicated for example a HelloServlet that im testing :
To setup servlet, you need to configure servlet into the file web.xml which needs to be placed in /var/www/html/WEB-INF directory.
www root directory or webapps:/var/www/htm
Classes directory located in: /var/www/html/WEB-INF/Classes/
There you will need to upload your Java class file.
Our default url-mapping for servlet is: /servlet/*
To check servlet in your browser: www.mydomain.net/servlet/HelloWorld
Jsp Files - Upload anywhere in /var/www/html
all the above steps are follow except the web.xml file which i suppose to write and store in the folder... but i actually try to write one but i still cannot load my servlet on the webpage... test on standalone tomcat works.
pls help its urgent!!!Please don't cross post
http://forum.java.sun.com/thread.jsp?thread=500509&forum=45&message=2366915
Maybe you are looking for
-
How to upload a video on Keynote since IOS 8
Since the IOS 8 update I have not been able to find my videos to add to a presentation. Before the update all videos were in the 'media' section of Keynote app but now it just shows 'Photos'. The 'Video' file is synced in the same file as all the pho
-
CRM - BW - opportunity reports
Dear Gurus, As per SAP , same opportunity monitor (0CRM_OPMO_Q0001) report is meant for sales representatives and managers. (variables 0CRMOM( Sales Org structure ), 0P_USER( employee responsible). ) How does it differentiate the reps and managers ?
-
Can't e-mail single page from pdf file w multiple pages
wow if this is going to be as hard as getting a screen name.....only adobe anyway, i have a multiple page document i am scanning. while scanning i can single out a single page and e-mail it. when i save and go tot he document later i can not send a s
-
Changing background in a JOptionPane
This is probably very simple, but I'm having some trouble. I simply want to change the background of the message in my JOptionPane dialog box (and also change the font of the message, but I think I figured that one out). Here's the code.... JLabel la
-
On bettery backup, laptop running max only 30minutes on full charge. Do i need to change my battery or there is something else. using this macbook pro around 20 month. Pls give me a suggestion.