Home

Alfresco: Error while deploying on Glassfish Server

You are here

4 posts / 0 new
Last post
Alfresco: Error while deploying on Glassfish Server

I am getting the following error while deploying Alfresco on Glassfish Server.

Error
===========================================================
Error while accessing http://hostname:38080/alfresco (it is redirecting automatically to URL http://hostname:38080/alfresco/faces/jsp/dashboards/container.jsp )

javax.faces.FacesException: java.net.UnknownHostException: java.sun.com
caused by:
java.net.UnknownHostException: java.sun.com

===========================================================
Configuration details follows:
===========================================================
OS : SunOS SUNONE 5.10 Generic_137112-08 i86pc i386 i86pc
Glassfish : v2.1
MySQL : 5.1.33
MySQL Connector : mysql-connector-java-5.1.6
Alfresco : alfresco-enterprise-war-3.1

===========================================================

I followed the Document : http://wiki.alfresco.com/wiki/Alfresco_on_Glassfish
for the installation & configuration

Kindly help to resolve this issue

Re: Alfresco: Error while deploying on Glassfish Server


Log entry from server.log

2009-04-07T14:59:45.011+0530|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=httpSSLWorkerThread-38080-0;|14:59:45,010 User:guest FATAL [webapp.webxml.WebXmlParser] Unable to parse web.xml
java.net.UnknownHostException: java.sun.com

Re: Alfresco: Error while deploying on Glassfish Server

If your server machine is behind a proxy server you have to set some JAVA_OPTS from the glassfish admin console:

-Dhttp.proxyHost=yourproxyserver
-Dhttp.proxyPort=yourproxyport

restart glassfish

this solved the same problem for us.
Regards
Ivan Saracino
Starway - CSP Group

Re: Alfresco: Error while deploying on Glassfish Server

Hello,
My name is Robin Monteiro.i am trying to deploy Alfresco( Alfresco-community-3-4.a)on a oracle glassfish server 3.1.1 which has liferay already deployed on it, the operating system i am using is Sles Sp1 64bit.
Initially by manual deploying .war file which works for Liferay was not working for Alfresco so i followed exactly as said on the website:

http://wiki.alfresco.com/wiki/Alfresco_on_Glassfish
by using the glassfish GUI i was able to deploy alfresco it showed in the deployed applications on Glassfish but when i try to launch in the browser with the url

http://localhost:8080/alfresco
i am getting the following error
About Alfresco System Error
javax.faces.FacesException: java.net.UnknownHostException: java.sun.com
caused by:
java.net.UnknownHostException: java.sun.com

Hide Details

javax.faces.FacesException: java.net.UnknownHostException: java.sun.com
at org.apache.myfaces.shared_impl.webapp.webxml.WebXmlParser.parse(WebXmlParser.java:115)
at org.apache.myfaces.shared_impl.webapp.webxml.WebXml.init(WebXml.java:207)
at org.apache.myfaces.shared_impl.webapp.webxml.WebXml.getWebXml(WebXml.java:1
...
--------------------------------------------------------------------------------------------------------------------
this server was behind the proxy server so as mentioned in the previous post i changed the proxy in the glassfish GUI and i was able to see the web-page of alfresco at (http://localhost:8080/alfresco)
but on the production server the internet connection is absent - the one on which i want this applications to be running
so i tried removing the proxy(thinking that glassfish or and alfresco might have downloaded the files required by it so it can be tried offline) later restarted the glassfish and the same error was coming..now how does it works with the internet connection, which files is it taking from the internet which when offline dont work.