Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to make jmod_jk.so /jmod_jk2.so support on apache that installed with package called Xampp 1.6 for linux

Posted on 2007-04-04
12
668 Views
Last Modified: 2013-12-16
Hi All,
I need to setup  mod_jk module on Xampp 1.6  (/opt/lampp/modules/mod_jk2.so  or  /opt/lampp/modules/mod_jk.so)  with Xampp package to work in jsp under linux I am using fedora core 4.
please help me .
I get this error when I restart Xampp and when I connect to http://localhost:8080 I get an error say
"the  connection was refused to connect to http://localhost:8080"
and after making the configuration that exist with the addon of  Xampp package for tomcat  I get this error :

httpd: Syntax error on line 516 of /opt/lampp/etc/httpd.conf: Syntax error on line 1 of /opt/lampp/etc/tomcat.conf: Cannot load /opt/lampp/modules/mod_jk2.so into server: /opt/lampp/modules/mod_jk2.so: undefined symbol: apr_pool_get_parent
0
Comment
Question by:shang3000
  • 6
  • 6
12 Comments
 
LVL 8

Accepted Solution

by:
frashii earned 500 total points
ID: 18855319
What version of Linux ? Do you have the libapr installed ?

Try one of the following (These might work, but it depends on what linux distro)

rpm -qa --queryformat '%{name-%{version}-%{release}' | grep libapr
dpkg --list | grep libapr

If it is not installed, lets install it, if it is, we can troubleshoot from there.

0
 

Author Comment

by:shang3000
ID: 18956668
Hi frashii,
>>>What version of Linux ?
fedora core 4
>>> Do you have the libapr installed ?
I don't know would you please tell me how to check out that issue

>>>Try one of the following (These might work, but it depends on what linux distro)

>>> rpm -qa --queryformat '%{name-%{version}-%{release}' | grep libapr
>>> dpkg --list | grep libapr
please give me the correct syntax since I'm new to linux

if you could help me to solve this problem that would be great
Best Regards
HG
0
 
LVL 8

Assisted Solution

by:frashii
frashii earned 500 total points
ID: 18996243
Fedora Core 4 is a rpm based system, therefore the following should work :)

rpm -qa --queryformat '%{name}-%{version}\r\n' | grep libapr

if that doesn't produce anything that is okay too, that can tell us what we need to know
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:shang3000
ID: 19014645
please give me what to write instead of %{name}-%{version} i wrot the following and it displayed nothing
[root@shang ~]# rpm -qa --queryformat '%{name}-%{version}\r\n' | grep libapr
[root@shang ~]#
0
 
LVL 8

Assisted Solution

by:frashii
frashii earned 500 total points
ID: 19029106
That means you don't have libapr installed :)

Try

yum install libapr

then, re-install mod_jk
0
 

Author Comment

by:shang3000
ID: 19064765
Hi frashii,
here is the try and the results:

[hatem@shang ~]$ su
Password:
[root@shang hatem]# yum install libapr
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: updates-released
[root@shang hatem]#

please guide me what to  do with an example of  that describe the syntax

Best Regards
HG
0
 
LVL 8

Assisted Solution

by:frashii
frashii earned 500 total points
ID: 19120077
HG,

Look at the file /etc/yum.repos.d/fedora-updates.repo

Is the baseurl for updates-released commented out ? If so, remove the # at the beginning of the line and try again.
0
 

Author Comment

by:shang3000
ID: 19122375
Hi frashii,
this is the basurl line that I uncommented
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
when trying that command
yum install libapr

I got this error
Setting up Install Process
Setting up repositories
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates-released
failure: repodata/repomd.xml from updates-released: [Errno 256] No more mirrors to try.

please help
Best Regards
HG
0
 
LVL 8

Assisted Solution

by:frashii
frashii earned 500 total points
ID: 19122678
Do you have your DNS server defined in /etc/resolv.conf ?

There should be one or more lines like :

nameserver 192.168.1.1
nameserver 192.168.1.2

Add or change them to point to a working DNS server. and re-try the command.
0
 

Author Comment

by:shang3000
ID: 19122806
hi frashii,
here is the /etc/resolve.conf after modifications

; generated by NetworkManager, do not edit!
; Use a local caching nameserver controlled by NetworkManager
nameserver 127.0.0.1
nameserver 192.168.0.208

and here is the command and error
[root@shang hatem]# yum install libapr
Setting up Install Process
Setting up repositories
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/4/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates-released
failure: repodata/repomd.xml from updates-released: [Errno 256] No more mirrors to try.
[root@shang hatem]#

I hope you can you help me in that situation
Best Regards
HG
0
 
LVL 8

Assisted Solution

by:frashii
frashii earned 500 total points
ID: 19139117
It looks like your DNS is not working correctly.

Try the following command:

dig download.fedora.redhat.com

If this results in an error, use the gnome control panel for NetworkManager and adjust the DNS server to something that can resolve it.

if you can't make that work, as a VERY LAST RESORT add the following to your /etc/hosts file (we _really_ need to get DNS working rather than hack around it) :

209.132.176.20   download.fedora.redhat.com
0
 

Author Comment

by:shang3000
ID: 19171018
Hi frashii,
here is the result
[root@shang hatem]# dig download.fedora.redhat.com
; <<>> DiG 9.3.1 <<>> download.fedora.redhat.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 13725
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;download.fedora.redhat.com.    IN      A

;; Query time: 1822 msec
;; SERVER: 192.168.0.208#53(192.168.0.208)
;; WHEN: Tue May 29 12:38:45 2007
;; MSG SIZE  rcvd: 44

i opened /etc manually and added the line
209.132.176.20   download.fedora.redhat.com as you said

what is the  next  step to do
Best Regards
HG
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question