I have a project done in JDeveloper 11g that are EJBs. I can write these to an EAR file. Now, how do I deploy this file to the JBoss app server? This was previously deployed to a JBoss 6 server but ever since I upgraded to 7 and nothing works. Will the same beans work in 7?
You can try creating an "Application Server" connection in JDeveloper to your JBoss server and then from your application menu choose deploy... to the server.
Or you can create the EAR in JDeveloper, pick it up with the JBoss admin console and deploy it.
Whether it will work depends on what is in your application.
Related
My configuration is:
OS: RHEL 5.7
IBM DB2 10.1
WAS8.5
WL6.1.0.1 (last fix pack installed)
When reading the WL6.1 Information Center, it is said that you can deploy several Worklight projects (that is, several project WAR files) to an application server just as you would deploy any JEE application: each deployed project must have a unique name and a unique context path.
This exactly what I am trying to do using the Server Configuration Tool located under the directory '/opt/IBM/Worklight/shortcuts/'.
When deploying the first WAR file under a WebSphere Application server profile, the Server Configuration Tool works perfectly and creates/deploys an EAR file named 'IBM_Worklight_Console.ear', in which the WAR file is included. However, when using the Server Configuration Tool to deploy a new WAR file under the same WebSphere Application server profile, the Server Configuration Tool creates the same EAR file named 'IBM_Worklight_Console.ear' with the new WAR file included. But obviously it overwrites the first Worklight Server configuration, preventing to deploy several Worklight projects to the websphere application server profile as it is supposed to do.
What could be the problem?
The Worklight documentation, section "Configuring multiple IBM Worklight projects", says that for multiple Worklight project WAR files in WebSphere Application Server, each must have a different id. In the Worklight Server Configuration Tool, you enter this id in the "Application server configuration" panel, in the "Deployment id" field. Once you choose a different id for each, they will be able to coexist. (At most one of the ids can be left empty.)
My Application is deployed on weblogic server. I want to attach jacoco agent to the weblogic server.
Is there any way to attach it in weblogic server using startWeblogic or setDomainEnv.
OR
is there any other way to implement this?
I tested this with Weblogic 12.1.3 on Linux and it worked.
setenv JAVA_OPTIONS -javaagent:$JACOCO_HOME/lib/jacocoagent.jar\=includes\=ccdemo.\*,output\=tcpserver,address\=\*
There were no changes to startWeblogic.sh or other files needed.
I need to deploy a webapplication developed in my local system (used Eclipse) on a tomcat server running on a remote server. For this what all privilages are to be needed on the existing server.
What version of Tomcat are you using? You should just be able to go to manager screen and deploy your war file from there i.e. http://hostname:8080/manager
On Tomcat 7 you need to have a user entry in /conf/tomcat-users.xml for the role manager-gui.
If you can connect to the server hosting tomcat you could copy your war file to the webapps directory manually instead.
the easy way to deploy the application is to make a war file of your application and paste it in the webapps folder of tomcat installation folder. By default it catalina_home/webapps
or use the inbuilt hostmanager application.
I need to setup jndi datasource in my web application deployed on the glassfish server. I don't want to use glassfish admin console for creating connection pool and jndi datasource. (This works though.)
I would want to use some xml files like context.xml (used in tomcat) to specify the jndi datasource details which will be bundled with the application war file.
This way if I deploy my app war file I would not have to do any changes in the glassfish from the admin console.
Please help.
PS. I tried putting context.xml in war META-INF, but its not working. When I deploy my war on glassfish it says jndi name not found.
You can't set up resources on Glassfish application server from within an enterprise application; I would even say it's true for any Java EE-compliant application server. It's simply against EJB separation of roles: preparing the application is the role of Enterprise Bean Provider and Application Assembler, and installing it on the server belongs to the Deployer (see EJB 3.1 spec, chapter 2.2).
You surely don't have to set up everything manually, though. Glassfish has a command line tool asadmin, with the help of which you can script all operations accessible from the GUI admin console — take a look at the Glassfish Admin Guide.
I have requirement for testing a j2ee application which is deployed in a weblogic server.
I have to get the ear add my testclasses into that and depoly it back.
Since weblogic server takes so much memory , I want to run my testcases to run in another box , connect to the weblogic server and download the ear from there and modify and deploy it back.
I know that it is possible to remotely deploy application in weblogic.
But is it possible to download the application from weblogic ? using JMX ?
Thanks in advance.
Thanks
J
JMX is for the runtime configuration and management (Java Management Extensions). What you're looking for is much simpler - On the WebLogic console, go to the deployments and click on the application of interest.
Next, figure out what the path of the deployed application is and then manually copy (scp if you're in UNIX) the ear file over to your local directory.
If you don't have access to the hosting server then it's not possible to download the app.