EAR exported from One Websphere instance to another failed to start - java

I have exported an EAR file from one IBM websphere environment (7.0) and installed in another environment. Though EAR file deploys without errors, it still fails to start.
Error message in admin client;
Application MyApplication did not start successfully on all of the servers in cluster CLUSTER001. Check log for details.
Below is the log;
WSVR0190I: Starting composition unit WebSphere:cuname=MyApplication in BLA WebSphere:blaname=MyApplication.
WSVR0200I: Starting application: MyApplication
WSVR0204I: Application: MyApplication Application build level: Unknown
WSVR0206E: Module, MyApplication.war, of application, MyApplication.ear/deployments/MyApplication, failed to start
WSVR0101W: An error occurred starting, MyApplication
WSVR0217I: Stopping application: MyApplication
WSVR0220I: Application stopped: MyApplication
WSVR0194E: Composition unit WebSphere:cuname=MyApplication in BLA WebSphere:blaname=MyApplication failed to start.
Thank you for any help in advance.

Actual error was found in a txt file mentioned in NodeName_exception.log file inside ../ffdc.
"com.ibm.ws.webcontainer.exception.WebAppHostNotFoundException: CLUSTER001_VH_MYAPPLICATION"
Although the source environment had a custom virtual host name, the destination environment did not have and was using "default_host".
Solution :
In admin console ;
Applications>Websphere Applications>Click problematic app>Virtual hosts>re select default_host as virtual host>hit OK and start your application.
Alternatively in EAR inside ../WEB-INF ibm-web-bnd.xmi is auto generated. Try to change the virtualHostName as "default_host" and try to deploy. This I haven't tried but worth checking.

Related

Application error and logs not loading, what steps to take?

I've been getting the following error page, when visiting my app:
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
However, heroku logs --tail does not return anything. If I go to the dashboard through web (https://dashboard.heroku.com/apps/app-name/logs), the logs window keeps loading but nothing is shown.
I have nothing to go on, and Heroku won't accept a ticket of a free app. Does anyone know any more steps I can take to trace the error?
Additional info:
The build logs all look fine:
BUILD SUCCESSFUL in 49s
5 actionable tasks: 5 executed
Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
Compressing...
Done: 85.2M
Launching...
Released v3
https://app-name.herokuapp.com/ deployed to Heroku
I am creating a spring Java API, it works fine when I try to run it locally. If I try to run it through $heroku local I do get an error:
[FAIL] No Procfile and no package.json file found in Current Directory - See run --help
I had same issue. I just added system.properties to root folder of spring app and this file contained 1 line:
java.runtime.version=11
Heroku procfile documentation.
Spring documentation for Heroku deployment

Connect Eclipse to Websphere Liberty in another computer

I had installed Websphere Liberty Runtime in a Windows 7 machine following the instructions here :
https://developer.ibm.com/wasdev/downloads/liberty-profile-using-non-eclipse-environments/
I had installed and configured the admin-center feature following these instructions :
http://www-01.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.core.doc/ae/twlp_ui_setup.html
I set two users : admin and nonadmin
I am able to connect to this server from Eclipse in another computer.
However, each time i try to deploy an application on this server, i get this error in the computer with Eclipse :
Publish HelloWorldApplication
OK
Failed to transfer application HelloWorldApplication
CWWKX0121E: Access denied to path C:/wlp/usr/servers/servername/apps/HelloWorldApplication.war.
Failed to synchronize server configuration.
CWWKX0121E: Access denied to path C:/wlp/usr/servers/servername/server.xml.
Deployment of application HelloWorldApplication failed.
And, in the server i got this :
[ERROR ] CWWKX7901E: The C:/wlp/usr/servers/servername/apps/HelloWorldApplication.war file system path is not valid.
Can anyone help me, please ?
We are more than one developer needing to work on this server.
Thanks in advance.
SJRM
How do you have your server.xml configured? Given the error you mention, I think it's missing the configuration for writing into the remote directories, which looks something like this:
<remoteFileAccess>
<writeDir>${writePath}</writeDir>
</remoteFileAccess>
You can define several write directories and each one can refer to variables or absolute paths, for example:
<remoteFileAccess>
<writeDir>${wlp.user.dir}</writeDir>
</remoteFileAccess>
You can obtain the basic configuration for remote administration by executing this command on you Liberty profile bin directory:
configUtility install remoteAdministration
For reference see:
http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/t_creating_remote_server.html?cp=SSEQTP_8.5.5%2F1-3-11-0-2-3 for setting up a remote server,
http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_command_configutil.html%23rwlp_command_configutil?cp=SSEQTP_8.5.5%2F1-3-11-0-3-2-1-1&lang=en for reading about the configUtility and
http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/rwlp_dirs.html?cp=SSEQTP_8.5.5%2F1-3-11-0-2-0&lang=en for a list of Liberty profile properties and their corresponding directories.

error in deploying my application in tomcat 8.0

I have my application as .war file and I want to run it in my tomcat server but it is giving me error when I try to start my application after deploy or uploading war file on server. it gives error as:
FAIL - Application at context path /jauction could not be started
FAIL - Encountered exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/jauction]]
while as other applications are running smoothly.
As pointed out by #Jens, you should look at logs/catalina.out to see more details about what's wrong.
You might also want to check WEB-INF/web.xml and verify the servlet mapping.

Jenkins: Deploying Job to Tomcat server

I used the following tutorial to Deploy a Jenkins Job to Tomcat server:
http://macgyverdev.blogspot.nl/2014/02/how-to-make-jenkins-install-packaged.html.
The build finishes succesvol except it doesn't actually deploy the job to tomcat.
I don't understand what has to be filled in the textboxes "War/Ear file" and "Context Path"
This is what i have now:
Console output after build says "Finished: Succes" but doesn't actually include the following lines:
Deploying /home/johan/.jenkins/jobs/UnitConversion/workspace/target/Unitconversion.war to container Tomcat 7.x Remote
Redeploying [/home/johan/.jenkins/jobs/UnitConversion/workspace/target/Unitconversion.war]
Undeploying [/home/johan/.jenkins/jobs/UnitConversion/workspace/target/Unitconversion.war]
Deploying [/home/johan/.jenkins/jobs/UnitConversion/workspace/target/Unitconversion.war]
What am i doing wrong?

Starting tomcat Error code 4 : Failed

I'm creating multiple instances of tomcat using opscode chef cookbook. I see that tomcat.conf was not written into my instance of tomcat but is only in the base instance. I created a softlink to the base instance tomcat.conf file. When I tried to start the server, I get the following error with no logs. There are no logs in /var/log or tomcat folder. Please provide hints on how to debug.
[root#centosclient2 ~]# service tomcat6-obi_sandbox_tomcat start
Starting tomcat6-obi_sandbox_tomcat: Error code 4 [FAILED]
I saw below in /var/log/tomcat6-obi_sandbox_tomcat-initd.log
-sh: /usr/sbin/tomcat6-obi_sandbox_tomcat: No such file or directory
Apparently there is no such file or directory.
I have run into error code 4 a few times, and the problem was that disk was full.

Categories

Resources