error in deploying my application in tomcat 8.0 - java

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.

Related

error resolving localhost while running java servlets in eclipse's browser

I am new to java servlets. I have installed apache-tomcat-9.0.0.M21.
When I run the project containing servlet in eclipse browser, sometimes I get the error-
Error resolving 'localhost': Name or service not known.
Other times the error is -
Error resolving 'localhost' : Temporary failure in name resolution.
This project runs fine in my web browser.
Also, after I add <servlet>...</servlet> and <servlet-mapping>...<servlet-mapping> in web.xml, I get the error - Server Tomcat v9.0 Server at localhost failed to start.
One more thing, I use Ubuntu operating system (if it has to do something with the question).
Please help. I googled for the solution but I am not able to resolve the error.
Try adding the below to your /etc/hosts file.
127.0.0.1 localhost

EAR exported from One Websphere instance to another failed to start

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.

java.io.IOException: [DeploymentService:290066]Error occurred while downloading files from Administration Server for deployment request

I am getting the below error while deploying the ear in the weblogic server through jenkins. Ear deployment is getting stuck showing "deploy Running".
java.io.IOException: [DeploymentService:290066]Error occurred while downloading files from Administration Server for deployment request "1,458,644,837,675". Underlying error is: "null"
at weblogic.deploy.service.datatransferhandlers.HttpDataTransferHandler.getDataAsStream(HttpDataTransferHandler.java:86)
at weblogic.deploy.service.datatransferhandlers.DataHandlerManager$RemoteDataTransferHandler.getDataAsStream(DataHandlerManager.java:153)
at weblogic.deploy.internal.targetserver.datamanagement.AppDataUpdate.doDownload(AppDataUpdate.java:39)
at weblogic.deploy.internal.targetserver.datamanagement.DataUpdate.download(DataUpdate.java:56)
at weblogic.deploy.internal.targetserver.datamanagement.Data.prepareDataUpdate(Data.java:97)
at weblogic.deploy.internal.targetserver.BasicDeployment.prepareDataUpdate(BasicDeployment.java:694)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepareDataUpdate(AbstractOperation.java:913)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.stageFilesFromAdminServer(AbstractOperation.java:276)
at weblogic.deploy.internal.targetserver.DeploymentManager.createOperations(DeploymentManager.java:1409)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleUpdateDeploymentContext(DeploymentManager.java:162)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.updateDeploymentContext(DeploymentServiceDispatcher.java:155)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doUpdateDeploymentContextCallback(DeploymentReceiverCallbackDeliverer.java:147)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.updateDeploymentContext(DeploymentReceiverCallbackDeliverer.java:28)
at weblogic.deploy.service.internal.statemachines.targetserver.ReceivedPrepare.callDeploymentReceivers(ReceivedPrepare.java:203)
at weblogic.deploy.service.internal.statemachines.targetserver.ReceivedPrepare.handlePrepare(ReceivedPrepare.java:112)
at weblogic.deploy.service.internal.statemachines.targetserver.ReceivedPrepare.receivedPrepare(ReceivedPrepare.java:52)
at weblogic.deploy.service.internal.targetserver.TargetRequestImpl.run(TargetRequestImpl.java:211)
at weblogic.deploy.service.internal.transport.CommonMessageReceiver$1.run(CommonMessageReceiver.java:457)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
We had almost the same error and after a brief investigation found out our newly created server doesn't have every auth it needed. I know it's a bit old thread but it might help to somebody.
check the permission inside tmp folder of admin and managed server where code is deployed. ownership should be with the same id with which code is getting deployed.

deployment of tomcat gives fail to run error

When I try to run Tomcat through Netbeans I get:
Deployment error: Starting of Tomcat failed,
/Users/Dropbox/apache-tomcat-8.0.23/bin/catalina.sh and related
scripts are executable.
the line the error directs me to is :
< nbdeploy clientUrlPart="${client.urlPart}" debugmode="false"
forceRedeploy="${forceRedeploy}"/>
when i run this code with it broken up the error is on forceRedeploy="${forceRedeploy}"
Catalina.sh is in that file location. I do not know how to check if it is executable. I was working earlier, then it stopped working, but I'm not sure when or what i changed.
Your server is not getting deployed and localhost isn't running.So,try to attach the server again to the application while running the project. Quite the same problem occurred to me while I was working with Tomcat in Eclipse.
Hope you find your answer here.

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?

Categories

Resources