Ubuntu Servers :: Tomcat6 Ajp Connector Won't Start?
Mar 16, 2010
I'm trying to do a standard mod_jk setup--get apache to forward requests to Tomcat. I must admit that I'm not so familiar with the details of mod_jk, but I got this working before when I had used tomcat 6 directly from apache's website, but now that I've switched to the version in Ubuntu's repositories I can't get it working.
The log for mod_jk says:
Code:
[Mon Mar 15 23:59:41 2010] [5575:3004840816] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13_worker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Mon Mar 15 23:59:41 2010] [5575:3004840816] [error]
[Code].....
View 1 Replies
ADVERTISEMENT
Jan 6, 2010
I have newly installed Ubuntu server 9.10 in my server machine.And it has tomcat6 in itself.My friend have built a Java software in Fedora ,and he wants to move it to the new server.But problem is the directory structure is different between two systems.He has to either change his directory setting in his software or change the default tomcat6 ROOT directory. But I have not find any configuration file can do this job(change the tomcat default ROOT directory ).
View 3 Replies
View Related
Aug 4, 2010
I've installed Sun Java, tomcat6 and tomcat6-admin on 10.04 server 64-bit. By default, tomcat is configured to run as the tomcat6 user. Everything runs just fine on tcp/8080 as initially configured. Modifying the connector port in /etc/tomcat6/server.xml to anything below 1024 (e.g. port 80) results in:
SEVERE: Error starting endpoint
java.net.BindException: Permission denied <null>:80
This all begs the question... do you *really* have to run tomcat as root to bind to a well-known port? I.e. is there really no way for tomcat to start as root, bind to a privileged port and then drop privs?
View 6 Replies
View Related
Jun 20, 2011
I installed Tomcat (apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples) and it runs without problems.
I installed MySQL (apt-get install mysql-server) and it seems to run without problems too.
I changed the default JRE (update-java-alternatives -s java-6-sun).
The weird thing is - if I put the connector-jar into my web application (WEB-INF/lib), the connection works. If I put the connector-jar into usr/share/java, it does not work. If I write the jar location into the CLASSPATH and try "java com.mysql.jdbc.Driver", I get a NoSuchMethodError:Main, which means, that the jar is found?!
The datasource in the tomcat context.xml is:
<Resource name="jdbc/myresource" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="username" password="password" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/myschema" />
How can I make the database connection work without putting the jar into the WEB-INF/lib folder of the web application?
View 2 Replies
View Related
May 4, 2011
I have a mysql database and i use it with apache for my webpages. And I guess it dosen't start when the computer starts so I have to manually start it with "sudo /etc/init.d/mysql start" This returns fail so i went to '/var/run/mysqld/' and the folder was empty. I don't know if this is the problem or not. How can I fix this?
View 9 Replies
View Related
Apr 2, 2011
I installed ubuntu 10.10 on a desktop to use for a media server, and plus some. Everything worked! I proceeded to install the nVidia driver for the 9800gt After it was installed I rebooted per the notification after installation.So now my computer loads directly into terminal and I can't start the GUI. I tried startx but it gave that whole warning about the "nopowerconnectorcheck".
So I've done my research and I bought a 650w psu. Still no dice. I know that there is a way to turn off the power connector check but I have no Idea how.
View 2 Replies
View Related
Jan 11, 2011
I am trying to setup Ubuntu with Apache2+Tomcat6. I can get the site up and running, however when I have a jsp file it does not execute, instead it just prints the full jsp to browser.
I am checking if there is a configuration issue that may be missed.
sudo /etc/init.d/tomcat6 status # shows fine
/etc/apache2/sites-available has a file for my site containing valid DocumentRoot
/home/user/sitename/webapps/examples
/home/user/sitename/webapps/examples/jsp
/home/user/sitename/webapps/examples/jsp/sample.jsp contains below text
<%= "hello" %>
When above page is visited in browser, it shows full html tags instead of displaying the output. It displays static pages fine.
View 1 Replies
View Related
Jan 29, 2011
I installed Ubuntu 10.10 (although in the System->About Ubuntu is mentioned that I have Ubuntu 11.04 - the Natty Narwhal, I don't know why) and I can not make the microphone from my headset to work. I used to have the Ubuntu 8.04 (I think so) and the mic used to work normally.
Everyone proposes to change the Connector in the Sound Settings but I do not have such option (you can see the attached image). What should I do?
View 3 Replies
View Related
Jul 20, 2011
I'm using Ubuntu 11.04. I'm trying to get a Cisco Valet Connector AM10 to work. It's one of those ZeroCD USB devices that is both storage and modem. Using this link:
[URL]
I filled out usb_modeswitch like this:
Code:
# Configuration for the usb_modeswitch package, a mode switching tool for
# USB devices providing multiple states or modes
#
[code]....
View 9 Replies
View Related
May 6, 2010
I am new to ubuntu server. Currently I am running Ubuntu 9.10 server edition. I installed tomcat6 downloaded from apache site and started. But can't run the war file and cant even shut it down. I am running tomcat with default port 8080 and 8005 for shutdown port. I have reinstalled tomcat over and over again. Ubuntu desktop version is running on my pc, everything fine there.
View 2 Replies
View Related
May 3, 2011
I have ubuntu 10.04LTS server. Open jdk and tomcat6 installed from synaptic package manager. I run different war files on tomcat6. I downloaded apache-continuum-1.3.7.war. I followed the instructions on apache continuum web site. [URL]
[Code]...
View 1 Replies
View Related
May 3, 2010
I have tried to ask this question before but was not posting in the right place due to my newness. I have looked hard for a solution and learned a lot over the last week. In fact enough to understand how much I don't know. I do not have a connector available to switch between line and mic inputs and would like help to set them up please.
I installed 10.04 RC to try Ubuntu and had a separate control for line and mic but now only as the screenshot. The first picture is of how I remembered my RC install and is not my original screenshot. The second is how my system is now.
My computer is a Dell Inspiron E1505
My sound card a Sigmatel stac 9200
My operating system Ubuntu Lucid 10.04 LTS
Here are some data from my system:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
[code]....
I have added this line to /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=dell-m25
Off topic but if someone could mention it. What is the difference between "capture" and "line & mic" controls. How can I insert code into those scrollable boxes titled Code
View 2 Replies
View Related
Sep 15, 2010
hph@ubuntu:~$ sudo service tomcat6 stop
* Stopping Tomcat servlet engine tomcat6
hph@ubuntu:~$ sudo service tomcat6 start
* Starting Tomcat servlet engine tomcat6
Using CATALINA_BASE: /var/lib/tomcat6
Using CATALINA_HOME: /usr/share/tomcat6
Using CATALINA_TMPDIR: /tmp/tomcat6-tmp
[Code]...
View 1 Replies
View Related
Jan 17, 2011
I'm using tomcat6 on Ubuntu 10.10. How can each application run as a different UNIX user?
View 3 Replies
View Related
Jan 25, 2011
I've just installed Ubuntu 10.04 LTS Server with LAMP. Tomcat6 appears to function properly. BUT, I cannot gain access to the 'manager webapp'. I've updated tomcat-users.xml:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
[code]....
but no matter what I use as username/password, I am unable to get in.
View 3 Replies
View Related
Aug 11, 2010
making/buying a 3 pin j2 serial connector for my computer to connect to a programable chip
View 1 Replies
View Related
Jun 12, 2011
I'm trying to use MySQL's JDBC connector for java but even though I set the CLASSPATH variable, java cannot find the com.mysql.jdbc.Driver class.
Code:
[jordan@Jordan-Laptop java-stuff]$ ls /usr/share/java
cal10n geronimo-jta.jar java_cup-runtime.jar
[code]...
View 14 Replies
View Related
Dec 31, 2009
I have installed Tomcat6 succesfully from Yast. Now im wondering where is catalina.sh file located ?
Tomcat is running fine, but i'm needing that startup script for deploying web service directly from Netbeans IDE.
The default init script is found from /etc/init.d/tomcat6, so is catalina.sh included to this installation ?
I'm using Opensuse 11.2
View 4 Replies
View Related
Nov 12, 2010
why i can't access the Tomcat6 default website after i do the install ?
Code: ERROR The requested URL could not be retrieved While trying to retrieve the URL: http://10.2.3.189/
The following error was encountered: Connection to 10.2.3.189 Failed
The system returned: (111) Connection refused
Code:
Setting up authbind (1.2.0build3) ...
root@SSV:~# /etc/init.d/tomcat6 restart
* Stopping Tomcat servlet engine tomcat6 [ OK ]
* Starting Tomcat servlet engine tomcat6 Using CATALINA_BASE: /var/lib/tomcat6
[Code].....
View 6 Replies
View Related
Sep 11, 2010
I'm running CentOS 5.5 on a Shuttle SG41J1 PLUS barebones system. All is working well, except the sound. I get sound only on the front connector (meant for headsets). With XP on that box I get sound on both the front and the rear connectors. Under XP I see the dialog as attached to this post. It even knows where I have something plugged in. Under CentOS I have two devices listed:0: HDA Intel (Alsa Mixer) 1: IDT ID 76c1 (OSS Mixer) The second one is marked active (*).Any idea on how to make the sound work for the rear connector too ?
View 1 Replies
View Related
Dec 1, 2009
I've been trying to figure out how to access tomcat6 pages outside of the computer actually running the tomcat6 server. I can access the tomcat6 web pages fine on the computer running the server, but I can't seem get to it on another. I'm probably not setting it up correctly or something, but I've attempted to access the tomcat6 server by following this form:
[URL
Did I not set up the tomcat6 server correctly?
View 1 Replies
View Related
Apr 15, 2011
alright I have seen some threads on this but they are all old and seem to predate the "wisdom" of the "all" architecture on all the bloody ubuntu packages.
I went to the tomcat website which doesn't even have deb packages. Then I thought to search the ubuntu package repository, nothing seems to have i386 packages for me to install and then get the libs with getlibs. I HAVE to have a 32bit version of tomcat to run orkweb so I can record my phone calls on my voip line.
what would be really great is if anyone has or knows how to build a 64-bit war file for orktrack and orkweb since I have the source code
View 1 Replies
View Related
Apr 6, 2016
I got assigned to a project, where the installation is done over ansible. As I'm new in linux, python, django, ansible I wanted to try this out on a empty linux debian.
Code: Select alluname -a
Linux DebianABC 3.16.0-4 amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86 64 Gnu/Linux
When I now run my ansible playbook it tries to install mysql and suddenly I get an error:
Code: Select all:stderr: DEPRECATION: --allow-external has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
DEPRECATION: --allow-unverified has been deprecated and will be removed in the future. Due to changes in the repository protocol, it no longer has any effect.
Could not find a version that satisfies the requirement mysql-connector-python==1.0.12 (from -r /home/abc/abcTest/requirements.pip (line 36)) (from versions: )
No matching distribution found for mysql-connector-python==1.0.12 (from -r /home/abc/abcTest/requirements.pip (line 36))
FATAL: all hosts have already failed -- aborting
So I checked the target machine and tried to run
pip install -vvv -r requirement.txt mysql-connector-python
As version 1.0.12 is an old version, I was searching and tried the following: [URL] ....
But also if I run the installation by direct download I have the same error message:
Code: Select allabc@DebianABC:/home/abc/abcTest$ pip install -r requirements.pip -vvv mysql-connector-python
Collecting http://cdn.mysql.com//Downloads/Connector-Python/mysql-connector-python-1.0.12.tar.gz (from -r requirements.pip (line 36))
Starting new HTTP connection (1): cdn.mysql.com
"GET //Downloads/Connector-Python/mysql-connector-python-1.0.12.tar.gz HTTP/1.1" 200 230923
[Code] ....
I was reading about the version requirements from PEP: [URL] .... but as the version looks ok, this should not be the problem.
View 0 Replies
View Related
Feb 2, 2009
How can I find out programmatically if a cable has been removed from an ethernet connector where the interface is "up" ??? Without using ping of course.
Sidebar question, if I have two interfaces on the subnet how can I force a ping out a specific interface? Say, I have 192.168.5.14 and 192.168.5.13 and I want to throw a ping out *.13 and not *.14 ..
View 2 Replies
View Related
Feb 16, 2011
When i start tomcat6 (on a SLES 11 box) two times without a stop in between, rctomcat6 status results into dead state.
I checked the rctomcat6 start script, in this case when the tomcat6 is already running and a rctomcat6 start is done, it display a msg that "process already running", but it continues in the start function further down & executes the TOMCAT_SCRIPT(dtomcat6) script with the start argument. And after that pid in the tomcat6.pid file gets changed but the process keeps running with the old pid, and hence when we do a rctomcat6 status, it results into dead state(bcoz it doesn't find any process running with that pid).
I think it shouldn't execute the TOMCAT_SCRIPT in this case, so in case when checkpid is success(in start function), i put an exit after the echo msg " process already running", this solves the problem, but is this the correct solution ?
function start() {
echo -n "Starting Tomcat ($CATALINA_BASE)"
if [ -f "/var/lock/subsys/${NAME}" ] ; then
if [ -f "/var/run/${NAME}.pid" ]; then
[Code]...,
View 1 Replies
View Related
May 17, 2010
I am trying to read a 5 1/4 in. floppy disk using an Intel D865 PERL motherboard, at 3 GHz. Bios was set to read this floppy. The system Lenny 2.6.31 i386 can't detect the 5.25 drive. Drive select seems not to be responding on the 5.25 drive. When connecting a 3 1/2 in. drive to the same motherboard connector (after changing the BIOS setting appropriately), r/w is ok under both linux and XP. I have tried three floppy 5.25 drives and different cables. All known to be ok on another box. I have tried XP and another linux, Etch. I have installed the latest available Bios upgrade from Intel. Upgraded from 0061 to 0089 bios versions. Is this a possible connector difference between 3.5 and 5.25 drives on the drive select line? The cable drive end connectors are different between the two drives.
View 5 Replies
View Related
Jan 18, 2010
I want to ask how i set Linux class path for mail.jar and mysql-connector.jar. I have set the class path for java with the command.
Code:
when i do java -version it's work fine.
Also if i want to know that what shell i am using how can i find it.Also what is the command for showing class path variables or how can i see my JAVA_HOME class path.Means after setting the class path for above two files how can i see that these files have added.
When i write echo $CLASSPATH or echo $JAVA_HOME it shows nothing no error but again shows the prompt.
One thing more i want to run a java program on Linux it is in a package (named asteriskproject). It consist of 10 java files. I have run this program on windows using netbeans IDE.For this program i need to set my Linux class path for the above mentioned files, and this is my first time that i am running any program on Linux. So i want to ask how can i run my program. Simply put this asteriskproject directory in any folder and run the main file using javac. Is it right way to run the program that consist of package ?
View 3 Replies
View Related
May 26, 2011
i installed tomecat6 in Linux server i deployed xyz.war file and jkmonunt in Apache this is for out side usage recently i deployed one more war abc.war i din't mount in apache this is internel application usage purpuse in my application i tried to call this abc.war (http://X.X.X.X:8080/abc/abc.war) but i am unable to access this folder i checked the iptable rules i gave access permission in 8080 port.
View 2 Replies
View Related
Sep 14, 2010
I use ubuntu lucid lynx, LAMP (mysql 5.1 and last php) and tried to install the package from mysql web page (mysql-connector-odbc-5.1.7-linux-glibc2.3-x86-32bit.tar.gz) through alien. Terminal output is as follows:p { margin-bottom: 0.21cm; }
sudo alien -d -c -k -i mysql-connector-odbc-5.1.7-linux-glibc2.3-x86-32bit.tar
dpkg --no-force-overwrite -i mysql-connector-odbc_5.1.7-1_all.deb
(Lendo banco de dados ... 147517 arquivos e diretios atualmente instalados).
[code]....
View 1 Replies
View Related
Jan 7, 2011
I succesfully integrated apache2 and tomcat6 using Ubuntu 10.10 server. The deal is that I can't use different Virtualhosts mapped to different tomcat projects. All tomcat "projects" are in /var/lib/tomcat6/webapps/. I couldn't configure apache virtualhost to use a project different than ROOT (/var/lib/tomcat6/webapps/ROOT/). All HTTP requests are redirected to /var/lib/tomcat6/webapps/ROOT/.
[Code]...
View 5 Replies
View Related