为什么一读存档就显示shutting down vsftpdintermal server

Are you the publisher?
about this channel
Report adult content:
click to rate:
More Channels
Channel Catalog
Articles on this Page
(showing articles 81 to 100 of 1091)
(showing articles 81 to 100 of 1091)
12/13/12--12:40:
Using GlassFish 3.1.2.2 with 2 servers, 2 nodes, 2 instances and deployed simple MDB to cluster (Conventional cluster with master broker). I can access on server1 and server2 via port 23700. Shutdown server1 and try to access from server2 and get NAM1007 : Problem with membership change notification. Exception occurred : java.lang.NullPointerException. If I look at ports on server2 23700 is not listening. I had to deploy an EAR with an MDB to get server1 listening on the ORB ports.
It appears that shutting down the master broker gracefully also shuts down the ORB listeners of the other instances. What happens if you want to do rolling maintenance?
Second scenario, I powered off master broker without GlassFish shutdown and ORB port stayed up on server2, but after message was delivered it was not removed from the queue. Stand alone client config:
System.setProperty("com.sun.appserv.iiop.endpoints","glassfish1.corp.local:23700,glassfish2.corp.local:23700");
System.setProperty("com.sun.iiop.loadbalancingpolicy", "ic-based");
System.setProperty("com.sun.corba.ee.transport.ORBWaitForResponseTimeout", "5000");
System.setProperty("com.sun.corba.ee.transport.ORBTCPConnectTimeouts","100:500:100:500");
System.setProperty("com.sun.corba.ee.transport.ORBTCPTimeouts","500:0");
12/14/12--08:29:
I've got Glassfish 3.1.2 running and have the Harvard DVN app installed.
It cannot start because of 2 errors, one of them has to do with the joda-time class:
glassfish3.1.2|global|_ThreadID=10;_ThreadName=Thread-2;|Class [ org/joda/time/DateTimeZone ] not found. Error while loading [ class org.jboss.seam.international.datetimezone.DefaultDateTimeZoneProducer
I've downloaded the joda-time-2.1 package,extracted it to a directory (/usr/local/joda-time-2.1) and added the path in the Glassfish admin default-config under the JVM Settings - JVM Path Settings
But when I restart Glassfish it still reports the same error.
Anyone any idea?
12/16/12--10:39:
Is it true that regardless whehter I use DataSource or ConnectionPoolDataSource as the resource type the connections are pooled?
Is it the case that Glassfish uses its own pooling mechanism if DataSource is specified but can take advantage of the native driver's pooling if ConnectionPoolDataSource is used?
If so, which variant is preferable?
I am a beginner, so a rule of thumb would be enough.
Thanks a lot
12/17/12--12:03:
I have done glassfish and webserver load balancing residing on 2 different machines on the same platform say solaris. Now i have to load balance between glassfish and webserver load balancing on 2 servers on different platforms. My glassfish is going to be on solaris and webserver will be on linux. I need some help on which lb plugin should i use to do that. aslb....jar for linux or solaris?
If anyone has done this before please advice.
12/17/12--09:14:
You know our usual channels of communication:
1). Twitter: @glassfish
2). GlassFish Users List:
3). GlassFish Forum:
(Users list and Forums are mirrored)
4). Facebook: /glassfish
5). Youtube: /GlassFishVideos
And now we are also available as a Google+ community:
Please join and make it vibrant there as well.
12/17/12--18:49:
Today, I updated fighterfish trunk and switched JDK 7.
While building fighterfish using JDK 7, there is a fatal
problem(seeing attachment(buildingerror_jdk7) in details) as following,
"[INFO] --- hk2-maven-plugin:1.1.0:hk2-compile (default-hk2-compile) @
osgi-javaee-base ---
WARNING: Error injecting: com.sun.enterprise.module.maven.HK2CompileMojo
java.lang.NoClassDefFoundError:
com/sun/mirror/apt/AnnotationProcessorFactory
I investigated the error and searched JIRA[1],
Then, I made a modification on fighterfish/module/parent-pom/pom.xml and
replaced com.sun.enterprise:hk2-maven-plugin:1.1.0 with
org.glassfish.hk2:hk2-maven-plugin:1.6.19, and re-built fighterfish
sucessfully.
So, although you need not switch to JDK 1.7, I suggest that team can
confirm the issue.
BTW: the attachment(pom.xml) is my modification of parent-pom/pom.xml.
12/19/12--01:40:
I am creating a table for generating report and then printing the report in excel sheet. It works fine on my localhost(windows) but when i deploy the application on server(ISP's) i.e on glassfish and tries to print the report it is throwing exception. The Log file is as such
[#|T14:31:17.188+0530|SEVERE|glassfishv3.0|com.vaadin.Application|_ThreadID=38;_ThreadName=Thread-1;|Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method buttonClick in forms.ReportForm$ButtonResponse failed.
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:532)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
at com.vaadin.ui.Button.fireClick(Button.java:550)
at com.vaadin.ui.Button.changeVariables(Button.java:217)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.changeVariables(AbstractCommunicationManager.java:1455)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1399)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1318)
at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:763)
at com.vaadin.terminal.municationManager.handleUidlRequest(CommunicationManager.java:296)
at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:679)Caused by: java.lang.Error: Probable fatal error:No fonts found.
at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1087)
at sun.font.FontManager.initialiseDeferredFont(FontManager.java:966)
at positeFont.doDeferredInitialisation(CompositeFont.java:254)
at positeFont.getSlotFont(CompositeFont.java:334)
at positeGlyphMapper.initMapper(CompositeGlyphMapper.java:81)
at positeGlyphMapper.(CompositeGlyphMapper.java:62)
at positeFont.getMapper(CompositeFont.java:390)
at positeFont.canDisplay(CompositeFont.java:416)
at java.awt.Font.canDisplayUpTo(Font.java:2009)
at java.awt.font.TextLayout.singleFont(TextLayout.java:469)
at java.awt.font.TextLayout.(TextLayout.java:527)
at org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:206)
at org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1854)
at org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1837)
at com.vaadin.addon.tableexport.ExcelExport.finalSheetFormat(ExcelExport.java:747)
at com.vaadin.addon.tableexport.ExcelExport.convertTable(ExcelExport.java:272)
at com.vaadin.addon.tableexport.TableExport.export(TableExport.java:80)
at forms.ReportForm$ButtonResponse.buttonClick(ReportForm.java:519)
at sun.reflect.GeneratedMethodAccessor1425.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:512)
... 35 more
12/19/12--05:14:
I have very bad issue.
I have maven project. I could not any way deploy my project into Glassfish.
Yesterday I could deploy it. This morning I could deploy it.
Since morning I can't deploy the same project again!
The error is in server.log:
T15:05:00.921+0200 javax.enterprise.system.tools.admin.org.glassfish.deployment.adminSEVERE: Exception while deploying the app [JavaHelp] : Unable to locate the DTD to validate your deployment descriptor file [WEB-INF/glassfish-web.xml] in archive [JavaHelp]. Please make sure the DOCTYPE is correct (no typo in public ID or system ID) and you have proper access to the Internet.java.net.ConnectException: Connection refused: connect at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) at sun.net.www.http.HttpClient.&init&(HttpClient.java:203) at sun.net.www.http.HttpClient.New(HttpClient.java:290) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:630) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1268) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1235) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:260) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1151) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1047) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:960) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306) at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:711) at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:661) at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:409) at com.sun.enterprise.deployment.archivist.Archivist.openWith(Archivist.java:264) at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:175) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:94) at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:827) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:769) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.mandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.mandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.mandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.mandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.mandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.mandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)T15:08:32.328+0200 javax.enterprise.system.tools.deployment.org.monSEVERE: DPL8005: Deployment Descriptor parsing failure : [Ljava.lang.O@14ca61fT15:08:32.328+0200 javax.enterprise..sun.enterprise.v3.serverSEVERE: Exception while deploying the app [JavaHelp]T15:08:32.328+0200 javax.enterprise..sun.enterprise.v3.serverSEVERE: Unable to locate the DTD to validate your deployment descriptor file [WEB-INF/glassfish-web.xml] in archive [JavaHelp]. Please make sure the DOCTYPE is correct (no typo in public ID or system ID) and you have proper access to the Internet.java.io.IOException: Unable to locate the DTD to validate your deployment descriptor file [WEB-INF/glassfish-web.xml] in archive [JavaHelp]. Please make sure the DOCTYPE is correct (no typo in public ID or system ID) and you have proper access to the Internet. at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:343) at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:711) at com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescriptor(Archivist.java:661) at com.sun.enterprise.deployment.archivist.Archivist.readRestDeploymentDescriptors(Archivist.java:409) at com.sun.enterprise.deployment.archivist.Archivist.openWith(Archivist.java:264) at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:175) at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:94) at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:827) at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:769) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.mandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.mandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.mandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.mandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.mandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.mandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)Caused by: java.net.ConnectException: Connection refused: connect at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) at sun.net.www.http.HttpClient.&init&(HttpClient.java:203) at sun.net.www.http.HttpClient.New(HttpClient.java:290) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:630) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1268) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1235) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:260) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1151) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1047) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:960) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:607) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:835) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302) at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306) ... 38 moreMy glassfish-web.xml is simple and almost all copied from javaee-tutorial:&?xml version="1.0" encoding="UTF-8"?&&!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"&
&/pre&&pre&&glassfish-web-app error-url=""&
&context-root&/JavaHelp&/context-root&&security-role-mapping&&role-name&ADMINISTRATOR&/role-name&&group-name&ADMINISTRATOR&/group-name&&/security-role-mapping&&security-role-mapping&&role-name&USER&/role-name&&group-name&USER&/group-name&&/security-role-mapping&&class-loader delegate="true" /&&jsp-config&&property name="keepgenerated" value="true"&&description&Keep a copy of the generated servlet class' java code.&/description&&/property&&/jsp-config&&property name="alternatedocroot_1"
value="from=/lib/* dir=C:/glassfish3/glassfish/domains/domain1/" /&&/glassfish-web-app&
I am sure there is no typo in DOCTYPE. Anyway I checked that it is correctThank you!
12/19/12--08:06:
I am fighting this error together with another one for a few days already.
I can't find reasonable explanation about it on the Internet:
I use Glassfish 3.1.2.2 (build 5)
T17:54:26.046+0200 javax.enterprise..sun.enterprise.connectors.utilWARNING: RAR8068: Using default datasource : __ds_jdbc_ra for pool : JavaHelpPoolT17:54:26.093+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR8061: failed to load resource-adapter-config or RA [ __ds_jdbc_ra ], com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Unable to get active RA for module __ds_jdbc_raT17:54:26.093+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR8060: Unable to lookup pool [ JavaHelpPool ], javax.naming.NamingException: Lookup failed for '__SYSTEM/pools/JavaHelpPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: pools]T17:54:26.093+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR6017 : Failed to get connection pool object jdbc/javahelpds via JNDI lookup : com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Lookup failed for '__SYSTEM/pools/JavaHelpPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}T17:54:26.093+0200 javax.enterprise..sun.enterprise.connectors.utilWARNING: RAR8068: Using default datasource : __ds_jdbc_ra for pool : JavaHelpPoolT17:54:26.140+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR8061: failed to load resource-adapter-config or RA [ __ds_jdbc_ra ], com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Unable to get active RA for module __ds_jdbc_raT17:54:26.156+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR8060: Unable to lookup pool [ JavaHelpPool ], javax.naming.NamingException: Lookup failed for '__SYSTEM/pools/JavaHelpPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: pools]T17:54:26.156+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR6017 : Failed to get connection pool object jdbc/javahelpds via JNDI lookup : com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Lookup failed for '__SYSTEM/pools/JavaHelpPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}T17:54:26.625+0200 org.eclipse.persistence.session.file:/C:/glassfish3/glassfish/domains/domain1/applications/JavaHelp/WEB-INF/classes/_com.javahelp_JavaHelp_war_1.0PUINFO: EclipseLink, version: Eclipse Persistence Services - 2.3.2.v461T17:54:26.640+0200 javax.enterprise..sun.enterprise.connectors.utilWARNING: RAR8068: Using default datasource : __ds_jdbc_ra for pool : JavaHelpPoolT17:54:26.687+0200 javax.enterprise..sun.enterprise.connectors.serviceSEVERE: RAR8061: failed to load resource-adapter-config or RA [ __ds_jdbc_ra ], com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Unable to get active RA for module __ds_jdbc_raT17:54:26.687+0200 javax.enterprise..sun.enterprise.connectors.serviceWARNING: RAR7010: Pool not reachable.T17:54:26.687+0200 javax.enterprise..sun.enterprise.connectors.serviceWARNING: jdbc.exc_get_conn[#|T17:54:26.687+0200|SEVERE|glassfish3.1.2|org.eclipse.persistence.session.file:/C:/glassfish3/glassfish/domains/domain1/applications/JavaHelp/WEB-INF/classes/_com.javahelp_JavaHelp_war_1.0PU.ejb|_ThreadID=44;_ThreadName=admin-thread-pool-4848(1);|Local Exception Stack:Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v461): org.eclipse.persistence.exceptions.DatabaseExceptionInternal Exception: java.sql.SQLException: This pool is not registered with the runtime environment : JavaHelpPoolError Code: 0 at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:309) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:135) at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162) at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:584) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206) at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invokeInternal(EntityManagerFactoryMethodHandler.java:117) at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invokeCreateEntityManager(EntityManagerFactoryMethodHandler.java:103) at org.zeroturnaround.jrebel.integration.eclipselink.EntityManagerFactoryMethodHandler.invoke(EntityManagerFactoryMethodHandler.java:77) at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl_$$_javassist_0.createEntityManager(EntityManagerFactoryImpl_$$_javassist_0.java) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:211) at org.glassfish.persistence.jpa.PersistenceUnitLoader.&init&(PersistenceUnitLoader.java:120) at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:224) at org.glassfish.persistence.jpa.JPADeployer$PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:495) at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:233) at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:871) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:410) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389) at com.sun.enterprise.mandRunnerImpl$1.execute(CommandRunnerImpl.java:348) at com.sun.enterprise.mandRunnerImpl.doCommand(CommandRunnerImpl.java:363) at com.sun.enterprise.mandRunnerImpl.doCommand(CommandRunnerImpl.java:1085) at com.sun.enterprise.mandRunnerImpl.access$1200(CommandRunnerImpl.java:95) at com.sun.enterprise.mandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1291) at com.sun.enterprise.mandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1259) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:461) at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:212) at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179) at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117) at com.sun.enterprise.v3.services.impl.ContainerMapper$Hk2DispatcherCallable.call(ContainerMapper.java:354) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)Caused by: java.sql.SQLException: This pool is not registered with the runtime environment : JavaHelpPool at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getConnection(ConnectorConnectionPoolAdminServiceImpl.java:1552) at com.sun.enterprise.connectors.ConnectorRuntime.getConnection(ConnectorRuntime.java:564) at com.sun.enterprise.connectors.service.ConnectorResourceAdminServiceImpl$MyDataSource.getConnection(ConnectorResourceAdminServiceImpl.java:283) at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:132) ... 52 moreCaused by: javax.resource.ResourceException: This pool is not registered with the runtime environment : JavaHelpPool at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:669) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getConnection(ConnectorConnectionPoolAdminServiceImpl.java:1545) ... 55 moreCaused by: com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: This pool is not bound in JNDI : JavaHelpPool at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:1087) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:628) ... 56 moreCaused by: javax.naming.NamingException: Lookup failed for '__SYSTEM/pools/JavaHelpPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: pools] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) at javax.naming.InitialContext.lookup(InitialContext.java:411) at javax.naming.InitialContext.lookup(InitialContext.java:411) at com.sun.appserv.connectors.internal.api.ResourceNamingService.lookup(ResourceNamingService.java:221) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:870) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(ConnectorConnectionPoolAdminServiceImpl.java:1003) ... 57 moreCaused by: javax.naming.NameNotFoundException: pools at com.sun.enterprise.naming.impl.TransientContext.resolveContext(TransientContext.java:310) at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:218) at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219) at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77) at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:119) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:505) ... 63 moreIf somebody knows please tell what is it.
I pasted __ds_jdbc_ra.jar
manually at
C:\glassfish3\glassfish\bin\lib\install\applications\__ds_jdbc_ra
and it does not help!
12/19/12--11:36:
After enabling secure-admin, I can no longer bring up the admin console in a browser, either locally or remotely.
The admin account has a password and the enable works without issue.
When trying to log into the console on a remote host, the login page comes up where I enter the necessary credentials and then I receive a page saying "This page cannot be displayed" for a URL of .
When I try it on the localhost host with the url
I immediately get the page with the message "This page cannot be displayed".
The DAS is running and I have confirmed that the secure-admin.enabled=true.
I also made sure that I restarted the DAS after enabling the secure-admin mode.
I am running Glassfish 3.1.2 (Build 23).
Is there something that I am missing?
12/19/12--17:23:
I try to setup a jms connection factory to a TIBCO EMS on a remote machine.
The resource type is javax.jms.ConnectionFactory
Pool settings default, no transaction. I added also UserName, Password and AddressList (Format: dev-esb:7222).
However it does not work. If I try to connect (or ping) I'll get the following exception:
WARNING: [C4003]: Error occurred on connection creation [dev-esb:7222]. - cause: java.lang.NumberFormatException: For input string: "
I can easily connect to the JMS programmatically, so I'm sure it works. The only difference is, that the code uses a TIBCO class for the factory: TibjmsQueueConnectionFactory
Is this a bug or did I forget any important settings? What's the precise procedure to connect to a remote JMS?
The exception:
Dec 20, :15 AM org.hibernate.validator.internal.util.Version
INFO: HV000001: Hibernate Validator 4.3.0.Final
Dec 20, :16 AM com.sun.messaging.jms.ra.ResourceAdapter start
INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter: Version:
4.5.2 Patch 1
(Build 3-d) Compile:
7 10:46:15 PDT 2012
Dec 20, :16 AM com.sun.messaging.jms.ra.ResourceAdapter start
INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter starting: broker is REMOTE, connection mode is TCP
Dec 20, :16 AM com.sun.messaging.jms.ra.ResourceAdapter start
INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter Started:REMOTE
Dec 20, :16 AM com.sun.messaging.jmq.jmsclient.ExceptionHandler throwConnectionException
WARNING: [C4003]: Error occurred on connection creation [10.20.13.131:7222]. - cause: java.lang.NumberFormatException: For input string: "
com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [10.20.13.131:7222]. - cause: java.lang.NumberFormatException: For input string: "
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionException(ExceptionHandler.java:280)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:226)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:262)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:156)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.(PortMapperClient.java:98)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.(TCPConnectionHandler.java:168)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:141)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:785)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew(ConnectionInitiator.java:260)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:214)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:164)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:843)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.(ProtocolHandler.java:1562)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:2427)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:1108)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.(ConnectionImpl.java:459)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.(UnifiedConnectionImpl.java:66)
at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.(XAConnectionImpl.java:64)
at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnectionFactory.java:97)
at com.sun.messaging.jms.ra.ManagedConnection.(ManagedConnection.java:196)
at com.sun.messaging.jms.ra.ManagedConnectionFactory.createManagedConnection(ManagedConnectionFactory.java:226)
at com.sun.enterprise.resource.allocator.NoTxConnectorAllocator.createResource(NoTxConnectorAllocator.java:128)
at com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:907)
at com.sun.enterprise.resource.pool.ConnectionPool.createResource(ConnectionPool.java:1189)
at com.sun.enterprise.resource.pool.datastructure.RWLockDataStructure.addResource(RWLockDataStructure.java:98)
at com.sun.enterprise.resource.pool.ConnectionPool.addResource(ConnectionPool.java:282)
at com.sun.enterprise.resource.pool.ConnectionPool.createResourceAndAddToPool(ConnectionPool.java:1512)
at com.sun.enterprise.resource.pool.ConnectionPool.createResources(ConnectionPool.java:944)
at com.sun.enterprise.resource.pool.ConnectionPool.initPool(ConnectionPool.java:230)
at com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:511)
at com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:381)
at com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:245)
at com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:170)
at com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:338)
at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:301)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:236)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:160)
at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(ConnectionFactoryAdapter.java:181)
at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(ConnectionFactoryAdapter.java:168)
at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(ConnectionFactoryAdapter.java:150)
at info.junius.GFMessageSender.main(GFMessageSender.java:22)
Caused by: java.lang.NumberFormatException: For input string: "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:527)
at com.sun.messaging.jmq.io.PortMapperTable.read(PortMapperTable.java:277)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:243)
... 39 more
Dec 20, :57 AM com.sun.enterprise.resource.allocator.NoTxConnectorAllocator createResource
WARNING: RAR5038:Unexpected exception while creating resource for pool jms/iiNetTibcoConnectionFactory. Exception : javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_MC4001: constructor:Aborting:JMSException on createConnection=[C4003]: Error occurred on connection creation [10.20.13.131:7222]. - cause: java.lang.NumberFormatException: For input string: "
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.throwConnectionException(ExceptionHandler.java:280)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:226)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:262)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:156)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.(PortMapperClient.java:98)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.(TCPConnectionHandler.java:168)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:141)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:785)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionNew(ConnectionInitiator.java:260)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:214)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:164)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:843)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.(ProtocolHandler.java:1562)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:2427)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:1108)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.(ConnectionImpl.java:459)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.(UnifiedConnectionImpl.java:66)
at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.(XAConnectionImpl.java:64)
at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnectionFactory.java:97)
at com.sun.messaging.jms.ra.ManagedConnection.(ManagedConnection.java:196)
... 22 more
Caused by: java.lang.NumberFormatException: For input string: "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:481)
at java.lang.Integer.parseInt(Integer.java:527)
at com.sun.messaging.jmq.io.PortMapperTable.read(PortMapperTable.java:277)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:243)
... 39 more
12/20/12--07:42:
&& I can think of two: a kill -9 signal and a JVM crash.
Neither of these is& happening, at least as far as we can detect.
Everything else it seems to me& should leave footprints in server.log.
What other possible silent and fatel& events are there?
This has happened to us as well, except it was a 3.1.2 server (am
pretty sure). It happened twice on the same Linux box running in AWS,
and hasn't happened since -- was maybe a month ago. We thought it was
the Linux "OOM killer" but could find no record of the OS shutting
down the process.
If it happens again, I'll get more info about JDK, OS, etc, and share.
Very strange.
12/20/12--08:58:
I've tried to get Glassfish to run via the installer, and the zip. When I try to start it via eclipse, I get the following error:
SEVERE: Shutting down v3 due to startup exception : Permission denied: listen: 8080=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@2af96654
The list-domains command via asadmin shows domain1 as not running, so I tried to start it and got this error:
asadmin& start-domain domain1Waiting for domain1 to start ...Error starting domain domain1.The server exited prematurely with exit code 0.Before it died, it produced the following output:Launching GlassFish on Felix platform[#|T17:54:59.842+0100|INFO|glassfish3.1.2|com.sun.enterprise.server.logging.GFFileHandler|_ThreadID=1;_ThreadName=|Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2.2 (build 5)|#][#|T17:54:59.906+0100|INFO|glassfish3.1.2|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=1;_ThreadName=|Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#][#|T17:55:00.075+0100|INFO|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.50 started in: 19ms - bound to [0.0.0.0:8181]|#][#|T17:55:00.075+0100|INFO|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.services.impl|_ThreadID=30;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.50 started in: 8ms - bound to [0.0.0.0:3700]|#][#|T17:55:00.075+0100|INFO|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.services.impl|_ThreadID=27;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.50 started in: 33ms - bound to [0.0.0.0:8080]|#][#|T17:55:00.075+0100|INFO|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.services.impl|_ThreadID=33;_ThreadName=Grizzly-kernel-thread(1);|Grizzly Framework 1.9.50 started in: 3ms - bound to [0.0.0.0:7676]|#][#|T17:55:00.201+0100|INFO|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.server|_ThreadID=1;_ThreadName=|GlassFish Server Open Source Edition 3.1.2.2 (5) startup time : Felix (1,250ms), startup services(548ms), total(1,798ms)|#][#|T17:55:00.201+0100|SEVERE|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.server|_ThreadID=1;_ThreadName=|Shutting down v3 due to startup exception : Permission denied: listen: 4848=com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler@47a2899b|#][#|T17:55:00.218+0100|INFO|glassfish3.1.2|javax.enterprise.system..sun.enterprise.v3.admin|_ThreadID=38;_ThreadName=Thread-21;|Server shutdown initiated|#][#|T17:55:00.218+0100|INFO|glassfish3.1.2|javax.enterprise..sun.enterprise.v3.server|_ThreadID=38;_ThreadName=Thread-21;|Already stopped, so just returning|#]Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "FelixStartLevel"Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Grizzly-kernel-thread(1)"Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "Grizzly-kernel-thread(1)"Command start-domain failed.
Glassfish version: 3.1.2.2
Java: JDK 7u10
Any help is appreciated, thanks.
12/20/12--11:24:
If I have a META-INF/persistence.xml with a persistence unit defined within
it named "cx", and if in an EJB module somewhere I have this:
@PersistenceContext(name = "cx")
...and there are no XML deployment descriptors doing any kind of
overriding, and I'm still getting the following error:
Could not resolve a persistence unit corresponding to the
persistence-context-ref-name [cx] in the scope of the module...
...what does that mean?
What else should I be verifying?
This is with embedded GlassFish version 3.1.1.
I have logging on
javax.enterprise, com.sun.enterprise and org.glassfish dialed up to FINEST.
The amount of verbiage is truly stunning, but no log output indicates what
I do see the low-level XML parsing routines successfully parsing
my persistence.xml and finding the persistence unit named "cx", so at least
at that point it is known to the system.
Is there some way to get embedded GlassFish to output a server.log that
would contain something besides what is barfed to the screen?
some way to get embedded GlassFish to leave its temporary directory behind?
Maybe there's something wrong with the EJB module itself?
12/20/12--11:31:
I have a big webapp in GF3.1.1.
Then, I tried to use jVisualVM to profile my webapp.
But the problem is that it doesn't show some kind of list of classes loaded, with size ammount used by each one. I would like something like this table:
| variable | memory used
class1 | var1
class1 | var2
total class1 = 1.3Mb
class2 | var3
total class2 = 5Mb
Is there some tool to see this kind of information, to really detect what part of my webapp uses more memory?
12/21/12--11:49:
I was running Glass Fish Server at port 4848 ().
Later I stopped it through administration tool, STOP button.
Since then it was not running.
I want to run it again.
Please Help me.
Thanks in advance.
Harish Pathak
12/21/12--15:15:
I have install SE 1.6 and set env variables for my path and also JAVA_HOME however when I try to install GlassFish exe ogs-3.1.2.2-windows I get the long error message below:
This application needs version 1.6 or higher of the Java(TM) 2 RuntimeEnvironment. If the required Java(TM) 2 Runtime Environment is not installed,you can download it from the following website:Or if you already have the required Java(TM) 2 Runtime Environmentinstalled, try rerunning this application with the following usage:'ogs-3.1.2.2-windows.exe' -j (tm)&
Below is my path:
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\ant\C:\Program Files\Java\jre6;C:\Program Files\Java\jdk1.6.0_38
Below is my JAVA_HOME:
C:\Program Files\Java\jre6
Using jdk1.6.0_38 also gets the same error.
Can someone please help me get past this road block ?
12/23/12--01:50:
This is not a Web Application. It is about Application Client Container (ACC). I am trying to access EJB from a remote location. Server and client are not in the same machine.
There is a tutorial at Netbeans website where the Application Client and Enterprise Application both are in a server.
It is a very small tutorial. This JEE project just prints a single line.
I am trying to make the Application Client access the EJB from a remote location. Hence, I have modified the client code. I have also created jndi.properties file.
Properties props = new Properties();
InputStream is =
Main.class.getResourceAsStream("jndi.properties");
props.load(is);
InitialContext ctx = new InitialContext(props);
MySessionRemote mySession = (MySessionRemote) ctx.lookup("stateless.MySessionRemote");
System.err.println("result = " + mySession.getResult());
} catch (NamingException nex) {
nex.printStackTrace();
This is my jndi.properties file
java.naming.factory.initial = com.sun.enterprise.naming.SerialInitContextFactoryjava.naming.factory.url.pkgs = com.sun.enterprise.namingjava.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl#optional.
Defaults to localhost.
Only needed if web server is running#on a different host than the appserverorg.omg.CORBA.ORBInitialHost = localhost#optional.
Defaults to 3700.
Only needed if target orb port is not 3700.org.omg.CORBA.ORBInitialPort = 3700
On this line below in client side code
MySessionRemote mySession = (MySessionRemote) ctx.lookup("stateless.MySessionRemote");
I have error
javax.naming.NamingException: Lookup failed for 'stateless.MySessionRemote' in SerialContext[myEnv={org.omg.CORBA.ORBInitialPort=3700, java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory, org.omg.CORBA.ORBInitialHost=localhost, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NameNotFoundException: stateless.MySessionRemote not found] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) at javax.naming.InitialContext.lookup(InitialContext.java:411) at entappclient.Main.main(Main.java:33) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:438) at org.glassfish.appclient.client.AppClientFacade.main(AppClientFacade.java:165)Caused by: javax.naming.NameNotFoundException: stateless.MySessionRemote not found at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:248) at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:215) at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77) at com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:144) at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:174) at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:528) at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:199) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1486) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:990) at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:214) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:742) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:539) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2324) at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497) at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
It works, instead of jndi.properties, if I use
@EJBprivate static MySessionRemote myS
The problem is, as far as I know, @EJB annotation is applicable when the Application Client resides in the same machine with the EJB.
What is/are my mistake/s?
12/23/12--06:44:
applications disappear after restart glassfish.
In the folder "avtodeploy" files are there, and the list of applications, they are not. And in the folder "jbi/service assembly" they are not too.
What is the probleme?
Thanks for any help.
p.s. glassfish 2.2
12/21/12--07:52:
On Thu, Dec 20, 2012 at 1:54 PM, Laird Nelson
& I received a couple of out-of-band replies that suggest that it is a known& problem that embedded GlassFish does not support more than one persistence& unit.
Can anyone confirm if this is indeed the case?&
C filed GLASSFISH-19477 ().
JIRA will not let me submit
email me if you need one.

我要回帖

更多关于 shutting down vm 的文章

 

随机推荐