rohitsz Posted July 1, 2006 Report Share Posted July 1, 2006 (edited) Greetings there, i was doing urpmi tomcat5 this is what i got as the final result(after downloading about 93M of software like ant/gcj/java/lib files) installing tomcat5-5.0.30-9.1mdk.i586.rpm from /var/cache/urpmi/rpms Preparing... ############################################# 22/22: tomcat5 ############################################# /usr/bin/build-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java-gcj does not exist or is not a directory /usr/bin/build-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java-gcj does not exist or is not a directory /usr/bin/build-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java-gcj does not exist or is not a directory /var/tmp/rpm-tmp.87769: line 37: /usr/bin/rebuild-gcj-db: No such file or directory error: %post(tomcat5-5.0.30-9.1mdk.i586) scriptlet failed, exit status 127 [root@localhost data]# urpmi tomcat5 The package(s) are already installed [root@localhost data]# so i am in no mans land,stuck.. what next to do? Before downloading the source and doing configure/make/make install, i hope there is something that can still be done to get mandriva specific updates. thanks, rohit. [moved from Software by spinynorman] Edited July 8, 2006 by rohitsz Quote Link to comment Share on other sites More sharing options...
rohitsz Posted July 6, 2006 Author Report Share Posted July 6, 2006 (edited) Greetings there, Some how, i have removed tomcat(and related packages) from my system. So i downloaded tomcat and ant binaries and put them to /usr/local/tomcat and /usr/local/ant based on this. So there are couple of doubts... 1)How do i confirm tomcat is running? I did a $CATALINA_HOME/bin/startup.sh,it return without any indication of the server has started... [root@localhost logs]# /usr/local/tomcat/bin/startup.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/jdk1.5.0_06 [root@localhost logs]# When i shut it down,it gives this : [root@localhost logs]# /usr/local/tomcat/bin/shutdown.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/jdk1.5.0_06 it stalls after the last line,so i have to do a CONTROL-C to exit. the log is here 2)After assuming that tomcat is running, i tried to go to http://localhost:8080 but i always get a connection timeout. I have totally removed the firewall to listen to any ports,but still no change.I also tried to configure drakfirewall to allow 8080/tcp port,but still no success. Please help. <edit> some screen outputs that might help: PING: [root@localhost rohitsz]# ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. --- 127.0.0.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 2999ms [root@localhost rohitsz]# ping yahoo.com PING yahoo.com (216.109.112.135) 56(84) bytes of data. 64 bytes from yahoo.com (216.109.112.135): icmp_seq=1 ttl=52 time=266 ms 64 bytes from yahoo.com (216.109.112.135): icmp_seq=2 ttl=51 time=265 ms 64 bytes from yahoo.com (216.109.112.135): icmp_seq=3 ttl=52 time=263 ms 64 bytes from yahoo.com (216.109.112.135): icmp_seq=4 ttl=52 time=270 ms --- yahoo.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3001ms rtt min/avg/max/mdev = 263.955/266.782/270.283/2.285 ms [root@localhost rohitsz]# [root@localhost rohitsz]# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=1.19 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.740 ms 64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.748 ms 64 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.739 ms 64 bytes from 192.168.1.1: icmp_seq=5 ttl=255 time=0.758 ms --- 192.168.1.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4000ms rtt min/avg/max/mdev = 0.739/0.835/1.191/0.178 ms [root@localhost rohitsz]# IFCONFIG: [root@localhost rohitsz]# ifconfig eth0 Link encap:Ethernet HWaddr 00:40:05:3E:5C:D4 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::240:5ff:fe3e:5cd4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:445 errors:0 dropped:0 overruns:0 frame:0 TX packets:534 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:316844 (309.4 KiB) TX bytes:124590 (121.6 KiB) Interrupt:22 Base address:0xcc00 [root@localhost rohitsz]# </edit> <edit2> My iptables status [root@localhost rohitsz]# service iptables status Table: mangle Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Table: nat Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Table: filter Chain AllowICMPs (2 references) target prot opt source destination ACCEPT icmp -- anywhere anywhere icmp fragmentation-needed ACCEPT icmp -- anywhere anywhere icmp time-exceeded Chain Drop (1 references) target prot opt source destination RejectAuth all -- anywhere anywhere dropBcast all -- anywhere anywhere AllowICMPs icmp -- anywhere anywhere dropInvalid all -- anywhere anywhere DropSMB all -- anywhere anywhere DropUPnP all -- anywhere anywhere dropNotSyn tcp -- anywhere anywhere DropDNSrep all -- anywhere anywhere Chain DropDNSrep (2 references) target prot opt source destination DROP udp -- anywhere anywhere udp spt:domain Chain DropSMB (1 references) target prot opt source destination DROP udp -- anywhere anywhere udp dpt:135 DROP udp -- anywhere anywhere udp dpts:netbios-ns:netbios-ssn DROP udp -- anywhere anywhere udp dpt:microsoft-ds DROP tcp -- anywhere anywhere tcp dpt:135 DROP tcp -- anywhere anywhere tcp dpt:netbios-ssn DROP tcp -- anywhere anywhere tcp dpt:microsoft-ds Chain DropUPnP (2 references) target prot opt source destination DROP udp -- anywhere anywhere udp dpt:1900 Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere Ifw all -- anywhere anywhere eth0_in all -- anywhere anywhere Reject all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Shorewall:INPUT:REJECT:' reject all -- anywhere anywhere Chain FORWARD (policy DROP) target prot opt source destination eth0_fwd all -- anywhere anywhere Reject all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Shorewall:FORWARD:REJECT:' reject all -- anywhere anywhere Chain Ifw (1 references) target prot opt source destination RETURN all -- anywhere anywhere set ifw_wl src DROP all -- anywhere anywhere set ifw_bl src IFWLOG all -- anywhere anywhere state INVALID,NEW psd weight-threshold: 10 delay-threshold: 10000 lo-ports-weight: 1 hi-ports-weight: 2 IFWLOG prefix 'SCAN' Chain OUTPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere fw2net all -- anywhere anywhere Reject all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Shorewall:OUTPUT:REJECT:' reject all -- anywhere anywhere Chain Reject (4 references) target prot opt source destination RejectAuth all -- anywhere anywhere dropBcast all -- anywhere anywhere AllowICMPs icmp -- anywhere anywhere dropInvalid all -- anywhere anywhere RejectSMB all -- anywhere anywhere DropUPnP all -- anywhere anywhere dropNotSyn tcp -- anywhere anywhere DropDNSrep all -- anywhere anywhere Chain RejectAuth (2 references) target prot opt source destination reject tcp -- anywhere anywhere tcp dpt:auth Chain RejectSMB (1 references) target prot opt source destination reject udp -- anywhere anywhere udp dpt:135 reject udp -- anywhere anywhere udp dpts:netbios-ns:netbios-ssn reject udp -- anywhere anywhere udp dpt:microsoft-ds reject tcp -- anywhere anywhere tcp dpt:135 reject tcp -- anywhere anywhere tcp dpt:netbios-ssn reject tcp -- anywhere anywhere tcp dpt:microsoft-ds Chain all2all (0 references) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED Reject all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Shorewall:all2all:REJECT:' reject all -- anywhere anywhere Chain dropBcast (2 references) target prot opt source destination DROP all -- anywhere anywhere PKTTYPE = broadcast DROP all -- anywhere anywhere PKTTYPE = multicast Chain dropInvalid (2 references) target prot opt source destination DROP all -- anywhere anywhere state INVALID Chain dropNotSyn (2 references) target prot opt source destination DROP tcp -- anywhere anywhere tcp flags:!FIN,SYN,RST,ACK/SYN Chain dynamic (2 references) target prot opt source destination Chain eth0_fwd (1 references) target prot opt source destination dynamic all -- anywhere anywhere state INVALID,NEW Chain eth0_in (1 references) target prot opt source destination dynamic all -- anywhere anywhere state INVALID,NEW net2fw all -- anywhere anywhere Chain fw2net (1 references) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere Chain net2all (1 references) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED Drop all -- anywhere anywhere LOG all -- anywhere anywhere LOG level info prefix `Shorewall:net2all:DROP:' DROP all -- anywhere anywhere Chain net2fw (1 references) target prot opt source destination ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT udp -- anywhere anywhere udp dpt:postgres ACCEPT tcp -- anywhere anywhere multiport dports postgres,webcache net2all all -- anywhere anywhere Chain reject (11 references) target prot opt source destination DROP all -- anywhere anywhere PKTTYPE = broadcast DROP all -- anywhere anywhere PKTTYPE = multicast DROP all -- 255.255.255.255 anywhere DROP all -- BASE-ADDRESS.MCAST.NET/4 anywhere REJECT tcp -- anywhere anywhere reject-with tcp-reset REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable REJECT icmp -- anywhere anywhere reject-with icmp-host-unreachable REJECT all -- anywhere anywhere reject-with icmp-host-prohibited Chain shorewall (0 references) target prot opt source destination Chain smurfs (0 references) target prot opt source destination LOG all -- 255.255.255.255 anywhere LOG level info prefix `Shorewall:smurfs:DROP:' DROP all -- 255.255.255.255 anywhere LOG all -- BASE/4 anywhere LOG level info prefix `Shorewall:smurfs:DROP:' DROP all -- BASE/4 anywhere [root@localhost rohitsz]# </edit2> thanks, rohit. Edited July 6, 2006 by rohitsz Quote Link to comment Share on other sites More sharing options...
rohitsz Posted July 6, 2006 Author Report Share Posted July 6, 2006 (edited) Greetings All, I am having trouble setting up tomcat.But that i think is due to firewall mis configuration. please see (second half) of this post and help me resolve this problem. recently i have tried to configure using drakfirewall but i could not do so successfully. thanks, rohit. <edit> see this (post#6)for solution. </edit> Edited July 8, 2006 by rohitsz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.