Error running Weblogic: weblogic.Server

Hi there,

i´m having trouble deploying my application from IntelliJ into Weblogic. Currently i´m trying to deploy to weblogic 10.3.6 but i had the same problem also with 10.0.0.

IntelliJ keeps telling me that it has problems running the server, the message is the following:

Error running Weblogic: weblogic.Server

That´s it, no more details.

i tried googling this error but no results here.

Can anyone help me here?

Thanks,

sebastian.

7 comments
Comment actions Permalink

Hello,

There should be additional information in logs: Main menu -> Help -> Reveal Log in Explorer
Please, attach idea.log

Regards,
Michael

0
Comment actions Permalink

Hello, here´s the log:

2012-03-05 10:18:59,618 [253418057]   INFO - api.vfs.impl.local.FileWatcher - 29 paths checked, 0 mapped, 1 mks
2012-03-05 10:19:00,379 [253418818]   INFO - api.vfs.impl.local.FileWatcher - 18 paths checked, 0 mapped, 1 mks
2012-03-05 10:19:08,865 [253427304]   INFO - api.vfs.impl.local.FileWatcher - 20 paths checked, 0 mapped, 1 mks
2012-03-05 10:19:08,873 [253427312]   INFO -                  TestNG Runner - Create TestNG Template Configuration
2012-03-05 10:19:08,920 [253427359]   INFO - ellij.project.impl.ProjectImpl - 135 project components initialized in 93 ms
2012-03-05 10:19:08,944 [253427383]   INFO - .module.impl.ModuleManagerImpl - 4 modules loaded in 24 ms
2012-03-05 10:19:08,974 [253427413]   INFO - api.vfs.impl.local.FileWatcher - 27 paths checked, 0 mapped, 1 mks
2012-03-05 10:19:09,045 [253427484]   INFO - .roots.impl.DirectoryIndexImpl - Directory index initialized in 5 ms, indexed 1905 directories
2012-03-05 10:19:09,046 [253427485]   INFO - pl.PushedFilePropertiesUpdater - File properties pushed in 0 ms
2012-03-05 10:19:09,059 [253427498]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 4 ms
2012-03-05 10:19:09,059 [253427498]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2012-03-05 10:19:09,059 [253427498]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2012-03-05 10:19:10,099 [253428538]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 1284 ms
2012-03-05 10:24:32,383 [253750822]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 3 ms
2012-03-05 10:24:32,383 [253750822]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2012-03-05 10:24:32,383 [253750822]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2012-03-05 10:24:32,405 [253750844]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2012-03-05 10:24:32,510 [253750949]   INFO - lij.compiler.impl.CompilerUtil - Initial VFS refresh took 76 ms: 0 min 0sec
2012-03-05 10:24:32,529 [253750968]   INFO - lij.compiler.impl.CompilerUtil - Sync output directory took 18 ms: 0 min 0sec
2012-03-05 10:24:34,112 [253752551]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 0; warnings: 0 took 1707 ms: 0 min 1sec
2012-03-05 10:25:00,747 [253779186]   INFO - tion.impl.ExecutionManagerImpl - weblogic.Server
com.intellij.execution.ExecutionException: weblogic.Server
    at com.intellij.javaee.weblogic.runDebug.weblogicServerInstances.version9.Weblogic9AbstractInstance.<init>(Weblogic9AbstractInstance.java:97)
    at com.intellij.javaee.weblogic.runDebug.weblogicServerInstances.version9.Weblogic9LocalInstance.<init>(Weblogic9LocalInstance.java:20)
    at com.intellij.javaee.weblogic.runDebug.configuration.WeblogicModel.createServerInstance(WeblogicModel.java:119)
    at com.intellij.javaee.run.configuration.CommonStrategy.createServerInstance(CommonStrategy.java:615)
    at com.intellij.javaee.run.execution.ExecutionHelper.createJ2EEInstance(ExecutionHelper.java:59)
    at com.intellij.javaee.run.execution.ExecutionHelper.createServerInstance(ExecutionHelper.java:105)
    at com.intellij.javaee.run.execution.PatchedLocalState.execute(PatchedLocalState.java:71)
    at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:76)
    at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
    at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:156)
    at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:92)
    at com.intellij.openapi.project.DumbService$1.run(DumbService.java:75)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:694)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:416)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2012-03-05 10:29:07,912 [254026351]   INFO - tion.impl.ExecutionManagerImpl - weblogic.Server
com.intellij.execution.ExecutionException: weblogic.Server
    at com.intellij.javaee.weblogic.runDebug.weblogicServerInstances.version9.Weblogic9AbstractInstance.<init>(Weblogic9AbstractInstance.java:97)
    at com.intellij.javaee.weblogic.runDebug.weblogicServerInstances.version9.Weblogic9LocalInstance.<init>(Weblogic9LocalInstance.java:20)
    at com.intellij.javaee.weblogic.runDebug.configuration.WeblogicModel.createServerInstance(WeblogicModel.java:119)
    at com.intellij.javaee.run.configuration.CommonStrategy.createServerInstance(CommonStrategy.java:615)
    at com.intellij.javaee.run.execution.ExecutionHelper.createJ2EEInstance(ExecutionHelper.java:59)
    at com.intellij.javaee.run.execution.ExecutionHelper.createServerInstance(ExecutionHelper.java:105)
    at com.intellij.javaee.run.execution.PatchedLocalState.execute(PatchedLocalState.java:71)
    at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:76)
    at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
    at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:156)
    at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:92)
    at com.intellij.openapi.project.DumbService$1.run(DumbService.java:75)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:694)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:416)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

0
Comment actions Permalink

Hello,

The problem is that IDEA is unable to locate class 'weblogic.Server', which is contained in WebLogic installation in weblogic.jar.
The jar is normally added to IDEA application server libraries on server registration.

It looks like you have the jar file missing from the libraries. You may either add the jar file to application server libraries manually
or just re-register the whole application server in IDEA.

I've attached screenshot of how well-registered in IDEA WebLogic 10.3.6 should look like
(have used the WebLogic installation named "Oracle WebLogic Server 11gR1 (10.3.6) + Coherence - Package Installer",
and installed it to C:\j\as\WebLogic-Oracle-Middleware-10-3-6)

Regards,
Michael



Attachment(s):
WebLogic-app-server.png
0
Comment actions Permalink

Hello Michael,

thanks that did the job. Weblogic server is now starting, the only problem is it won´t deploy anything. It´s starting up and says "server started in running mode" but no deployment will happen.

I tried to add different atrifacts for deployment but neither will work.( see screenshot)

intellij-deploy.jpg

Also i noticed when i mark the EAR for deployment, intelliJ will give strange errors in the make window saying that it could not find certain files like :

Error copying 'C:\D\projects\RSP\rsp\rsp-web\target\rsp-web-1.0-SNAPSHOT\pocPage.xhtml' to 'C:\D\projects\RSP\rsp\rsp-ear\target\rsp-ear-1.0-SNAPSHOT\rsp-web-1.0-SNAPSHOT.war\pocPage.xhtml'.: C:\D\projects\RSP\rsp\rsp-ear\target\rsp-ear-1.0-SNAPSHOT\rsp-web-1.0-SNAPSHOT.war\pocPage.xhtml (System can´t find the resource)

It seems as it is trying to copy a file directly into a .war file...can this be correct?

Thanks a lot

best regards

sebastian.

0
Comment actions Permalink

What is the IDEA log content now? (on server started and no deploy performed)

0
Comment actions Permalink

Hello,

that depends, when i select an ear artifact for deployment, the log contains this:

2012-03-06 09:37:26,754 [77003795]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 55 ms
2012-03-06 09:37:26,754 [77003795]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 0 files to update
2012-03-06 09:37:26,754 [77003795]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 0 ms
2012-03-06 09:37:26,784 [77003825]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2012-03-06 09:37:26,875 [77003916]   INFO - lij.compiler.impl.CompilerUtil - Initial VFS refresh took 41 ms: 0 min 0sec
2012-03-06 09:37:29,370 [77006411]   INFO - lij.compiler.impl.CompilerUtil - Sync output directory took 17 ms: 0 min 0sec
2012-03-06 09:37:30,824 [77007865]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 0; warnings: 0 took 4040 ms: 0 min 4sec
2012-03-06 09:37:30,835 [77007876]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2012-03-06 09:37:31,108 [77008149]   INFO - iler.ArtifactsCompilerInstance - C:\D\projects\RSP\rsp\rsp-ear\target\rsp-ear-1.0-SNAPSHOT\rsp-business-1.0-SNAPSHOT.jar\rsp-sa-adapter-1.0-SNAPSHOT.jar (Das System kann den angegebenen Pfad nicht finden)
java.io.FileNotFoundException: C:\D\projects\RSP\rsp\rsp-ear\target\rsp-ear-1.0-SNAPSHOT\rsp-business-1.0-SNAPSHOT.jar\rsp-sa-adapter-1.0-SNAPSHOT.jar (Das System kann den angegebenen Pfad nicht finden)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
    at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:646)
    at com.intellij.openapi.util.io.FileUtil.copy(FileUtil.java:625)
    at com.intellij.openapi.util.io.FileUtil.rename(FileUtil.java:842)
    at com.intellij.compiler.impl.packagingCompiler.JarsBuilder.a(JarsBuilder.java:120)
    at com.intellij.compiler.impl.packagingCompiler.JarsBuilder.a(JarsBuilder.java:107)
    at com.intellij.compiler.impl.packagingCompiler.JarsBuilder.buildJars(JarsBuilder.java:81)
    at com.intellij.packaging.impl.compiler.ArtifactsCompilerInstance.a(ArtifactsCompilerInstance.java:242)
    at com.intellij.packaging.impl.compiler.ArtifactsCompilerInstance.access$1100(ArtifactsCompilerInstance.java:66)
    at com.intellij.packaging.impl.compiler.ArtifactsCompilerInstance$5.run(ArtifactsCompilerInstance.java:328)
    at com.intellij.compiler.impl.CompilerUtil.runInContext(CompilerUtil.java:225)
    at com.intellij.packaging.impl.compiler.ArtifactsCompilerInstance.processItems(ArtifactsCompilerInstance.java:326)
    at com.intellij.packaging.impl.compiler.ArtifactsCompilerInstance.processItems(ArtifactsCompilerInstance.java:66)
    at com.intellij.compiler.impl.GenericCompilerRunner.a(GenericCompilerRunner.java:250)
    at com.intellij.compiler.impl.GenericCompilerRunner.a(GenericCompilerRunner.java:156)
    at com.intellij.compiler.impl.GenericCompilerRunner.a(GenericCompilerRunner.java:96)
    at com.intellij.compiler.impl.GenericCompilerRunner.invokeCompilers(GenericCompilerRunner.java:72)
    at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:921)
    at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:677)
    at com.intellij.compiler.impl.CompileDriver.access$800(CompileDriver.java:105)
    at com.intellij.compiler.impl.CompileDriver$8.run(CompileDriver.java:617)
    at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:156)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:457)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:206)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$7.run(ProgressManagerImpl.java:366)
    at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:425)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:140)
2012-03-06 09:37:31,115 [77008156]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 23; warnings: 0 took 280 ms: 0 min 0sec


When i select the war and ejb artifacts without the ear the log entries are:
2012-03-06 09:40:41,425 [77198466]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 23; warnings: 0 took 330 ms: 0 min 0sec
2012-03-06 09:40:59,726 [77216767]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2012-03-06 09:40:59,963 [77217004]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 0; warnings: 0 took 237 ms: 0 min 0sec
2012-03-06 09:40:59,968 [77217009]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2012-03-06 09:41:00,088 [77217129]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 0; warnings: 0 took 120 ms: 0 min 0sec
2012-03-06 09:42:11,732 [77288773]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED
2012-03-06 09:42:12,007 [77289048]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED; Errors: 0; warnings: 0 took 275 ms: 0 min 0sec

But nothing will deployed either way

Thanks,

sebastian

0
Comment actions Permalink

IDEA is unable to connect to WebLogic for some reason. Could you provide more details on your environment:

- WebLogic run configuration in IDEA (screenshot)
- textual content of the Content tab of the running WebLogic run configuration (after server is started)
- WebLogic server log

Problem with your EAR make is not related to the connection problem and should be related to the way you build the artifact.
Do you have the EAR artifact described in Project structure or build with a script?

Regards,
Michael

0

Please sign in to leave a comment.