Weblogic cannot deploy EAR due to appmerge failed - java

I would like to deploy EAR file to weblogic.
The original EAR was with log4j version 1, however now we are trying to upgrade it on higher version 2 due to vulnerability.
The original EAR can be deployed on weblogic with success.
But the fixed EAR with log4j2 (used via log4j bridge) cannot be deployed. There is below error occured.
Please any idea? :/ Thanks
Message icon - Error Unable to access the selected application.
Message icon - Error java.io.IOException
Message icon - Error weblogic.utils.compiler.ToolFailureException
In console there is error message like this:
<Error> <J2EE> <BEA-160228> <AppMerge failed to merge your application. If you are running AppMerge on the command-line, merge again with the -verbose option for more details. See the error message(s) below.>
EDIT:
I have tried to change attributes by updating web.xml schema from 2.3 to 3.1 and using metadata-complete=true. The deployment was fine :) however there was some next issue inside of weblogic - app is not in Active state. There in logs is something with weblogic.application.ModuleException.
Resource: Weblogic: AppMerge failed to merge your application after Java 8 migration

Related

NoTargetForURIException While deploying application on Websphere with IntelliJ

i tried many times to deploy my jee application using intelliJ on Websphere 8.5 the compilation goes well untill i get this error on browser :
Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target servlet configured for uri: /RootServlet
everything is well configured on web.xml, welcomefile - servlet name - and servlet mapping
Is there anyone who can help me with this issue ?
Ps : i'm using websphere 8.5.5.11 Developer
Well, i figured it out: localhost:8080/myappname_war_exploded, and in my application.xml in my WAR I had myappname, so just deleting the _war_exploded resolved the issue.

Could not load resource "WEB-INF/ibm-web-bnd.xml" in archive "xxxx"

I was trying to execute ear in WebSphere server it gives the error as"
The exception com.ibm.websphere.management.application.client.
AppDeploymentException: [Root exception is
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.ResourceLoadException:
IWAE0007E Could not load resource "WEB-INF/ibm-web-bnd.xml"
in archive "GLOBISWeb.war"] occurred. Check log for details
My ear already have this ibm-web-bnd.xml
This might help you:
The web application will gets installed on WebSphere Application
Server Versions 5.0 and 5.1, but fails on a WebSphere Application
Server Version 6.0 or later server. The application fails to install
because the WEB-INF/ibm-web-bnd.xmi file contains xmi tags that
the underlying WCCM model no longer recognizes.
To work around this problem, remove the xmi:type=EJBLocalRef tag
from the ibm-web-bnd.xmi file. Removing this tag does not affect the
application because the tag was previously used for matching the cross
document reference type. The application now works for the WebSphere
Application Server Version 5.1 and later releases.
For more details regarding the issue visit link and review under the section Cannot load resource WEB-INF/ibm-web-bnd.xmi in archive file

FAIL - Deployed application at context path /RxCircle but context failed to start

FAIL - Deployed application at context path /RxCircle but context failed to start
The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:173)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:125)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:202)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
i am using tomcat 6
netbeans 7.0
java 6
i am getting this error when i am running my application in netbeans..
I suspect that either (1) Your web.xml is missing, (2) your applicationContext is malformed or (3) your versions are not playing nicely together.
Since you are using Netbeans you can view the Server Log by doing this:
Open the Services window (if it is not open go to: Window > Services)
Right-click on the Tomcat Server and select View Server Log.
Now you can see the actual exception that is causing Tomcat not to deploy your war.
This is a very generic error message and can be due to any reason like wrong servlet filter defined or malformed application context file.
To understand fully you need to get more logging details from tomcat.
So set the logging level to debug in tomcat and then start the tomcat.
Below url you may refer for further details
http://tomcat.apache.org/tomcat-6.0-doc/logging.html
How to set level logging to DEBUG in Tomcat?
Hopefully you will get more details about the deployment error root cause.
Try stopping the Tomcat server so as to allow Netbeans to run it. If the server is already running when Netbeans tries to deploy an app Netbeans will display the delopy failed message.
I had the same issue. I was using Java 8, Tomcat 8, NetBeans 8.1.
What I did was, I manually replaced:
1. nbproject/build-impl.xml
2. web/WEB-INF/web.xml
with a previous version of the files. Please make sure to have backups.
I have faced same issue
I searched lot of solutions but not worked
If you are facing the same problem then the solution is
First you have backup your web.xml code file from your
project NetBeanss
Now delete web.xml from project
Now right click on web-inf file chose web after that chose deployment descriptor
After that
Now you can run your prj check your solution is solve as context will run on localhost server
Afte thaer will some error because we can't save our servlet file link so do it
Run it
Now you will see your problem solve
It's worked for.me

Why does Tomcat give a 404 error message even though the project is there?

I am trying to run a project which has been already developed on a friend's computer. Although I did every configuration correctly I am getting The requested resource is not available message from tomcat when I try to load it.
Tomcat is running correctly.
This is the way I tried to run the project.
Configured everything, started the server, Deployed the project.
this is my build.properties file.
# Ant properties for building the STBSPro
appserver.home=C:\apache-tomcat-6.0.41
# for Tomcat 5 use $appserver.home}/server/lib
# for Tomcat 6 use $appserver.home}/lib
appserver.lib=${appserver.home}/lib
#appserver.lib=C:\apache-tomcat-7.0.54\lib
deploy.path=${appserver.home}/webapps
tomcat.manager.url=http://localhost:8090/manager/html
tomcat.manager.username=user
tomcat.manager.password=password
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/cashierdb
db.user=root
db.pw=root
I am running the server outside, server is not installed into Eclipse.(I use Spring Tool Suite)
in my server.xml file I changed the port to 8090.
in here, Is my tomcat.manager.url correct?
Do I have any other configurations to edit in order to run the project?
My server log does not give a single message in it.

JDeveloper Cannot run application due to error deploying to IntegratedWebLogicServer

I have a simple Fusion Web Application program that I could run my simple application on the weblogic server before, but now when I try to run the JSF page I get these errors:
Deployment cancelled.
---- Deployment incomplete ----.
Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application MyFirstApplication due to error deploying to IntegratedWebLogicServer.
How can I fix this problem?
The following worked for me:
Close Jdeveloper application.
Delete systemXX.x.x.x.x directory.
Restart Jdeveloper and integrated weblogic server.
I also faced the same issue but after deleting system directory, my server started successfully.
the steps of running an application on weblogic server (or any other java server) consists of the following 4 steps:
Compilation and building
Starting the server
Deploying the fusion web application
Running the application
Errors could happen in any of the steps, and would cause obstacles to move to the next steps.
Your problem seems to be in the deployment phase, so the next step which is the running of the application is stopped from being executed.
It is worth to mention that your savior is the logs.
So you need to look into the deployment logs where it would clearly show the fault and the exception from not being deployed.
I resolved it.
Please Follow These Steps :
Right Click On The Model ;
Project Properties...
Select In Left Page; "JAVA EE Application"
Insert In Java Web Application Name: XXXApplication-XXXModel-webapp (XXX is Name Of Project )
Insert Into Java EE Webcontent Root : XXXApplication-XXXModel-context-root
I'm on JDeveloper 11g Release 2.
The following worked for me:
At the application menu bar - click on Run option.
Click on Start Server Instance - IntegratedWebLogicServer (in my case)
Wait for Server to fully start.
Locate Projects box/section/tree structure, locate your project name. Right Click.
Select Deploy, (create a deployment profile if required), to open the deployment wizard.
In the deployment wizard, select Deploy to Application Server, click Next.
In my case, I saw the IntegratedWebLogicServer instance in the following list, I selected it, and continue/finish with the deployment.
I strongly believe this is related to permissions.
I was able to run and deploy my applications to the default Web Logic server until I had more restrictions in my Windows machine - for example I was no longer a local administrator.
Hope this helps.

Categories

Resources