Problem Starting WebSphere Liberty App
Answered
Windows 10, IntelliJ 2022.1, Websphere Liberty Profile 22.0.0.1.
When trying to start the Websphere Liberty Profile (WSLP) from IntelliJ, I am getting this error:
[AUDIT ] CWWKZ0017E: It was not possible to infer the application type for application AdvClientSearchWeb from the location C:/Source/acswebliberty/out/artifacts/AdvClientSearchWeb.
[AUDIT ] CWWKZ0017E: It was not possible to infer the application type for application out from the location C:/Source/acswebliberty/out.
[err] Exception in thread "Default Executor-thread-5"
[err] java.lang.NullPointerException
[err] at java.util.Hashtable.put(Hashtable.java:506)
[err] at com.ibm.ws.app.manager.internal.ApplicationConfig.getServiceProperties(ApplicationConfig.java:162)
[err] at com.ibm.ws.app.manager.internal.ApplicationConfigurator$NamedApplication.register(ApplicationConfigurator.java:220)
[err] at com.ibm.ws.app.manager.internal.ApplicationConfigurator$NamedApplication.switchApplicationState(ApplicationConfigurator.java:271)
[err] at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1270)
[err] at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.performAction(ApplicationStateMachineImpl.java:1197)
[err] at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:905)
[err] at com.ibm.ws.threading.internal.ExecutorServiceImpl$RunnableWrapper.run(ExecutorServiceImpl.java:238)
This is the application setting from my WSLP server.xml:
<application id="AdvClientSearchWeb:war exploded" location="C:/Source/acswebliberty/out/artifacts/AdvClientSearchWeb_war_exploded" name="AdvClientSearchWeb:war exploded" type="Web Application: Exploded" >
<classLoader apiTypeVisbility="spec" commonLibraryRef="global" />
</application>
This is my Project Structure -> Project Settings -> Artifacts settings:

Any ideas on what I am missing?
Please sign in to leave a comment.
Please see https://intellij-support.jetbrains.com/hc/en-us/community/posts/206805375/comments/207503839.
Serge, thanks for the quick reply. I see the error message from the post in the above link is nearly identical to the error message that I am receiving. However, I do not see an obvious solution.
Please provide a sample project to reproduce the issue. You can do it at https://youtrack.jetbrains.com/newIssue?project=IDEA where it's more convenient to attach files.