Hi All,
I am getting the following error message pop up every time Glassfish v2 is started from within Netbeans:
[b]The Sun Java System Application Server could not start.
More information about the cause is in the Server log file.
Possible reasons include:
- IDE timeout: refresh the server node to see if it's runnint now.
- Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
- Incorrect server configuration (domain.xml to be corrected manually)
- Corrupted Deployed Applications preventing the server to start. (This can be seen in the server.log file. In
this case, domain.xml needs to be modified).
- Invalid installation location.[/b]
This issue has surfaced since adding JDBC Resource - MySQLDB and Connection Pools - mysqlPool using Glassfish Admin Console which updated the C:\Program Files\glassfish-v2ur2\domains\domain1\config\domain.xml. The
<resources>
<jdbc-resource enabled="true" jndi-name="MySQLDB" object-type="user" pool-name="mysqlPool"/>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="mysqlPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="URL" value="jdbc:mysql://localhost:3306/titandb"/>
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
<property name="Password" value="xxxxxxx"/>
<property name="portNumber" value="3306"/>
<property name="databaseName" value="titandb"/>
<property name="serverName" value="localhost"/>
<property name="User" value="glassfishuser"/>
</jdbc-connection-pool>
The content of sun-resources.xml are as follows:
<resources>
<jdbc-resource enabled="true" jndi-name="MySQLDB" object-type="user" pool-name="mysqlPool"/>
<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="true" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="32" max-wait-time-in-millis="60000" name="mysqlPool" non-transactional-connections="false" pool-resize-quantity="2" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="8" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
<property name="databaseName" value="titandb"/>
<property name="serverName" value="localhost"/>
<property name="portNumber" value="3306"/>
<property name="User" value="glassfishuser"/>
<property name="Password" value="xxxxxxx"/>
<property name="URL" value="jdbc:mysql://localhost:3306/titandb"/>
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
</jdbc-connection-pool>
</resources>
There are no warning or error message in C:\Program Files\glassfish-v2ur2\domains\domain1\Log\server.log file and the application server did come up. In fact, I can and still able to carry out deployments (EnterpriseApp3ex41-GlassFish-MySQL) and entity persistent update to MySQL. Nevertheless, the following error messages did eventually showed up in server log:
[#|2008-08-27T19:23:18.078-0430|WARNING|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=15;_ThreadName=httpWorkerThread-4848-0;_RequestID=ea53dd52-2327-4bb6-b809-ec52f47bbfa2;|Error attempting to process extensions from the manifest of JAR file C:\Documents and Settings\Jack\EnterpriseApp3ex41-GlassFish-MySQL\dist\gfdeploy\EnterpriseApp3ex41-GlassFish-MySQL-ejb.jar; ignoring it and continuing
java.io.FileNotFoundException: C:\Documents and Settings\Jack\EnterpriseApp3ex41-GlassFish-MySQL\dist\gfdeploy\EnterpriseApp3ex41-GlassFish-MySQL-ejb.jar (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.jar.JarFile.<init>(JarFile.java:133)
at java.util.jar.JarFile.<init>(JarFile.java:97)
at com.sun.enterprise.appclient.jws.ExtensionFileManager.findExtensionTransitiveClosure(ExtensionFileManager.java:240)
at com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo.findExtensions(AppclientJWSSupportInfo.java:1543)
at com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo.prepareAppclient(AppclientJWSSupportInfo.java:1384)
at com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo.prepareNestedAppclient(AppclientJWSSupportInfo.java:1495)
at com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo.prepareApplication(AppclientJWSSupportInfo.java:1244)
at com.sun.enterprise.appclient.jws.AppclientJWSSupportInfo.startJWSServicesForApplication(AppclientJWSSupportInfo.java:475)
I am wondering whether this issue is related to the Netbeans EnterpriseApp3ex41-GlassFish-MySQL EAR project that was originally created on another PC under Netbeans project by another user (C:\Document Settings\Sally\EnterpriseApp3ex41-GlassFish-MySQL). What needs to be updated in this project to replaced Sally with Jack so that Ant could locate the correct project path?
Removing all .netbeans folders in HOME (C:\Document Settings\Jack) folder did not resolve this issue.
I am running Java jdk1.6.0_06, Glassfish v2ur2, Netbeans 6.1, MySQL 5.0 on Windows XP platform.
Thanks in advance,
Jack
[Message sent by forum member 'htran_888' (htran_888)]
http://forums.java.net/jive/thread.jspa?messageID=295824