problem with building artifacts to autodeployment in weblogic

Hi guys,

I'm working on java ee project and I configured run configuration to build artifacts and than deploy them to weblogic. Unfortunately when intellij start building artifacts is unable to find ejb-jar.xml in target folder.
logs :
Information:Internal caches are corrupted or have outdated format, forcing project rebuild: java.io.FileNotFoundException: /home/arek/dev/***/integracja.***/integracja.***/***-ejb/target/***-ejb-2.2.2-SNAPSHOT-client.jar/META-INF/ejb-jar.xml (Not a directory)
Information:Using javac 1.8.0_65 to compile java sources
Information:java: Hibernate JPA 2 Static-Metamodel Generator 1.2.0.Final
Information:05.01.16 11:42 - Compilation completed with 1 error and 2 warnings in 5s 391ms
Error:Internal error: (java.io.FileNotFoundException) /home/arek/dev/***/integracja.***/integracja.***/***-ejb/target/***-ejb-2.2.2-SNAPSHOT-client.jar/META-INF/ejb-jar.xml (Not a directory)
java.io.FileNotFoundException: /home/arek/dev/***/integracja.***/integracja.cbe/***-ejb/target/***-ejb-2.2.2-SNAPSHOT-client.jar/META-INF/ejb-jar.xml (Not a directory)
 at java.io.FileOutputStream.open0(Native Method)
 at java.io.FileOutputStream.open(FileOutputStream.java:270)
 at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
 at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
 at com.intellij.openapi.util.io.FileUtil.openOutputStream(FileUtil.java:512)
 at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:464)
 at com.intellij.openapi.util.io.FileUtil.copyContent(FileUtil.java:457)
 at org.jetbrains.jps.incremental.artifacts.instructions.FilterCopyHandler.copyFile(FilterCopyHandler.java:40)
 at org.jetbrains.jps.incremental.artifacts.instructions.FileBasedArtifactRootDescriptor.copyFromRoot(FileBasedArtifactRootDescriptor.java:100)
 at org.jetbrains.jps.incremental.artifacts.IncArtifactBuilder.build(IncArtifactBuilder.java:150)
 at org.jetbrains.jps.incremental.artifacts.IncArtifactBuilder.build(IncArtifactBuilder.java:50)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildTarget(IncProjectBuilder.java:934)
 at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:915)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:976)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:870)
 at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:695)
 at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:386)
 at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:193)
 at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:137)
 at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:294)
 at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
 at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:232)
 at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:42)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Please perform full project rebuild (Build | Rebuild Project)

In run configuration is warning "WebLogic EJB Module Deployment Descriptor" and when I tried to resolving a problem I found already defined EJB descriptor and added WebLogic EJB Module Deployment Descriptor but I have the same exception.
I don't understant why intellij trying to find ejb-jar.xml infolder with jar file and where I can find configuration to change it.

Best Regards
Arek

1 comment
Comment actions Permalink
Unable to reproduce.
Please provide a minimal test project with the issue reproducable or at least the screenshot of you artifact structure (in the Project Structure dialog).
0

Please sign in to leave a comment.