Deploy the web application using weblogic adaptor for eclipse - java

I have installed weblogic 9.2 adaptor for eclipse kepler and try to deploy the application with eclipse. I right click the project and choose run configuration and click on run.
The server already started and i can see in the console,
But in the eclipse server tab it shows as BEA WebLogic Server v9.2 at localhost [proj] [Stopped, Unable to validate weblogic domain].
Any way But the server seems started as when i try to strat the server directly it says server already started.
But the problem is the application is not deployed when i use the plugin.
Also i want to clarify previously when i manually deploy i ran an ant build script which create a EAR file and then i deploy it using web logic web admin console. But now when i use eclipse does eclipse plugin do the build script job of creating a EAR and deploy it or is there i need to do more?

The problem here is eclipse is working on java 6 and weblogic is running on java 5.
The workaround is
add
-Dsun.lang.ClassLoader.allowArraySyntax=true
after -vmargs string in eclipse.ini in your eclipse directory.

Related

Deploying locally the Web application to client

I have developed my webApp with Struts2, Hibernate and MySQL. Now I want to deploy it locally to the client in his computer without installing Eclipse .
For me I was installing wampserver and in the Eclipse I'm using Tomcat v7.0 Server at localhost. I don't use maven
please give me all step to do this task
You can use tomcat server.
Just create war file of your project and put it in tomcat's webapp folder and then move this folder to client machine.
At the client machine past your tomcat at any drive then open command prompt and go to that drive folder like 'd/new/tomcat' and bin folder of tomcat and then just type this command ./startup.bat
your tomcat is started check it on browser.

can xampp and net beans can work together for tomcat

I have installed xampp on my system and now I want to install netbeans 7.4 in my system to use the tomcat service from xampp
I want to do the rest of my coding in netbeans. Is this possible? If yes then how?
you should download the netbeans which has Apache Tomcat included in the installer (eg. Full version 210MB ), then select to install tomcat in the netbeans installer.
Open the netbeans project, change the web container of the project to tomcat, and save and run your project.
if you cannot find tomcat in netbeans, make sure you installed the tomcat using the netbeans installer
if you cannot start tomcat in netbeans, make sure your tomcat is not started in xampp.

Debug application in Jboss 5.1 using local debugging mode in Eclipse

I am trying to setup my eclipse project to be able to debug an EJB application that is deployable in Jboss 5.1. To configure the debugging options i used the options described here:
JBoss debugging in Eclipse
I tried the above and it works but with the following limitations:
If i change any code, i have to rebuild the application and re-deploy into Jboss and restart the server. We use ANT to build the project so having to rebuild and re-deploy the application because of a small change is not really ideal.
I managed two approaches:
The first one as described in JBoss debugging in Eclipse. This requires that i copy the war file manually, start up jboss remotely then start the remote debugger in ecliplse.
The second approach is i would still copy the war file manually to jboss but not start jboss remotely. Instead i would start jboss within eclipse. This sort of works but the problem is i still have to do the manual deployment when i make a change.
I have debugged an application within eclipse running in Tomcat before and with that all i had to do is just restart the server if i make a change to the code.
Is it possible to debug an EJB application locally within Eclipse so that if i make a code change all i need to do is restart the server locally and not need to redeploy the war file?

How to deploy a Java EE project to my webserver?

I'm working on my first Java EE project with NetBeans IDE. My application server is the integrated GlassFish.
At this moment my project run locally on my Mac with MySQL database. How can I deploy it on my web server?
You need to just create the war file and copy it to your web server. When you start your web-server it will automatically deploy the war file.
You need to use the remote application server functionalities of deploy.
If it's also Glassfish you can use the Administration Console to do it - e.g. example.com:4848 (defaut port for Glassfish admin portal).
Also you may use Cargo Maven Plugin in order to automate the deploy.
You have different possibilities:
Netbeans can deploy your application on the integrated Glassfish server. This should happen automatically if you Run you project and the Glassfish server is selected for this project. You can change the selected server for every project under Project Properties -> Run
You can deploy .war files via the Glassfish admin console if the Glassfish server is already started. Navigate to http://localhost:4848, go to Applications and click on Deploy
You can manually deploy you applications. You have to copy either the .war file or a folder containing the contents of the .war file to the folder /GLASSFISH_HOME/glassfish/domains/domain1/autodeploy

Netbeans can't find running Tomcat

I'm running Tomcat inside of Netbeans. I added Tomcat server(not bundled with Netbeans) to Servers in Netbeans. But, when i'm trying to run Tomcat, it starts(i can visit Tomcat home page), but Netbeans can't find it running. Where is the problem?
No stacktrace in Tomcat.
When i'm deploying my project`s war in this Tomcat manually, everything works, but i need to deploy it automatically from Netbeans.
Configuration:
Netbeans 6.8 + Tomcat 6.0.26 + JSF and Hibernate project.
I changed port from 8080 to 8081, and it seems to work. I don't have another Tomcat running on background. Smth is using this port, and i don't know why.

Categories

Resources