This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 194966 - Datasources could not be deployed
Summary: Datasources could not be deployed
Status: RESOLVED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.0
Hardware: PC Other
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 17:32 UTC by Sergey Petrov
Modified: 2011-02-06 23:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2011-02-01 17:32:30 UTC
Create web project and register 10.3.4 (may have sense or not, use Kodo jpa provideras default in server configuration).

Invoke new persistence unit wizard, create new datasource 'ddd' in the wizard and cancel (or finish).
Try to deploy the application, have:

Deployment error:
One or more datasources could not be deployed. Check project configuration.
See the server log for details.
	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:209)
	at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
Comment 1 Sergey Petrov 2011-02-01 17:33:53 UTC
I'm not suree I'm able to deploy anything with new datasource > p2
Comment 2 Petr Hejl 2011-02-01 19:03:27 UTC
Please attach also the server log.

Please note that WebLogic is production centric server and it does not forgive anything. My guess - you are trying to deploy the datasource, but the DB is not running. Because of that WebLogic can't connect to DB and the deployment of datasource fails.

Anything like this is server log?
<Feb 1, 2011 7:57:52 PM CET> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "ddd": java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused.>
Comment 3 Sergey Petrov 2011-02-01 19:18:23 UTC
will test.
but if deployment may fail if db isn't started it seems good to handle this case on nb side.
Comment 4 Sergey Petrov 2011-02-01 22:25:29 UTC
can't reproduce after rebuild, will check for details if will see the issue again. also seems to be ok without started db.