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 185441 - Driver deployment fails for the first time
Summary: Driver deployment fails for the first time
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 14:41 UTC by Petr Jiricka
Modified: 2010-05-10 09:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Error output from the build script and the server log (4.03 KB, text/plain)
2010-05-04 14:41 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2010-05-04 14:41:10 UTC
Created attachment 98436 [details]
Error output from the build script and the server log

1. Create a web application that uses a new datasource that uses a driver that is not yet on the server
2. Deploy the application 

The IDE tries to deploy the app with the datasource and the driver. The driver is successfully copied to the server, but the datasource deployment code does not see it and fails. See the attached error output.

The workaround is to restart the server, then it works.
Comment 1 Petr Hejl 2010-05-05 15:42:25 UTC
Fixed in web-main 58a6f3403704.
Comment 2 Petr Jiricka 2010-05-06 15:19:15 UTC
I am afraid this did not help for me - still getting the same error in web-main 3174 build.
Comment 3 Petr Hejl 2010-05-06 19:10:42 UTC
Quite strange looks like IDE thinks driver is already there...

Anything in the IDE log? Is the case reproducible?

For me the log looks like this:
...
Building jar: /home/sickboy/NetBeansProjects/WebApplication9/dist/WebApplication9.war
Checking data source definitions for missing JDBC drivers...
JDBC driver deployment completed.
Distributing /home/sickboy/NetBeansProjects/WebApplication9/dist/WebApplication9.war to [examplesServer/server, WseeJMSServer/JMS server, ReliableWseeSAFAgent/SAF agent, examplesJMSServer/JMS server]
Deploying /home/sickboy/NetBeansProjects/WebApplication9/dist/WebApplication9.war
Deployment completed.
...

Can you retest with empty your_domain/lib directory?
Comment 4 Petr Hejl 2010-05-06 19:43:41 UTC
Ok, now I have at least one reproducible use case:
1) weblogic 10.3.3 zip
2) empty domain/lib
3) no data sources and applications deployed on server
4) server is stopped
5) run web app with generated "entity from database" classes (glassfish bundled sample derby DB)
Comment 5 Petr Hejl 2010-05-07 17:00:09 UTC
Should work - at leas for the case I was able to reproduce.

web-main 5f5067612d74.
Comment 6 Petr Hejl 2010-05-07 20:10:51 UTC
One more patch to fix the issue properly - web-main 786e40c47755.
Comment 7 Quality Engineering 2010-05-10 09:24:00 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: