glf for eclipse

来源:互联网 发布:js 时间字符串转date 编辑:程序博客网 时间:2024/06/05 10:25


 

一、下载

eclipse 3.5:

http://ajax.java.net/eclipse/plugins/

http://ajax.java.net/eclipse/features/

eclipse 3.6:

http://dlc.sun.com.edgesuite.net/glassfish/eclipse/helios/plugins/

http://dlc.sun.com.edgesuite.net/glassfish/eclipse/helios/features/

文档:

http://glassfishplugins.java.net/eclipse36/index.html

-----------------------------------53\54可以正确识别端口号,且每次修改domain.xml都能相应更改;52、51 识别端口号1118080、1114848



二、安装

方法1、将下载的2个包放到 eclipse下 2个文件夹内

。。。。。。


三、设置

    正常安装后,eclipse的help下会有相应项目

1、打开eclipse,如果没有“server view”,则windows-show view-servers

server view -new server---路径如D:/glassfish3/glassfish,

配置运行时环境:要选jdk,不能选jre

添加正确,可以看到 view log file

2、提示 要用jdk而不是jre

打开启动peizhi---jre  or 运行-------运行时配置

3、com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/maWeiSci__pm


4、在studio中更换persistence.xml后,需要在studio中刷新一次(使src、bin中的文件同步),然后再启动、发布gl



四、错误

javax.faces.FacesException: null: javax.ejb.EJBException

Caused by: javax.el.ELException: javax.ejb.EJBException

Caused by: javax.ejb.EJBException

Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.0.v20110604-r9504): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: IO 错误: The Network Adapter could not establish the connection
Error Code: 0
Caused by: java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection

Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection

Caused by: java.net.ConnectException: Connection refused: connect

原因:数据库没启动



常识

3.5  Galileo

3.6  helios