I have Glassfish 4.1 and Eclipse Luna installed on Ubuntu. When I tried to run a simple web application (jsp + servlet + java bean) I`ve received the following error:
Publishing to Glassfish 4 at localhost[domain1].. has encountered a
problem.
cannot Deploy mvcprj1 deploy is failing=Application with
name [mvcprj1] is not deployed
Nothing is appearing neither in the glassfish server log or in the eclipse console.
I had same deployment issue (eclipse Lune/Glassfish 4.1) and it was resolved thanks to Marvin's feedback.
You can find the "Use JAR archives for deployment" by:
right click on glassfish from eclipse server tab. Then, select Monitoring >Properties > Glassfish in new windows > Use JAR archives for deployment.
Then, the miracle occurs...
Try the following steps:
right click on glassfish server
click on properties
then you will get 3 options(general,glassfish,monitoring) at the left side of that box.
click on glassfish
click that checkbox "Use JAR archives for depolyment". Previously it was unchecked. That's why I was getting issue.
I have deleted the Glassfish server instance in eclipse and recreated it to solve this problem.
I believe, that occurs, when one has not closed the "Browser Page" in Eclipse, after he had tried out the same application previous time. After closing all open "Browser Pages" of this application in Eclipse, the deployment is possible again.
Related
I need help on this. If I deploy the code manually application is reachable, endpoints working fine, but throws 404 when I deploy from eclipse. I changed property of tomcat from workspace metadata to /servers tomcat v8.0, changed the server location to "Use Tomcat Installation" on server overview. I even tried with copying ROOT folder from tomcat installation folder/webapps to wtpwebapps though it existed there.
Donno what else I can do. I can see server welcome page. I can access service endpoints when I manually deploy in same server but not after publish from tomcat. I seek some help on it.
Try this,
Project: Properties-> Java Build Path-> Add Library -> Select "Server Runtime" from the list-> Next->Select "Apache Tomcat"-> Finish
I'm trying to add a new tomcat server in eclipse. However, when I'm defining a new server, the interface seems abnormal(the icons are all red):
what's more, after I click 'Next', there is no page telling me to select Tomcat installation directory.
After I click on finish, there is a problem pop up and I cannot start the server:
Could anyone tell me what's wrong with my eclipse and what should I do? Thank you!
my environment:
eclipseEE: neon.2
os: macOS Sierra
tomcat: apache-tomcat-8.0.41
Close Eclipse ide
Go to {workspace-directory}/.metadata/.plugins/
Delete the following folders:
org.eclipse.wst.server.core.prefs
org.eclipse.jst.server.tomcat.core.prefs
org.eclipse.core.runtime/.settings
Open Eclipse ide and try to configure again
Another option is when you open Eclipse ide and choose other workspace and configure all again.
If the problem persist maybe your eclipse or tomcat files are corrupts, try to download and setup all again.
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.
I'm using eclipse indigo and I'm trying to follow this tutorial to set up jBoss. It says...
When installing software from this site, some different categories are shown to install - I have chosen the first one which is “Abridged JBoss tools 3.3”
which I have installed. Then, it says:
The next step after the plugins have been installed is again to install the application server itself.
Which I have (jBoss 4.2.2.GA). So now I'm supposed to do this:
Now, define the server runtime in Eclipse. Open "Window => Preferences" and navigate to the "Server => Runtime Environments" node. Press the "Add" button and in the "New Server Environment" dialog, choose "JBoss Community => JBoss 7.1 runtime". Press the "Next >" button. In the next dialog, enter the path to the directory where you have unpacked the JBoss server earlier.
And I'd love to do that, but I don't see the jBoss Runtime Option. I only see "Basic" and then HTTP Preview and HTTP Server (also J2EE Runtime). Plus, I don't have a JBoss perspective, which I should have, and JBoss Central didn't show up when I restarted eclipse. I tried searching my jBoss folder for runtime environments...I got nothing. It's like I don't have the JBoss Tools.
Apparently, this tutorial is exactly what I need to do to set up my server (says my co-worker). But I'm failing and I'm not sure why. I did set-up a JBoss server once before on a different (and also, now broken) laptop with no problem, but now I'm having trouble since nothing seems to be working correctly. Does anyone else know why this is failing/what's going on?
In eclipse, after clicking on "ADD" you can "download additionnal server adapters" on the top right of your frame! try to click on this and select "JBOSS" if it was not present!
By default i had Jboss in the list...
hope this helps!
Setup
I'm using Netbeans 7.4 on Mac OSX Mavericks and Glassfish 4.0 (build 89) on my dedicated server and JDK 1.7. To use the server locally I setup and ssh-tunnel. The following way:
ssh -L 4848:127.0.0.1:4848 -p 6122 glassfish#XXXXXXXXXX
This is working perfectly fine, I can access the server via localhost without any problems. To use this server I added a server in Netbeans, see prinscreen:
Problem
Now I'd like to deploy the project to the server (Right-Click Project -> Deploy) but I get following Error:
Building jar: /Users/tzhware7/NetBeansProjects/SkyLogicAddon/dist/SkyLogicAddon.war
Distributing /Users/tzhware7/NetBeansProjects/SkyLogicAddon/dist/SkyLogicAddon.war to [glassfish.ivo]
glassfish.ivo, deploy, null, false
/Users/tzhware7/NetBeansProjects/SkyLogicAddon/nbproject/build-impl.xml:1050: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 second)
Now I'd checked the line where the Error-Show's up, which is following (1049-1051). For me everything looks normal:
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
In advance I checked the serverlogs, which are empty - no error is shown. What am I doing wrong? Can someone advice me what to change? Thank you in advance!
Edit 1 - 08.01.2014
Allright, I didn't found a solution for solving the problem above, but following way worked at least to deploy the app manually.
Netbeans -> Right-Click on Project -> Clean/Build (now check your outputlog where it save's the project.
Now go to that path, you'll shoud find a .war file
Log into your glassfish-server -> Click Application's -> Click deploy -> upload the .war file -> Click again deploy
Now glassfish deploys the project for you. :)
Edit 2 - 17.01.2014
I could fix the problem, following was wrong. In netbeans I configured that the Target should be domain1, if you do this, it won't work. Let the target be empty, and everything works fine.
Thank you Tim B for your help!
If NetBeans can't talk to the server when you add it to the list then it silently fails. The server appears in the list but you can't click on the + and expand it out to see what it contains.
Check in your server list that NetBeans can actually see the server. Also keep in mind that NetBeans needs access to the admin port (usually 4848) not the normal web one, although it looks like your tunnel is correct for that.
You also need to turn on remote administration and set up the username and password etc. Try pointing a web browser to your localhost 6122 and check you can log in to the admin panel using the same username and password that netbeans is using.
To turn on remote administration:
https://blogs.oracle.com/quinn/entry/securing_adminstration_in_glassfish_server1
asadmin enable-secure-admin
You will also need to add an administrator username and password.