留言板

UnknownHostException

Mr SoA,修改在15 年前。

UnknownHostException

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Hi,

I have freebsd 6.2 and java 1.6 installed in the system.
# !java
java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)

When I typed the command to start up liferay, I got the following message:
# ./startup.sh
Using CATALINA_BASE: /usr/liferay/liferay-portal-5.2.2/tomcat-6.0.18
Using CATALINA_HOME: /usr/liferay/liferay-portal-5.2.2/tomcat-6.0.18
Using CATALINA_TMPDIR: /usr/liferay/liferay-portal-5.2.2/tomcat-6.0.18/temp
Using JRE_HOME:

I don't know whether this JRE_HOME definition setup to none is correct.
Should this line (Using JRE_HOME) not shown up at all?

I have DNS Bind running in the same system (where Liferay/tomcat are installed) as well.

Please see the following error message shown in cataline.out file:

Mar 22, 2009 2:19:11 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
/usr/local/diablo-jdk1.5.0/jre/lib/i386/client:/usr/local/diablo-jdk1.5.0/jre/lib/i386:/usr/local/diablo-jdk1.5.0/jre/../lib/i386:/usr/lib:/usr/loc
al/lib
Mar 22, 2009 2:19:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 22, 2009 2:19:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2319 ms
Mar 22, 2009 2:19:11 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 22, 2009 2:19:11 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Loading jar:file:/usr/liferay/liferay-portal-5.2.2/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Loading jar:file:/usr/liferay/liferay-portal-5.2.2/tomcat-6.0.18/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/usr/liferay/liferay-portal-5.2.2/tomcat-6.0.18/webapps/ROOT/WEB-INF/classes/portal-ext.properties
02:19:45,509 INFO [DialectDetector:64] Determining dialect for MySQL 5
02:19:45,749 INFO [DialectDetector:97] Using dialect org.hibernate.dialect.MySQLDialect
02:19:47,001 ERROR [Cache:128] Unable to set localhost. This prevents creation of a GUID. Cause was: aussiefinewines.com.au: aussiefinewines.com.au
java.net.UnknownHostException: aussiefinewines.com.au: aussiefinewines.com.au
at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
at net.sf.ehcache.Cache.<clinit>(Cache.java:126)
at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:418)
at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:334)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:306)
at net.sf.ehcache.CacheManager.init(CacheManager.java:226)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:187)
at net.sf.ehcache.hibernate.EhCacheProvider.start(EhCacheProvider.java:130)
at com.liferay.portal.dao.orm.hibernate.CacheProviderWrapper.start(CacheProviderWrapper.java:72)

Thanks
thumbnail
steve rieger,修改在15 年前。

Re: [Liferay Forums][1. Installation / Deployment / Setup]UnknownHostExcept

Expert 帖子: 436 加入日期: 06-9-11 最近的帖子
Check /etc/hosts and resolv.conf



--
Sent via Blackberry
I can be reached at 310-947-8565
Mr SoA,修改在15 年前。

RE: Re: [Liferay Forums][1. Installation / Deployment / Setup]UnknownHostEx

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
My /etc/hosts file is shown as below:

# cat /etc/hosts
#::1 localhost.negraph.com localhost
127.0.0.1 localhost localhost.my.domain

# cat /etc/resolv.conf
domain ip6.com.au
nameserver 10.1.2.2
nameserver 127.0.0.1

Can you please tell me what should be changed in this 2 files?

Thanks
thumbnail
steve rieger,修改在15 年前。

Re: Re: [Liferay Forums][1. Installation / Deployment /Setup]UnknownHostEx

Expert 帖子: 436 加入日期: 06-9-11 最近的帖子
Add your real ip to the hosts file

--
Sent via Blackberry
I can be reached at 310-947-8565
Mr SoA,修改在15 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment /Setup]UnknownHos

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Like this?
125.255.112.202 localhost localhost

here is the output of ifconfig command:

# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
inet 125.255.112.202 netmask 0xfffffff8 broadcast 125.255.112.207
inet 125.255.112.206 netmask 0xfffffff8 broadcast 125.255.112.207
ether 00:06:5b:8b:d9:99
media: Ethernet autoselect (10baseT/UTP <half-duplex>)
status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
inet 10.1.2.2 netmask 0xffffff00 broadcast 10.1.2.255
ether 00:06:5b:8b:d9:9a
media: Ethernet autoselect
status: no carrier


Thanks
thumbnail
steve rieger,修改在15 年前。

Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: Re: Re:[Life

Expert 帖子: 436 加入日期: 06-9-11 最近的帖子
Is your hostname localhost ?

--
Sent via Blackberry
I can be reached at 310-947-8565
Mr SoA,修改在15 年前。

RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: Re: Re:[

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Here is the output of my hostname command:

# hostname
mail01.ip6.com.au

# ping mail01.ip6.com.au
PING mail01.ip6.com.au (125.255.112.206): 56 data bytes
64 bytes from 125.255.112.206: icmp_seq=0 ttl=64 time=0.054 ms

--- mail01.ip6.com.au ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.054/0.054/0.054/0.000 ms
Mr SoA,修改在15 年前。

RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: Re: Re:[

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Mr SoA:
Here is the output of my hostname command:

# hostname
mail01.ip6.com.au

# ping mail01.ip6.com.au
PING mail01.ip6.com.au (125.255.112.206): 56 data bytes
64 bytes from 125.255.112.206: icmp_seq=0 ttl=64 time=0.054 ms

--- mail01.ip6.com.au ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.054/0.054/0.054/0.000 ms


And all my hosts definition are created in /etc/namedb/named.conf file.
I didn't do any thing in the /etc/hosts file.
Mr SoA,修改在15 年前。

RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: Re: Re:[

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
that s why I am asking what is special setup in named or Bind in linux or FreeBSD, to make Liferay/tomcat start up successfully.
In a real production server doing business, everyone is using Bind/Named. No one use /etc/hosts to define host name in a production machine.
thumbnail
steve rieger,修改在15 年前。

Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: Re:[

Expert 帖子: 436 加入日期: 06-9-11 最近的帖子
So tomcat didn't start up, from what I saw it did but you have that error, that error will not stop tomcat from starting

--
Sent via Blackberry
I can be reached at 310-947-8565
Mr SoA,修改在15 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
steve rieger:
So tomcat didn't start up, from what I saw it did but you have that error, that error will not stop tomcat from starting

--
Sent via Blackberry
I can be reached at 310-947-8565


But it said:
04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF/hibernate-spring.xml]: I
nvocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.liferay.portal.dao.orm.hibernat
e.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is javax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

...

Do you know how to change the port number?
I opened server.xml file, and found all the port numbers 8005, 8080, 8009 etc..

I point my firefox to www.ip6.com.au:8080, but got the following error:

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0.18
thumbnail
steve rieger,修改在15 年前。

Re: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup]RE:Re: R

Expert 帖子: 436 加入日期: 06-9-11 最近的帖子
If you got that error message then tomcat started
However it seems that the liferay portal did not start

Did you download the bundled portal or just the war file ?

--
Sent via Blackberry
I can be reached at 310-947-8565
Mr SoA,修改在15 年前。

RE: Re: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup]RE:Re

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
I downloaded liferay-portal-tomcat-6.0-5.2.2.zip

What have it missing?

Thanks
Mr SoA,修改在15 年前。

RE: Re: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup]RE:Re

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
does the followning error stopping portal start up?

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF
/hibernate-spring.xml]: Invocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to r
egister MBean [com.liferay.portal.dao.orm.hibernate.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is jav
ax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
Mr SoA,修改在15 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Anyone out there knows how to solve this problem?

Mr SoA:
steve rieger:
So tomcat didn't start up, from what I saw it did but you have that error, that error will not stop tomcat from starting

--
Sent via Blackberry
I can be reached at 310-947-8565


But it said:
04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF/hibernate-spring.xml]: I
nvocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.liferay.portal.dao.orm.hibernat
e.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is javax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

...

Do you know how to change the port number?
I opened server.xml file, and found all the port numbers 8005, 8080, 8009 etc..

I point my firefox to www.ip6.com.au:8080, but got the following error:

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/6.0.18
Mr SoA,修改在15 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
I don't know how to resolve this problem:

04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF/hibernate-spring.xml]: I
nvocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.liferay.portal.dao.orm.hibernat
e.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is javax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)


anybody got any idea?

Thanks
Mr SoA,修改在15 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Hi, can anybody shred some light on me please???

Thanks

Mr SoA:
I don't know how to resolve this problem:

04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF/hibernate-spring.xml]: I
nvocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.liferay.portal.dao.orm.hibernat
e.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is javax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)


anybody got any idea?

Thanks
Mr SoA,修改在15 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Master 帖子: 660 加入日期: 09-3-3 最近的帖子
Anyone got any idea about this error?

Mr SoA:
Hi, can anybody shred some light on me please???

Thanks

Mr SoA:
I don't know how to resolve this problem:

04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF/hibernate-spring.xml]: I
nvocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.liferay.portal.dao.orm.hibernat
e.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is javax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)

Thanks
Koen Cleynhens,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Junior Member 帖子: 83 加入日期: 10-2-23 最近的帖子
Did you find the solution?

I have exact the same problem...
Tony Luo,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

New Member 帖子: 20 加入日期: 10-12-11 最近的帖子
Me,too.

I tried to deploy the bundle file on my VPS but failed with the same exception.

Help~!
thumbnail
Andrés Cerezo,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Junior Member 帖子: 92 加入日期: 10-11-11 最近的帖子
I've the same error. Anyone has found the solution?


Cheers.
thumbnail
Hitoshi Ozawa,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
java.net.UnknownHostException: aussiefinewines.com.au: aussiefinewines.com.


Error seems to be the above. He should have tried the following command to see if his dns is setup properly and if tomcat is using it.

ping aussiefinewines.com.au
thumbnail
Andrés Cerezo,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Junior Member 帖子: 92 加入日期: 10-11-11 最近的帖子
Hello, I don't think so, here is my problem complete.

Cheers.
thumbnail
Hitoshi Ozawa,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Are you sure you got the right link?

The link is to "number of stars in rating" and just type: "improvement".
thumbnail
Andrés Cerezo,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Junior Member 帖子: 92 加入日期: 10-11-11 最近的帖子
Yes because after doing the improvement ticket I got the error "Error creating bean with name 'hibernateMBeanExporter' " at last I solved it, there was a problem with the permissions of portal.properties. I got this error because I modified the file from Eclipse, I don't know why this happens but modifying this file with gedit the error doesn't happen.
thumbnail
Hitoshi Ozawa,修改在13 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Liferay Legend 帖子: 7942 加入日期: 10-3-24 最近的帖子
Sorry, I only looked at the first post. The error messsage seems to have changed in his later post. I'm not able to follow why the error message changed between the first post and the later post.
Seyed Mohammad Hosein Jamali,修改在12 年前。

RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Re: R

Junior Member 帖子: 77 加入日期: 09-12-13 最近的帖子
Sam E:
Anyone got any idea about this error?

Mr SoA:
Hi, can anybody shred some light on me please???

Thanks

Mr SoA:
I don't know how to resolve this problem:

04:04:49,161 ERROR [ContextLoader:215] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateMBeanExporter' defined in class path resource [META-INF/hibernate-spring.xml]: I
nvocation of init method failed; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.liferay.portal.dao.orm.hibernat
e.jmx.HibernateStatisticsService@62f7da] with key 'Hibernate:name=statistics'; nested exception is javax.management.InstanceAlreadyExistsException: Hibernate:name=statistics
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)

Thanks


Hello all
Im using liferay 6.0.6 and its service builder plugin and liferay-plugin-sdk-6.1.0-snapshot to create a jsf2-portlet. AND i have same problem too. any help appreciated , what is its solution ?
Thanks in advance

S.M.H.Jamali
R@dhe.. ..,修改在12 年前。

RE: Re: [Liferay Forums][1. Installation / Deployment / Setup]UnknownHostEx

New Member 帖子: 5 加入日期: 09-8-24 最近的帖子
I had same issue

I resolved by
$> hostname
PARHOSTWEB

$> vi /etc/hosts
127.0.0.1 PARHOSTWEB