Not able to start weblogic 12.2.1.4 in genuitec myeclipse - weblogic12c

<Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>

Related

Eclipse STS WildFly deployment - Target runtimes disabled

We have a java web application deployed in a Tomcat 9 container and running successfully. We wanted to change the application deployment to Wildfly 27 application server. The direct deployment of app.war used in tomcat container to WildFly standalone folder showed deployment as failed.
So we did the following to create a deployment war by building source from IDE by using JBoss tools.
-Installed WildFly 27
-Imported application source code in Spring Tool Suite (STS)
-Installed JBoss tools in STS
-Added WildFly server in STS. With no projects added, I can start the server successfully.
In Project Properties, I have the following configuration:
Properties -> Java Build Path
Here I removed the previously existing Server Runtime[Tomcat] and added WildFly 27.0 Runtime.
Properties -> Java Compiler
Properties -> Server
Properties -> Project Facets
In Runtimes tab, WildFly 27.0 Runtime is disabled.
Properties -> Targeted Runtimes
Here also, WildFly 27.0 Runtime is disabled. So I can’t change from Tomcat to WildFly.
How can I select WildFly 27.0 Runtime for the project? The instruction says to uninstall certain Facets to activate disabled runtimes. Which facets to uninstall?
When I started the WildFly server with the application, it shows errors
java.lang.IllegalArgumentException: UT010009:
class org.springframework.web.servlet.DispatcherServlet does not implement jakarta.servlet.Servlet
service jboss.deployment.unit."app.war".undertow-deployment.UndertowDeploymentInfoService: Failed to start service
Please help.
WildFly 27 is a Jakarta EE 10 server. You cannot run a Jakarta EE 8 based, javax namespace, in WildFly 27. You'd need to either upgrade your dependencies to be Jakarta EE 10 based and Spring 6 or use WildFly 26.

Configure netbeans to deploy a web application in a real server

I have an external Server consider its IP is https://10.6.99.88:4949
Now I want to deploy my web application directly to this server instead of localhost:4848, Is there any way to configure Netbeans to deploy this web application directly to the server, if yes how can I do it ?
Yes, this is possible.
First you have to enable securehub-admin on Glassfish:
asadmin change-admin-password
asadmin enable-secure-admin
asadmin stop-domain
asadmin start-domain
Then add a remote Glassfish Server in NetBeans (Choose Remote Domain when creating the server) and fill in the details for your server instance.
If it doesn't work, you may have to restart NetBeans and Glassfish again. IF you have a proxy configured in NetBeans, this could also cause problems with the connection.
See also:
NetBeans Wiki - Remote Glassfish
Netbeans and Glassfish remote deployments

Debugging FuseESB application in Eclipse

Fuse ESB uses karaf server with OSGi.
for the code if anybody has steps to get the debugger for the application it will help.
I am currently using Eclipse Indigo.
As OSGi is used we are using Maven to build the same.
Which plugin will help for Karaf with OSGi
Java allows you to remote debug any JVM running.
So if you start the ESB with a debug argument, then it will run in debug mode listening on port 5005.
davsclaus:/opt/fuse-esb-7.0.1.fuse-084$ bin/fuseesb debug
Listening for transport dt_socket at address: 5005
Then you can do remote debugging from Eclipse using that port number. This is standard Java remote debugging, and Eclipse has a wizard for that already. Its the debug wizard which has a remote debug functionality.
You just need to put the following line in the Fuse ESB startup script (e.g. fuseesb.bat or karaf.bat):
set KARAF_DEBUG=true
After that Fuse ESB will start in debug mode using 5005 port.
1) just run $fuse debug (jboss fuse 6.1.0 version) debug port is 5005,
2) in eclipse or jboss dev studio do following
i) run
ii) debug configuration
iii) remote java application -> create new
iv) host: localhost, port : 5005
v) click on debug
3) put breakpoints in java classes

Connecting Eclipse to Weblogic server hosted on UNIX machine

I have weblogic installed on a UNIX machine and my source code is in SVN.
I am trying to use the source code in Eclipse and want to know how I can integrate/connect the weblogic server hosted on UNIX machine so that I can develop/modify my application on Windows machine.
Try using remote debugging. There is a question on StackOverflow about it here: Weblogic remote debugging using eclipse.
This is more detail from Oracle:
In the startWebLogic.cmd script, specify the JAVA OPTIONS with:
set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n
The -XDebug parameter enables debugging. The -Xnoagent parameter disables the default sun.tools.debug debug agent. The -Xrunjdwp parameter loads the JPDA reference implementation of JDWP. Debugging is enabled on port 4000. The JDWP protocol is the protocol used to debug with a remote debugger.
Source: Remote Debugging on WebLogic Server
And how to set up the configuration in Eclipse:
Next, configure a debug configuration for the Eclipse project. Select the Debug option in the Debug option list. The Debug frame gets displayed. In the Debug frame select the Remote Java Application node. Right-click on the node and select New. In the Debug configuration frame specify a name for the Debug configuration. Select the project that is to be debugged. Select the EclipseWebLogic project previously created in the Eclipse IDE. Select the default value for Connection Type. In the Connection Properties, specify localhost as the Host and specify the Port as the port that was specified in the startWebLogic batch script of the WebLogic server, [4000]. Click on the Apply button. A remote Java application debug configuration gets added.
Source: Configuring Eclipse for Remote Debugging a WebLogic Java Application

How to debug remote Glassfish web app from Eclipse?

The web app I'm trying to debug only exhibits a bug on a particular Glassfish server, so I want to debug the web app remotely. But the web app was developed in Eclipse for Java SE and I can't see how to do that.
I have:
Installed Eclipse 3.7 for Java EE
Installed the Glassfish adapter
Configured the server for secure login and JPDA debugging
Added the server as a server in Eclipse
However, I do not see "Run on server" or "Debug on server" in the Run menu of Eclipse. If do Debug as, I can create a new Glassfish configuration but I can't select a server, so I can't configure the configuration.
For Glassfish 3:
First enable debugging in the Glassfish administration console
(Application Server -> JVM Settings -> General -> Debug Options)
which require restarting the domain. Make a note of the port number.
Then you can attach to the Glassfish debug port like any other debug session, with a "Remote Java Application" in the debug configurations.