Blank profile name in Eclipse, Websphere Settings - eclipse

I am trying to add a New Server (WebSphere Application Server 7) to Eclipse (Kelper). I have just installed WebSphere Application Server 7 on the PC but have not changed any settings yet (default settings).
In Eclipse, after New Server -> WebSphere Application Server Settings it shows me the following:
As you can see the Profile name box is empty, with no choices in the drop down box. When I click Configure profiles... I see:
At this point I am stuck. I'm guessing that I already have a profile setup in websphere, but that maybe it doesn't have write permissions yet?
What do I have to do to get this server working in Eclipse?

Based on the second image looks like you dont have any profiles. Check if you have any profiles (folders) e.g. AppSrv01 in the C:\Program files\IBM\WebSphere\AppServer\profiles.
If you have - it means that you dont have write permissions to that folder - try to run Eclipse as Administrator. Did you installed WebSphere with your user or Administrator? In general as a best practice you should avoid installing WebSphere in Program Files.
If you don't have - create it using for example Profile Management Tool - should be available in your Start menu.
You probably don't have rights, because the "Run Profile Management Tool" button should be enabled, if you would highlight WebSphere Runtime in upper table.

I have same issue.
If you install websphere in
C:\IBM\WebSphere\AppServer\profiles
instead of:
C:\Program files\IBM\WebSphere\AppServer\profiles
Then it will solve lots of configuration problems related to access.
Hope it helps

If your C:\Program files\IBM\WebSphere\AppServer\profiles dir is empty go to:
http://www-01.ibm.com/support/docview.wss?uid=swg21442487
Download the attached zip and extract it to WebSphere's bin directory and run the bat/sh.

Related

JCraft SFTP for eclipse Luna

I've been using for the last 6 years JCraft's SFTP plugin.
It's quite simple to use and the only problem i ever had with it is that it doesn't know how to delete recursivly files and folders (it tries to delete folders before files).
Today i tried to update eclipse to Luna and I can't seem to install this plugin anymore.
I get the following error:
An error occurred while installing the items
session context was:(profile=epp.package.standard, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.jcraft.eclipse.team.sftp 0.0.4, action=).
Failed to prepare partial IU: [R]com.jcraft.eclipse.team.sftp 0.0.4.
Any ideas on how to solve this ?
Thanks
From the error message "Failed to prepare partial IU" I found this thread: https://code.google.com/p/veloeclipse/issues/detail?id=47
The suggested workaround is to install the "Eclipse 2.0 Style Plugin Support", which adds support for "running old Eclipse plugins that are not proper OSGi bundles."
You can use Remote System Explorer (RSE) to replace the sftp plugin. It has sftp capabilities (use ssh connection) and allows you to synchronize files between local and server storage
I too struggled to get JCraft installed and then I discovered that Remote System Explorer (RSE) comes already installed in Eclipse Luna in the Java EE version but it may be baked into other versions of Eclipse as well. All I had to do was navigate to Window > Open Perspective > Other... > Remote System Explorer.
Once in the Remote Systems perspective, you will see links to your local files. To create a SSH connection to a remote server (even if it is in the same location as you but requires SSH protocol), just right-click anywhere in that Remote Systems tab and choose New > Connection and then under the General folder, select SSH Only. Fill out the host name or IP address.
If successful, the server will appear as a folder under the Local one. Attempt to navigate below the server's 'SFTP Files' folder and you will be prompted for your user ID and password on that remote server. Say yes to the prompt about trusting the certificate and you are good to go. Your remote files will appear in the file explorer type of GUI in that Remote Systems perspective.
Switch back to your regular local environment in any other perspective in the upper right corner of the Eclipse window just as you normally would.

How do I setup Weblogic as one of my Servers in Netbeans

I downloaded the Weblogic .zip file from the oracle's server but when I am trying to add the server to my Netbeans it gives an error that says "The entered installation directory is not properly structured."
I have also attached a screenshot to show it, can you please help me with the issue. I tried to find a solution online but there is nothing that actually solves my problem. For e.g someone said to update the IDE, so that didn't help.
This is a problem permission: https://community.oracle.com/thread/2582875
Just make sure that the user that is running netbeans has the same permissions on weblogic directory.
I'm guessing here, but you probably unpack the zip file but didn't run "configure.sh" to finish the WebLogic configuration.
Run ./configure.sh inside of your WebLogic folder and then try it again.
in netbeans for "Server Location" you should put MW_HOME\wlserver_10.3
presuming that you use "Domain Registration Type" Local Domain
then click Next, and netbeans will detect in Instance Properties
Domain like MW_HOME\user_projects\domains\sw_domain
just enter Username/Password and click Finish
The server location is:
*/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain

Passing proxy settings to a bundled JRE install4j application?

We provided an application installed with install4j, with bundled JRE, to one of our customers. This customer needs some proxy settings configured manually for this application.
I tried to put deployment.config file in the JRE's lib directory but it didn't seem to change anything. I couldn't find a relevant vmoptions either.
Is there a way to pass these settings to the app/jre?
Is there also a way to instruct the JRE to open the Java console when it runs?
Thanks!
/Shmulik.
You can configure the proxy by setting the VM parameters
proxySet=true
proxyHost=...
proxyPort=...
and for authentication
proxyAuth=true
proxyAuthUser=...
proxyAuthPassword=...
You can set them either in a "Run script" in the startup node of the installer action by calling System.setProperty() for the properties or by passing them on the command line like this:
-DproxySet=true -DproxyHost=... etc
As for your second question (better to ask a separate question on stackoverflow)
Is there also a way to instruct the JRE to open the Java console when it runs?
I assume you mean a terminal window, which can be done by selecting the "Windows console executable" property of the installer. You cannot change this property on the command line because this sets a static flag in the binary format of the Windows executable furing compilation.
I created an installer for WINDOWS as well as for MAC. The
application is using an embedded JRE. While the application runs, it's not
able to detect the proxy settings of the network even the option in
the browser is set to be "Auto Detect". But when the proxy settings provided explicitly in the browser, it's able to detect the proxy settings.
Even the proxy settings are not detected when "LAN Settings->Use automatic configuration script" option is selected and points to the .pac file.
Any suggestion, how to provide the proxy settings with BUNDLED JRE and java program can detect those settings without make any further changes in each machine.

GlassFish v3 in Eclipse shows "Wrong username or password" after starting

During the GlassFish installation I have chosen user name and password. These parameters are properly set on the Eclipse Server Adapter setting page. But when I start GlassFish in debug mode from Eclipse, I get "Wrong username and password".
There is nothing in the server log - in fact the server is started and works properly. The message only appears something like 95% of the time, and it is making debugging of the application problematic with the constant restarts and redeploys.
Anybody found how to overcome this problem?
I am using Oracle GlassFish Server 3.0.1 and Eclipse Helios Eclipse Java EE IDE for Web Developers (Helios Service Release 1 Build id: 20100917-0705).
For me the fix was to leave the "Password" field empty. I am however using different versions (but I stumbled upon this thread and maybe someone else will see this as well) of Eclipse and GlassFish(Eclipse Kepler & GlassFish 4.0).
I hope this helps anybody.
EDIT putting together compatibility of this fix from the comments:
Kepler & 4.0
Luna & 4.1
Mars & 4.1
I had this problem too. For me the solution was to disable the "Use Anonymous Connection for Admin Commands" option. To do so, follow these steps:
Right click on the Glassfish entry in the Server tab and click "Open" from the context menu. (Or press F3 while the Glassfish entry is selected.)
Make sure the box "Use Anonymous Connection for Admin Commands" is unselected, see the screenshot.
Don't forget to save before you retry...
If the log refers to full host names, like:
JMXService URL = service:jmx:rmi://my-work-pc.lan:8686/jndi/rmi://my-work-pc.lan:8686/jmxrmi
rather than, for example:
JMXService URL = service:jmx:rmi://localhost:8686/jndi/rmi://localhost:8686/jmxrmi
...then disabling the proxy settings in Eclipse (Preferences, General, Network Connections, Active Provider: Direct) might solve it.
For what I've read the default "Native" proxy setting yields problems as GlassFish by default binds to 0.0.0.0, which causes host name resolution rather than simply "localhost" in the RMI calls above. Given the host name it then finds, Eclipse might then feel it needs to use your proxy (if set) even for what is actually localhost.
My solution was just disable Anonymous Connection for Admin Commands. Auto deploy is another silly enabled default option because on every save freezes eclipse for a while, of course this does not count on small projects so you are good if you are writing only Hello world projects :)
I had the same issue while setting up glassfish4 with eclipse. Below setting resolved the issue:
Keep username as "admin" with a blank password (Unless you changed
anything while installation).
Select - 'Use Anonymous Connection for Admin Commands' checkbox.
Hope this helps.
it seems that the problem is removed when auto-deploy after changes option is removed.
For the first time from your eclipse do not set any username and password as #mgttlinger said. i hope now you can start the server without any issue.
Open admin console by localhost:4848(not it wont ask any credential)
To set admin password, go to Domain -> Administrator Password
Enter New Password and Confirm New Password.
Click on Save button
Restart the server
Try access localhost:4848(now you have to enter username and password to login admin console)
In Eclipse also set username as admin and given password to access glassfish server from your eclipse
If your OS is Windows, and your Glassfish installation location is in root directory (e.g. C:\dev\tool\Glassfish ), then try run Eclipse "as administrator", believe it or not, I know its a bit weird, that does solve the problem.
Had the same problem , did restore default to remove the password set at the time of server installation in eclipse. The server started after that.

ColdFusion debugging problem in Eclipse (Break points not hit)

I am trying to get the debugger (CF extension for Eclipse) working for last few hours. And struck in strange situation.
My settings are listed below
ColdFusion 8
Eclipse 3.4
I set up the RDS & modified the JVM.config settings and verified the connection & debugger, both returns successful in test run. But When i attach a debugger to the site, breakpoints are not hit.
My Eclipse workbench & site virtual directory pointing to the same path. It is in a remote server.
I left Eclipse-CF mapping blank since both pointing the same remote path.
And i am using WYSE thin client emulator.. does it anything to do with this..?
Can someone help me to resolve this problem?
Cheers
If your eclipse configuration is ok, could be that something is not confgured right on server side. Check if Line Debugger Settings > Allow Line Debugging feature is enabled and that Debugger Port (5005) is opened and accessible form client machine.
Articles that should walk you through proper setup:
http://eclipse.sys-con.com/node/382427
http://www.adobe.com/devnet/coldfusion/articles/debugger.html
Also you could try using CF Builder and/or FusionDebug http://www.fusion-debug.com/fd/ .
You do need to specify at least one mapping. Eclipse needs to know what folder in your project maps to the http root. Even if the mapping is / -> /, you need to specify that. The only time you can leave mapping blank is when the CF server is on the same machine as Eclipse.