Error " Specified location is not a valid domain" [duplicate] - eclipse

This question already has answers here:
eclipse error: glassfish\domains\domain1 does not exist
(8 answers)
Closed 6 years ago.
I'm trying to add a Glassfish 4.0 server to an eclipse Spring Tool Suite project (3.6.2).
-Glassfish 4.0 server is running and working (I can see on the localhost console)
-Glassfish for 4.0 are installed in my sts
I have no problem with the first and second panel (server path location), but with the third, I get an error " Specified location is not a valid domain". I don't understand this error, because this is the good location and the good name for my domain (I could verify it with the server log). I've tested with the browse panel and that didn't work too.
So, I'm don't why I get this error.
Thanks
Ps: Sorry I can't post pic

Look at your install directory, find file like this:
C:\tools\glassfish4\glassfish\bin\asadmin.bat
run asadmin.bat, enter command:
create-domain --help
to see document.
create-domain your_domain_name
to create new your_domain_name domain.
Check list domains, use asadmin enter command:
list-domains
Reference: GlassFish Server Documentation. You should also check your GlassFish Tools for Luna inside Spring Tools suite.

You must to add a password to your admin user. Eclipse mistake. Eclipse doesn't recognise the domain without admin password
When you create the domain, add a admin user and a password and Eclipse doesn't complain any more

Related

Service 'MongoDB Server' (MongoDB) failed to start

I'm trying to install mongo DB on my local machine with the installer from the official website. But I'm continuously getting this message, can someone help?
I've tried the solution provided here but didn't help.
I suggest doing the following:
Hit Win+R to open up you run.exe then inside of it enter services.msc to open up services. Try locating the service under the name of MongoDB Server and set the Startup Type manually to Automatic - [In addition to that, you could set the username and password manually. If you get a message saying the user was granted login as a service right, try hitting retry on the MSI dialog and see if it starts].
Important:
Don't forget to save and close everything (services.msc) before continuing.
Also very important, you should (must) check your .NET framework version and update it to version 4.5 and above. You could download a software like eg Driver Booster to update all of your drivers and additional components that are outdated.
I ran into the same issue. My problem was the installation location. I was trying to install under C:\MongoDB. I resolved it by installing in the default MongoDb location which is C:\Program Files\MongoDB.
For me this is usually an issue with the configuration file %ProgramFiles%\MongoDB\Server\x.x\bin\mongod.cfg
At some time there was an invalid option "snmp" enabled (only valid in enterprise version).
Nowadays, although the installer asks for directories for data and logs it doesn't ALWAYS seem to use these, but defaults to %MONGO_DATA_PATH% or %MONGO_LOG_PATH%, respectively. I don't know where these should be defined, but the server fails at accessing c:\data\db (which doesn't exist). So you have to correct the paths.
I also faced this kind of error. But I just change the Network service to Local system in Log On As tab.
Follow my step-by-step below to resolve it:
Press Win+R, type: services.msc, then looking for MongoDB Server (MongoDB)
Double click on MongoDB Server (MongoDB).
Then it will open properties tab. On that tab click on Log On
After that check two items i.e. Local System account and Allow service to interact with desktop
After that press Apply and OK button. That's it, cheers!!
Open command prompt and copy the following command:-
"C:\Program Files\MongoDB\Server\4.2\bin\mongo.exe"
NOTE: This Tricks is work on my Windows 8.1 PC.
Comment out string with mp: in configuration file: %ProgramFiles%\MongoDB\Server\x.x\bin\mongod.cfg
Like this:
...
#snmp:
#mp:
Click Windows+r, type lusemgr.msc , Go to Groups and double click Administrators, Click Add, Click Advanced and click Find Now. Double click in Network Service (in bottom list) and click OK.
It worked for me.
Installing in the other locations other than the windows directory caused me this error. Reinstalling the setup with the recommended method of "complete" fixed it.
The problem occurs if you have Windows version previous to Windows 10.
Install the following update before installing MongoDB. Click on the link below.
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
It worked for me.
The problem occurs if you have Windows version previous to Windows 7. Install the following update by going to below link you have to download
Windows6.1-KB2999226-x64.msu
#You have to download and install then go to servies.msu and start MongoDB server by Start also go into log on and set to #local machine
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows

Blank profile name in Eclipse, Websphere Settings

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.

Unknown version for SonarQube server (http://localhost:9000). Please check server is reachable

I Have installed Sonar in my system, and eclipse plugin of the same.
I am following below mentioned steps
Running StartSonar.bat
Going to my project directory where POM.XML is located of my project and run the command
mvn sonar:sonar
Eclipse SonarQuber : Analysis project .
I keep on getting error:
Unknown version for SonarQube server . Please check server is reachable.
And also , sonar analysis is not working from eclipse, I mean if I correct the error indicated by sonar and do sonar analysis again, it shows error at the same.
However if I do it from command prompt it is working fine. Please help me on this issue.
Though it is not a direct ans but still here is what I tried and worked for me.
Check if SONAR server is reachable. Read the question at https://stackoverflow.com/questions/20211215 to configure/correct the server connectivity issue. Point to note is providing username and password and testing the connection.
Navigate to your project root pom.xml in command prompt.
firemvn sonar:sonar
Results gets published in http://localhost:9000
The miraculously simple answer for me was:
Go to the sonar server preferences under Window->Preferences->SonarQube->Server
Choose the server and click edit
assuming you have entered the correct username and password (or nothing if the settings on your sonar server are allow anonymous analyzing)
Press test connection
On the top of the window it should state "Successfully connected!" and when you try to analyze the project again the error is gone.
May be a bug in the eclipse plugin.
After starting the sonar server which is installed in ur drive,,,
try to fetch with http://localhost:9000 and
give the test properties "admin" and "admin" as username and password.
It will work

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

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.