How to add new Clustered Server to Eclipse? - java

In my Eclipse Kepler, I want to add a new Server (from Weblogic) at the Servers View. I can add my admin server domain, it is ok. But in my weblogic, I have a cluster, which has 2 servers also (dev-server_01, dev-server_02). How could set the Eclipse, to add the dev-server_01 server from the cluster? If I try to add it from my domain's server location, it gives me error about he cannot find the config.xml, and I'd searched for this config.xml, but there is only 1 config.xml, under the domain root folder.
So. Is there any way to add a new clustered server to eclipse from weblogic, or the Eclipse can manage only the AdminServer? Thank you!

Maybe You are looking for a WTP for weblogic server.
Try out this website , maybe it can help.
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html

Related

weblogic cluster eclipse target

i'm currently maintaining a struts / spring java webapp running on weblogic 10.3.6 . I use eclipse neon for development, gradle 2.14 and git to do so.
Our customer wants to incorporate weblogic's clustering features so i'm trying to get my head around that.
I managed to set up a cluster with two servers and to deploy the application to it via weblogic administration console.
Now i'm trying to access the cluster in eclipse but it is not visible as a target. I tried restarting weblogic and re-adding the server.
In Oracle's tutorial there is no hint on what else i should configure on either side: http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/javaservice/JCS/eclipse_jcs/eclipse_jcs.html#section2
Has any of you seen such behavior ? What else could i do ?
Thanks in advance for any hint !
Somehow, magically, all of a sudden all clusters appeared in eclipse server list... Probably after one or two restarts of weblogic...

Use weblogic admin console to manage custom configuration files?

Is there any way I create or upload a configuration file to weblogic server. The configuration file will be used by a java application deployed on the weblogic server. But I can use weblogic server admin console to update this configuration file and don't have to have someone go to the server and find this file and update it in an text editor.
Is this possible? If so, how can I do this.
You want Deployment Plans for your app. They allow you to customise an EAR or WAR's internal settings.
Bear in mind that early versions of WLS 11g had a bug where specifying a deployment plan at the same time as uploading an app didn't work through the console, and you had to upload, then apply the deployment plan in a separate step (or use WLST or a maven plugin to do it)

Spring don't work on war deployed with Tomcat

I have a rare problem, at least for me.
I have a project built in Java. Using Maven and Spring MVC. I define a couple of controllers to redirect between pages (.JSP).
I deploy my WAR project on Tomcat webapps folder. And everything seems fine.
Now when I access to the app from the server local IP (192.168...), everything works.
But, when I access from public IP, the only thing I get is the folders of the project, it's like the context configuration of Spring and controllers doesn't work.
Of course, I can to navigate to each page with the complete URL.
Already checked that both directions also point in the same folder.
Thanks in advance.
EDITED
I want to say that I configure apache and tomcat connector. So When I enter to my local IP with the :8080, my app works fine. But when I enter without it, I see the list of folders.
EDITED 2
My web server is Apache.
And my connector configuration is:
workers.properties:
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
/etc/apache2/mods-available/tomcat_connector.conf:
<IfModule jk_module>
# Tomcat Connector custom properties
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/jk.log
JkShmFile /var/log/apache2/mod_jk.shm
JkLogLevel error
JkMount /manager/* worker1
JkMount /host-manager/* worker1
</IfModule>
And the only thing that I add to /etc/apache2/sites-available/default is:
JkMountCopy On
I get some information from this tutorial:
http://blog.sourcerebels.com/post/28254180614/usar-apache-como-frontal-de-tomcat-en-ubuntu-server
Thanks!

Clear all sessions for web application in tomcat 7

I'm trying to update a couple of JAR files after my web application starts and doing a restart for the changes to take effect.(requirement)
The problem is , the session information is being persisted by tomcat. Yes, I do have a "sessionEventListener" listener in my application, but that shouldn't be a problem IMHO.
I want everything to start afresh from tomcat ( running standalone) , be it sessions, cache, or any information about the web application given to tomcat, except for the WAR file of course.
Any help would be appreciated.
During development (in Eclipse) I usually use 'Clean Tomcat Work Directory' option found when right clicking on Servers view. That will wipe all session related data.
In your tomcat 7 context.xml you can add/uncomment this line to clear all sessions on tomcat restart.
<Manager pathname="" />

Viewing Deployed Apps in Weblogic Server

I am new to weblogic and I would like to find out how my files are arrange in Weblogic?
I have used only Tomcat and this is the first time where I will deploy in a Weblogic Server.
In Tomcat, I could view the exploded view of my projects by looking at the Tomcat Home Directory
and the WebApps folder. There I could view how my application css/js/resource files are deployed.
%TOMCAT_HOME%\webapps
I am looking for a similar functionality in Weblogic? Can somebody tell me how? Thanks
I am using Weblogic 10.3.4 by the way
WebLogic supports several different ways of deploying applications, so the answer to your question is not very straightforward.
Typically, if you deploy a war/ear, then WebLogic will place them in the $WEBLOGIC_HOME/application directory. WebLogic will then explode your ear/war into a separate wl_stage folder that will be under your managedServer directory.
You can also use the ability of WebLogic to autodeploy ( not recommended for production apps ) where WebLogic will automatically explode the app.
In summary, you probably need to reach for the documentation to get all your questions answered.
http://download.oracle.com/docs/cd/E13222_01/wls/docs81/deployment/overview.html
I'm not quite sure if you want to find out where to deploy or where applications have been deployed.
But if you want to see where are the deployed applications in weblogic, you can go to its console (e.g. localhost:7001/console) after start the server. Then follow the following steps:
Find and click "Deployments" label
Find and click your application in the right panel
Click "Overview" tab, then you will see "Path" in the opened information table.

Categories

Resources