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 219795 - Weblogic deployment error, java.io.FileNotFoundException (Not a directory)
Summary: Weblogic deployment error, java.io.FileNotFoundException (Not a directory)
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.2.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 210857 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-10 08:01 UTC by heidarzadeh
Modified: 2012-10-17 19:07 UTC (History)
3 users (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 heidarzadeh 2012-10-10 08:01:38 UTC
I have two ear files, 

One of them has two ejb-jars and one war file, when I build and deploy it for the first time it works, but then, when I build and deploy it again I get the following error : 

Initial deploying control-server to /MyProjectDirectory/target/wldeploy/com.be.ram_control-server_ear_1.0-SNAPSHOT
Error during incremental deploy: java.io.FileNotFoundException: /MyProjectDirectory/target/wldeploy/com.be.ram_control-server_ear_1.0-SNAPSHOT/control-web-1.0-SNAPSHOT.war/login.xhtml (Not a directory)
Deployment error: Deployment failed: java.io.FileNotFoundException: /MyProjectDirectory/target/wldeploy/com.be.ram_control-server_ear_1.0-SNAPSHOT/control-web-1.0-SNAPSHOT.war/login.xhtml (Not a directory)
See the server log for details.
	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
	at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:178)
	at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:130)
	at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:212)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

The other ear file has just one ejb-jar, and like the first one when I build and deploy it for the first time it works, but then, when I build and deploy it again I get the following error : 
Initial deploying ramon-service-ear to /MyProjectDirectory/target/wldeploy/com.behin.ramon.service_ramon-service-ear_ear_1.2.0-SNAPSHOT
Error during incremental deploy: java.io.FileNotFoundException: /MyProjectDirectory/target/wldeploy/com.be.ram.service_ear_1.2.0-SNAPSHOT/ram-service-ejb-1.2.0-SNAPSHOT.jar/.netbeans_automatic_build (Not a directory)
Deployment error: Deployment failed: java.io.FileNotFoundException: /MyProjectDirectory/target/wldeploy/com.be.ram.service_ear_1.2.0-SNAPSHOT/ram-service-ejb-1.2.0-SNAPSHOT.jar/.netbeans_automatic_build (Not a directory)
See the server log for details.
	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
	at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:178)
	at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:130)
	at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:212)
	at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
After build, I checked ram-service-ejb-1.2.0-SNAPSHOT.jar file but could not find ".netbeans_automatic_build" inside it! I think netbeans itself is adding this file when it wants to deploy it to weblogic!

It seems that generally when I have a file in the root of my jar or ear or war file, weblogic is complaining about that at deploy time! but this is true just when using netbeans 7.2.1 to deploy to weblogic.
For both of these ear files, when I deploy them with weblogic console or NetBeans 7.1 , it works like a charm! And because of that i'm pretty sure that the problem is from netbeans 7.2.1 side!
I use latest development version of weblogic which is 12.1.1 and maven 3 to build the ear files.
Comment 1 Jiri Skrivanek 2012-10-10 09:23:55 UTC
Which version of NetBeans do you use? Please, look at Help->About. I reproduced it with the following steps:
- register WebLogic 12.1.1
- create Maven EAR project
- add session bean with business method to -ejb project
- build main project with dependencies
- run -ear project

Product Version: NetBeans IDE Dev (Build 201210100002)
Java: 1.7.0_07; Java HotSpot(TM) 64-Bit Server VM 23.3-b01
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 2 Petr Hejl 2012-10-11 08:36:06 UTC
Seems to be introduced by incremental deployment for EAR.
Comment 3 Martin Janicek 2012-10-11 13:12:15 UTC
*** Bug 210857 has been marked as a duplicate of this bug. ***
Comment 4 Petr Hejl 2012-10-11 13:14:13 UTC
Fixed in web-main 3d8968626c35. See related bug #219916.
Comment 5 Quality Engineering 2012-10-12 02:03:31 UTC
Integrated into 'main-golden', will be available in build *201210120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/3d8968626c35
User: Petr Hejl <phejl@netbeans.org>
Log: #219795 - Weblogic deployment error, java.io.FileNotFoundException (Not a directory)
Comment 6 Martin Janicek 2012-10-12 10:51:18 UTC
*** Bug 210857 has been marked as a duplicate of this bug. ***
Comment 7 dvazquez1027 2012-10-17 19:07:40 UTC
Is there any chance this could be fixed with an update to 7.2?  Fresh 7.2 install works fine until latest set of updates are applied.  Can we have an update to the update to undo whatever 7.2.1 broke?  Is the fix at least in the 7.3 beta yet?