本文介绍了如何使用Eclipse Helios调试GlassFish 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在使用Eclipse Helios 3.6的GlassFish 3服务器适配器。我可以使用Eclipse中的服务器视图启动服务器,事情运行正常 - 但是我无法调试代码。 使用GF管理控制台启用调试(,然后重新启动服务器),单击调试( + Alt + )给我一个错误窗口: 在Helios中设置GlassFish 3调试的正确方法是什么? 编辑 Re:@The Elite Gentleman,没有任何错误显示在控制台中。这是一个例子: 2010年11月29日11:47:42 com.sun.enterprise.admin.launcher.GFLauncherLogger信息 INFO:JVM调用命令行: C:\Program Files\Java\jdk1.6.0_22\bin\java.exe -cp C: /glassfishv3/glassfish/modules/glassfish.jar -XX:+ UnlockDiagnosticVMOptions -XX:MaxPermSize = 192m -XX:NewRatio = 2 -XX:+ LogVMOutput -XX:LogFile = C:\glassfishv3\glassfish\domains\myDomain / logs / jvm.log -Xmx512m -client -javaagent:C:/ glassfishv3 /glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true -Dosgi.shell.telnet.maxconn = 1 -Djdbc.drivers = org.apache.derby.jdbc .ClientDriver -Dfelix.fileinstall.dir = C:\glassfishv3\glassfish / modules / autostart / -Djavax.net.ssl.keyStore = C:\glassfishv3\glassfish\domains \myDomain / config / keystore.jks -Dosgi.shell.telnet.port = 6666 -Djava.security.policy = C:\glassfishv3\g lassfish\domains\myDomain / config / server.policy -Dfelix.fileinstall.poll = 5000 -Dcom.sun.aas.instanceRoot = C:\glassfishv3\glassfish\domains\\ \\myDomain -Dcom.sun.enterprise.config.config_environment_factory_class = com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dosgi.shell.telnet.ip = 127.0.0.1 -Djava .endorsed.dirs = C:\glassfishv3\glassfish / modules / approveded; C:\glassfishv3\glassfish / lib / approveded -Dcom.sun.aas.installRoot = C:\glassfishv3\ glassfish -Djava.ext.dirs = C:\Program Files\Java\jdk1.6.0_22 / lib / ext; C:\Program Files\Java\jdk1.6.0_22 / jre / lib / ext; C:\glassfishv3\glassfish\domains\myDomain / lib / ext -Dfelix.fileinstall.bundles.new.start = true -Djavax.net.ssl.trustStore = C:\glassfishv3\glassfish\domains\myDomain / config / cacerts.jks -Dcom.sun.enterprise.security.httpsOutboundKeyAlias = s1as -Djava.se curity.auth.login.config = C:\glassfishv3\glassfish\domains\myDomain / config / login.conf -DANTLR_USE_DIRECT_CLASS_LOADING = true -Dfelix.fileinstall.debug = 1 -Dorg.glassfish.web.rfc2109_cookie_names_enforced = false -Djava.library.path = C:/ glassfishv3 / glassfish / lib; C:/ Program Files / Java / jdk1.6.0_22 / bin; C:/ glassfishv3 / glassfish; C:/ Windows / Sun / Java / bin; C:/ Windows / System32; C:/ Windows; C:/ Program Files / Java / jdk1.6.0_22 / jre / bin /文件/ Java / jdk1.6.0_22 / jre / bin; C:/ Program Files / Java / jdk1.6.0_22 / jre / lib / amd64; C:/ Python26 / Scripts; C:/ Python26; C:/ Windows / / wbem; C:/ Program Files(x86)/ ATI Technologies / ATI.ACE / Core-Static; C:/ Program Files(x86)/ Common Files / Roxio Shared / DLLShared; C:/ Program Files(x86)/ Common文件/ Roxio Shared / 10.0 / DLLShared; C:/ Program Files(x86)/ Microsoft SQL Server / 100 / Tools / Binn; C:/ Program Files / Microsoft SQL Server / 100 / Tools / Binn; C:/ Program Files / Microsoft SQL Server / 100 / DTS / Binn; C:/Windows/System32/WindowsPowerShell/v1.0; C :/ Program Files(x86)/ Microsoft SQL Server / 100 / Tools / Binn / VSShell / Common7 / IDE; C:/ Program Files(x86)/ Microsoft SQL Server / 100 / DTS / Binn; C:/ Program Files )/ PuTTY; C:/ Program Files(x86)/jboss-4.2.2.GA/bin;C:/Program Files / MySQL / MySQL Server 5.0 / bin; C:/ Program Files / IBM / SQLLIB / BIN; C :/ Program Files / IBM / SQLLIB / FUNCTION; C:/ Program Files / IBM / SQLLIB / samples / repl; C:/ Program Files / TortoiseSVN / bin; C:/jboss-5.1.0.GA/bin; C: / Program Files(x86)/ QuickTime / QTSystem; C:/ Program Files(x86)/ Git / cmd; C:/ Program Files / SlikSvn / bin; C:/ glassfishv3 / glassfish /%APPDATA%/ Python / Scripts; C :/ Program Files(x86)/Apache/apache-ant-1.7.0/bin;C:/Program Files(x86)/CVSNT/C:/jboss-5.1.0.GA/bin;C:/Program Files( x86)/Java/jdk1.6.0_14;C:/Program Files(x86)/Apache/apache-maven-2.1.0/bin;C:/glassfishv3/glassfish/bin com.sun.enterprise.glassfish .bootstrap.ASMain -domainname myDomain -asadmin-args start-domain ,,, - domaindir ,,, C:\glassfishv3\glassfish\domains ,,, - 调试,,, - 详细=真,,, myDomain -instancename server -verbose true -debug true -asadmin-classpath C :/glassfishv3/glassfish/modules/admin-cli.jar -asadmin-classname com.sun.enterprise.admin.cli.AsadminMain -upgrade false -domaindir C:/ glassfishv3 / glassfish / domains / myDomain -read-stdin true 2010年11月29日上午11:47:43 com.sun.enterprise。 admin.launcher.GFLauncherLogger信息信息:在4毫秒内成功启动。 INFO:运行GlassFish版本:GlassFish Server开源版3.0.1(build 22) INFO:为侦听器http-listener-2执行延迟SSL初始化信息:启动灰熊框架1.9.18-o - Mon Nov 29 11:47:46 EST 2010 信息:启动灰熊框架1.9.18-o - Mon Nov 29 11:47:46 EST 2010 信息:灰熊框架1.9.18-o开始:40ms监听端口7676 信息:灰熊框架1.9.18-o开始:50ms监听端口3700 信息:灰熊框架1.9.18-o开始:90秒监听端口80 信息:灰熊框架1.9.18-o开始:60ms监听端口4848 信息:灰熊框架1.9.18-o开始于: 67ms侦听端口8181 信息:管理控制台已经安装,但尚未加载。 INFO:使用com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate作为委托 INFO:SEC1002:安全管理器已关闭。 INFO:安全启动服务叫 INFO:SEC1143:加载策略提供程序com.sun.enterprise.security.provider.PolicyWrapper。 信息:成功创建classtype com.sun.enterprise.security.auth.realm.file.FileRealm的领域admin-realm。 信息:成功创建了classtype com.sun.enterprise.security.auth.realm.file.FileRealm的领域文件。 INFO:成功创建classtype的域名证书com.sun.enterprise.security.auth.realm.certificate.CertificateRealm。 信息:成功创建了classtype的com.un.enterprise.security.auth.realm.jdbc.JDBCRealm的领域jdbc。 INFO:安全服务成功启动.... INFO:在端口80上创建HTTP侦听器http-listener-1 INFO:在端口上创建HTTP侦听器http-listener-2 8181 INFO:在端口4848上创建HTTP监听器admin-listener INFO:创建虚拟服务器服务器 INFO:创建虚拟服务器服务器 INFO:创建虚拟服务器__asadmin INFO:创建的虚拟服务器__asadmin INFO:创建虚拟服务器__asadmin INFO:虚拟服务器服务器加载系统默认Web模块 |#] INFO:虚拟服务器服务器加载系统默认Web模块 INFO:初始化Mojarra 2.0.2(FCS b10),用于上下文'/ richfaces-showcase' INFO:选择的后备缓存工厂 INFO:使用参数创建LRUMap缓存实例:{org.richfaces.enableControlSkinningClasses = false,javax.faces.PROJECT_STAGE = Development,com.sun.faces.validateXml = true,com.sun.faces.forceLoadConfiguration = true,javax.faces。 STATE_SAVING_METHOD = SE rver,org.richfaces.enableControlSkinning = true,javax.faces.FACELETS_LIBRARIES = / WEB-INF / app-tags.taglib.xml,org.richfaces.skin =#{skinBean.skin}} INFO:创建LRUMap 512个项目容量的缓存实例 INFO:RichFaces Core实现由JBoss,Red Hat,Inc.的一个部门版本v.4.0.0-SNAPSHOT SVN r.20127 信息:监视jndi:/ server /richfaces-showcase/WEB-INF/faces-config.xml进行修改 INFO:在/ richfaces-showcase中加载应用程序richfaces-showcase INFO:在/ richfaces-showcase中加载应用程序richfaces-showcase INFO:加载richfaces-showcase完成的应用程序是7895 ms INFO:Hibernate验证器bean-validator-3.0-JBoss-4.0.2 INFO:实例化了org.hibernate的一个实例。 validator.engine.resolver.JPATraversableResolver。 INFO:EJB UserBean的便携式JNDI名称:[java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / UserBean,java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / UserBean!com.lapis.retailerportal.demo.ejb.UserBean] INFO:EJB的便携式JNDI名称DbTestBean:[java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / DbTestBean!com.lapis.retailerportal.demo.ejb.DbTestBean,java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / DbTestBean] INFO:EJB的便携式JNDI名称NewsBean:[java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / NewsBean!com.lapis.retailerportal.demo.ejb.NewsBean,java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / NewsBean] 信息:便携式JNDI EJB GameConfigBean的名称:[java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / GameConfigBean!com.lapis.retailerportal.demo.ejb.GameConfigBean,java:global / RetailerPortalDemo / RetailerPortalDemo_Bean / GameConfigBean] INFO:初始化Mojarra 2.0.2(FCS b10)上下文'/ RetailerPortalDemo' INFO:com.lapis.retailerportal.demo.entity.Retailer实际上已经变换 INFO:选择的后备缓存工厂 INFO:创建LRUMap缓存实例使用参数:{javax.faces.PROJECT_STAGE = Development,com.sun.faces.validateXml = true,com.sun.faces.forceLoadConfiguration = true,org.richfaces.skin = tweaked} INFO:创建LRUMap 512个项目容量的缓存实例 INFO:RichFaces Core实现由JBoss,Red Hat,Inc.的一个部门版本v.4.0.0.20101110-M4 SVN r.20021 INFO:com.lapis.retailerportal .demo.entity.GameConfig实际转换 INFO:com.lapis.retailerportal.demo.entity.NewsItem实际上已经转换 INFO:实例化了一个org.hibernate.validator.engine.resolver.JPATraversableResolver的实例。 信息:EclipseLink版本:Eclipse Persistence Services - 2.0.1.v20100213-r6600 INFO:file:/ C:/ glassfishv3 / glassfish / domains / myDomain / eclipseApps / RetailerPortalDemo / RetailerPortalDemo_Bean_jar / _RPD_Persistence_CTX登录成功信息:载入应用零售商端口数据零售商PortalDemo_Web.war在零售商门户信息:加载应用程序零售商端口数据零售商端口数据网络零售商门户信息:加载零售商端口数据终端应用程序是5656毫秒信息:GlassFish Server开源版3.0.1(22)启动时间:Felix(2386ms)启动服务(14265ms)总计(16651ms)信息:绑定RMI端口为*:8686 信息:JMXStartupService:启动JMXConnector,JMXService URL = service:jmx:rmi://192.168.5.10:8686 / jndi / rmi://192.168.5.10:8686 / jmxrmi INFO:[Thread [GlassFish内核主线程,5,主]]启动 INFO:{felix.fileinstall.poll(ms)= 5000,felix.fileinstall.dir = C:\glassfishv3\glassf ish\modules\autostart,felix.fileinstall.debug = 1,felix.fileinstall.bundles.new.start = true,felix.fileinstall.tmpdir = C:\Users\mjball\AppData\Local\ Temp\fileinstall-2104459395405070416,felix.fileinstall.filter = null} INFO:{felix.fileinstall.poll(ms)= 5000,felix.fileinstall.dir = C:\glassfishv3\glassfish\domains \myDomain\autodeploy\bundles,felix.fileinstall.debug = 1,felix.fileinstall.bundles.new.start = true,felix.fileinstall.tmpdir = C:\Users\mjball\AppData\Local \Temp\fileinstall-286375592969619901,felix.fileinstall.filter = null} INFO:Started bundle:file:/ C:/glassfishv3/glassfish/modules/autostart/osgi-web-container.jar INFO:从org.apache.felix.fileinstall-autodeploy-bundles.cfg 更新配置信息:已安装C:\glassfishv3\glassfish\modules\autostart\org.apache。 felix.fileinstall-autodeploy-bundles.cfg INFO:{felix.fileinstall.poll(ms)= 5000,felix.fileinstall.dir = C:\glassfishv3\glassfish\domains\myDomain\autodeploy\bundles,felix.fileinstall.debug = 1,felix filefile.conf b $ b 编辑2 我能够成功通过在外部启动GlassFish来调试Eclipse,例如 > asadmin start-domain myDomain 然后创建自定义调试配置: 为什么GlassFish服务器适配器不能这样做? 编辑3 - 解决问题 最初,我通过 GlassFish工具插件添加了GlassFish支持,我卸载了插件,并使用服务器→新建→服务器→下载其他服务器适配器添加GlassFish支持现在我可以调试。 Woohoo! 解决方案您应该在服务器视图中启动Glassfish,而不是运行选项。 I am using the GlassFish 3 server adapter with Eclipse Helios 3.6. I can start the server using the Servers view in Eclipse, and things run just fine - but I am not able to debug my code.After using the GF Admin Console to enable debugging (Configuration → JVM Settings → Debug, then restart the server), clicking Debug (++) gives me an error window:I'm guessing this is because Eclipse can't connect to the JVM's debug port (9009 by default).What is the proper way to set up GlassFish 3 debugging in Helios?EditRe: @The Elite Gentleman, there aren't any errors that show up in the console. Here's an example:Nov 29, 2010 11:47:42 AM com.sun.enterprise.admin.launcher.GFLauncherLogger infoINFO: JVM invocation command line:C:\Program Files\Java\jdk1.6.0_22\bin\java.exe-cpC:/glassfishv3/glassfish/modules/glassfish.jar-XX:+UnlockDiagnosticVMOptions-XX:MaxPermSize=192m-XX:NewRatio=2-XX:+LogVMOutput-XX:LogFile=C:\glassfishv3\glassfish\domains\myDomain/logs/jvm.log-Xmx512m-client-javaagent:C:/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true-Dosgi.shell.telnet.maxconn=1-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver-Dfelix.fileinstall.dir=C:\glassfishv3\glassfish/modules/autostart/-Djavax.net.ssl.keyStore=C:\glassfishv3\glassfish\domains\myDomain/config/keystore.jks-Dosgi.shell.telnet.port=6666-Djava.security.policy=C:\glassfishv3\glassfish\domains\myDomain/config/server.policy-Dfelix.fileinstall.poll=5000-Dcom.sun.aas.instanceRoot=C:\glassfishv3\glassfish\domains\myDomain-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory-Dosgi.shell.telnet.ip=127.0.0.1-Djava.endorsed.dirs=C:\glassfishv3\glassfish/modules/endorsed;C:\glassfishv3\glassfish/lib/endorsed-Dcom.sun.aas.installRoot=C:\glassfishv3\glassfish-Djava.ext.dirs=C:\Program Files\Java\jdk1.6.0_22/lib/ext;C:\Program Files\Java\jdk1.6.0_22/jre/lib/ext;C:\glassfishv3\glassfish\domains\myDomain/lib/ext-Dfelix.fileinstall.bundles.new.start=true-Djavax.net.ssl.trustStore=C:\glassfishv3\glassfish\domains\myDomain/config/cacerts.jks-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as-Djava.security.auth.login.config=C:\glassfishv3\glassfish\domains\myDomain/config/login.conf-DANTLR_USE_DIRECT_CLASS_LOADING=true-Dfelix.fileinstall.debug=1-Dorg.glassfish.web.rfc2109_cookie_names_enforced=false-Djava.library.path=C:/glassfishv3/glassfish/lib;C:/Program Files/Java/jdk1.6.0_22/bin;C:/glassfishv3/glassfish;C:/Windows/Sun/Java/bin;C:/Windows/System32;C:/Windows;C:/Program Files/Java/jdk1.6.0_22/jre/bin/server;C:/Program Files/Java/jdk1.6.0_22/jre/bin;C:/Program Files/Java/jdk1.6.0_22/jre/lib/amd64;C:/Python26/Scripts;C:/Python26;C:/Windows/System32/wbem;C:/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static;C:/Program Files (x86)/Common Files/Roxio Shared/DLLShared;C:/Program Files (x86)/Common Files/Roxio Shared/10.0/DLLShared;C:/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn;C:/Program Files/Microsoft SQL Server/100/Tools/Binn;C:/Program Files/Microsoft SQL Server/100/DTS/Binn;C:/Windows/System32/WindowsPowerShell/v1.0;C:/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn/VSShell/Common7/IDE;C:/Program Files (x86)/Microsoft SQL Server/100/DTS/Binn;C:/Program Files (x86)/PuTTY;C:/Program Files (x86)/jboss-4.2.2.GA/bin;C:/Program Files/MySQL/MySQL Server 5.0/bin;C:/Program Files/IBM/SQLLIB/BIN;C:/Program Files/IBM/SQLLIB/FUNCTION;C:/Program Files/IBM/SQLLIB/samples/repl;C:/Program Files/TortoiseSVN/bin;C:/jboss-5.1.0.GA/bin;C:/Program Files (x86)/QuickTime/QTSystem;C:/Program Files (x86)/Git/cmd;C:/Program Files/SlikSvn/bin;C:/glassfishv3/glassfish/%APPDATA%/Python/Scripts;C:/Program Files (x86)/Apache/apache-ant-1.7.0/bin;C:/Program Files (x86)/CVSNT/C:/jboss-5.1.0.GA/bin;C:/Program Files (x86)/Java/jdk1.6.0_14;C:/Program Files (x86)/Apache/apache-maven-2.1.0/bin;C:/glassfishv3/glassfish/bincom.sun.enterprise.glassfish.bootstrap.ASMain-domainnamemyDomain-asadmin-argsstart-domain,,,--domaindir,,,C:\glassfishv3\glassfish\domains,,,--debug,,,--verbose=true,,,myDomain-instancenameserver-verbosetrue-debugtrue-asadmin-classpathC:/glassfishv3/glassfish/modules/admin-cli.jar-asadmin-classnamecom.sun.enterprise.admin.cli.AsadminMain-upgradefalse-domaindirC:/glassfishv3/glassfish/domains/myDomain-read-stdintrueNov 29, 2010 11:47:43 AM com.sun.enterprise.admin.launcher.GFLauncherLogger infoINFO: Successfully launched in 4 msec.INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.0.1 (build 22)INFO: Perform lazy SSL initialization for the listener 'http-listener-2'INFO: Starting Grizzly Framework 1.9.18-o - Mon Nov 29 11:47:46 EST 2010INFO: Starting Grizzly Framework 1.9.18-o - Mon Nov 29 11:47:46 EST 2010INFO: Grizzly Framework 1.9.18-o started in: 40ms listening on port 7676INFO: Grizzly Framework 1.9.18-o started in: 50ms listening on port 3700INFO: Grizzly Framework 1.9.18-o started in: 90ms listening on port 80INFO: Grizzly Framework 1.9.18-o started in: 60ms listening on port 4848INFO: Grizzly Framework 1.9.18-o started in: 67ms listening on port 8181INFO: The Admin Console is already installed, but not yet loaded.INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegateINFO: SEC1002: Security Manager is OFF.INFO: Security startup service calledINFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.INFO: Realm jdbc of classtype com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm successfully created.INFO: Security service(s) started successfully....INFO: Created HTTP listener http-listener-1 on port 80INFO: Created HTTP listener http-listener-2 on port 8181INFO: Created HTTP listener admin-listener on port 4848INFO: Created virtual server serverINFO: Created virtual server serverINFO: Created virtual server __asadminINFO: Created virtual server __asadminINFO: Created virtual server __asadminINFO: Virtual server server loaded system default web module|#]INFO: Virtual server server loaded system default web moduleINFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/richfaces-showcase'INFO: Selected fallback cache factoryINFO: Creating LRUMap cache instance using parameters: {org.richfaces.enableControlSkinningClasses=false, javax.faces.PROJECT_STAGE=Development, com.sun.faces.validateXml=true, com.sun.faces.forceLoadConfiguration=true, javax.faces.STATE_SAVING_METHOD=server, org.richfaces.enableControlSkinning=true, javax.faces.FACELETS_LIBRARIES=/WEB-INF/app-tags.taglib.xml, org.richfaces.skin=#{skinBean.skin}}INFO: Creating LRUMap cache instance of 512 items capacityINFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0-SNAPSHOT SVN r.20127INFO: Monitoring jndi:/server/richfaces-showcase/WEB-INF/faces-config.xml for modificationsINFO: Loading application richfaces-showcase at /richfaces-showcaseINFO: Loading application richfaces-showcase at /richfaces-showcaseINFO: Loading richfaces-showcase Application done is 7895 msINFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.INFO: Portable JNDI names for EJB UserBean : [java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/UserBean, java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/UserBean!com.lapis.retailerportal.demo.ejb.UserBean]INFO: Portable JNDI names for EJB DbTestBean : [java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/DbTestBean!com.lapis.retailerportal.demo.ejb.DbTestBean, java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/DbTestBean]INFO: Portable JNDI names for EJB NewsBean : [java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/NewsBean!com.lapis.retailerportal.demo.ejb.NewsBean, java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/NewsBean]INFO: Portable JNDI names for EJB GameConfigBean : [java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/GameConfigBean!com.lapis.retailerportal.demo.ejb.GameConfigBean, java:global/RetailerPortalDemo/RetailerPortalDemo_Bean/GameConfigBean]INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/RetailerPortalDemo'INFO: com.lapis.retailerportal.demo.entity.Retailer actually got transformedINFO: Selected fallback cache factoryINFO: Creating LRUMap cache instance using parameters: {javax.faces.PROJECT_STAGE=Development, com.sun.faces.validateXml=true, com.sun.faces.forceLoadConfiguration=true, org.richfaces.skin=tweaked}INFO: Creating LRUMap cache instance of 512 items capacityINFO: RichFaces Core Implementation by JBoss, a division of Red Hat, Inc., version v.4.0.0.20101110-M4 SVN r.20021INFO: com.lapis.retailerportal.demo.entity.GameConfig actually got transformedINFO: com.lapis.retailerportal.demo.entity.NewsItem actually got transformedINFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.INFO: EclipseLink, version: Eclipse Persistence Services - 2.0.1.v20100213-r6600INFO: file:/C:/glassfishv3/glassfish/domains/myDomain/eclipseApps/RetailerPortalDemo/RetailerPortalDemo_Bean_jar/_RPD_Persistence_CTX login successfulINFO: Loading application RetailerPortalDemo#RetailerPortalDemo_Web.war at RetailerPortalDemoINFO: Loading application RetailerPortalDemo#RetailerPortalDemo_Web.war at RetailerPortalDemoINFO: Loading RetailerPortalDemo Application done is 5656 msINFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(2386ms) startup services(14265ms) total(16651ms)INFO: Binding RMI port to *:8686INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://192.168.5.10:8686/jndi/rmi://192.168.5.10:8686/jmxrmiINFO: [Thread[GlassFish Kernel Main Thread,5,main]] startedINFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\glassfishv3\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\mjball\AppData\Local\Temp\fileinstall-2104459395405070416, felix.fileinstall.filter = null}INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\glassfishv3\glassfish\domains\myDomain\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\mjball\AppData\Local\Temp\fileinstall-286375592969619901, felix.fileinstall.filter = null}INFO: Started bundle: file:/C:/glassfishv3/glassfish/modules/autostart/osgi-web-container.jarINFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfgINFO: Installed C:\glassfishv3\glassfish\modules\autostart\org.apache.felix.fileinstall-autodeploy-bundles.cfgINFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\glassfishv3\glassfish\domains\myDomain\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\mjball\AppData\Local\Temp\fileinstall--3209587030652226629, felix.fileinstall.filter = null}Edit 2I was able to successfully debug in Eclipse by starting GlassFish externally, e.g.> asadmin start-domain myDomainand then creating a custom Debug Configuration:So why can't the GlassFish server adapter do this?Edit 3 - Problem solvedOriginally, I had added GlassFish support through the GlassFish Tools plugin. I uninstalled the plugin, and added GlassFish support using Servers → New → Server → Download additional server adapters. Now I can debug. Woohoo! 解决方案 You should start Glassfish with the debug instead of the run option inside the Servers view. 这篇关于如何使用Eclipse Helios调试GlassFish 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-16 04:57