When i specify the directory of Glassfish 5.0, i get this message in the IDE :
No usable default domain. Use Next to create a personal domain.
But, there is already a domain (domain1) and i don't want to create another one.
My question is : How to solve this problem ?! Or how can i make Netbeans find the existing domain ?
After a lot of research, it turned out, that, to be able to perform such task, you have to run NetBeans 8.2 as Administrator (under Windows). If you do so, the "No usable default domain. Use Next to create a personal domain." will not be displayed.
I hope it can help other people.
Run your NetBeans 8.2 as administrator then this problem will be solved..
Related
Almost the same question as here.
Class.forName("com.mysql.jdbc.Driver");
conection = DriverManager.getConnection("jdbc:mysql://"+server+"/"+bd, user, password);
So I get the wonderful and fantastic XML when I run it. I used it before (with another server) and it Works ok.
My server it's ok because I tested it with another PC.
I'd say I have update java so I guess there could be the problem, but I have no idea. Could be related with enviroment variables? That specific java version? Btw I have 1.8u45.
I need mysql.
Well, finally I solve it. It wasn't java, nor mysql. It was so easy to see... It was Eclipse:
I have EE Luna version and I don't really know why whenever I clicked run (doesn't matter the Project), it always ran a DocsBlahBlah... file related with mysql ConnectionProperties.
So I deleted that from "Run Config..." and apparently all works fine.
However I'm afraid that will be happening more simply the 1st run config it's the one I need now.
This is Anas here and I just wonder if one can share his though about windowsbuilder on eclipse. I installed it from help link through selecting SWT, GWT other plugins and all gone well but after a restart those plugins are not working. Precisely, Eclipse IDE is showing those links enabled but it takes me to interface asking to install some additional toolkits, again when I proceed, I met a repository not found error.
Hunting over web, I have tried -clean and checked my port address. Thanks for your comment!!
Well Anas,
I understood your problem so follow these simple steps to overcome this solutions
First install the Indigo[3.7.2] version Eclipse from this link:
http://download.eclipse.org/releases/indigo
And then go to eclipse--->Help---->InstallNewSoftware and paste the below link>
WindowBuilder[1.6] Pro Update Site - http://dl.google.com/eclipse/inst/d2wbpro/latest/3.7
And select WindowBuilder Specific Checkboxes and proceed accordingly.
After that if you want to do a simple example of using windowBuider
just go through this link it might be helpful for you in this regard:
http://help.eclipse.org/indigo/topic/org.eclipse.wb.doc.user/html/NewComponentsTutorial.pdf
In case still you are facing issues feel free to reach me SUNIL
Check over here for available WindowsBuilder versions:
https://www.eclipse.org/windowbuilder/download.php
Take a link, and pass it on Eclipse IDE's feature installer, which takes the URI. Aim for the version of the builder which is supported by that IDE version.
If you take the latest version of WindowsBuilder, it does not mean that the specific IDE does support it.
Best regards
I have a strange behavior with either Play 2.0 or 2.0.1 : the first or
first few requests are served quickly by the Play! server, but then
it's not responding anymore.
I reproduced the problem on several projects including the hello word sample application :
- lauching "play run"
- Go to http://localhost:9000 -> ok
- Hit refresh a few times : the requests are locked, the browser is
just loading.
I have the same behavior with Firefox and Chrome.
I guess it's a setup problem, and I may be missing something trivial,
but I can't see what.
I 'm using Mac OS X Lion and Java 7 update 4.
Thanks in advance,
Regards
It is known that Play reacts weirdly when using Jdk 7. Check the mailing list, several issues have been noticed.
Seems like the only viable solution IMO. (Using same setup as you otherwise and no problems at all)
Thank you.
It was indeed related to Java 7. I finally got it working, it took me a couple of hours to find out how.
It seems that having the JAVA_HOME variable defined to the Java 7 path is generating some conflict.
Commenting the export line in my .bashrc solved the problem :
PATH=$PATH:/Users/raphaellemaire/tools/play-2.0.1
#export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
Upgrading to Play 2.0.2 appears to work, as mentioned in mkeoller's comment.
Hi am creating a web application using NetBeans 6.9.1 IDE and am trying to deploy GlassFuish server without success.
I know this sounds silly, but are you sure Glassfish won't start? It is under Start/Programs/Sun/Start Default Server.
If that is what you are doing, I want you to know that I have had a problem with GlassFish not starting. You may want to check your log to see what kind of error you are getting Sun/AppServer/domains/domain1/log/server
Review that and see what that says. It may be giving you a bunch of different errors. In general, though - if she won't start she needs to be uninstalled.
So, uninstall both applications.
Before you install anything make sure that you have the correct jdk installed. For instance, if you are installing NetBeans 6.9.1 IDE, go back and check to make sure you are installing the correct JDK first. I am sorry I don't know what JDK goes with this, but if you check the page/documentation for NetBeans 6.9.1, it should tell you.
Hello, try a custom deployment after, when you do the custom install, since this is a bundle, uncheck the following:
Prelude (Sun GlassFish Enterprise Server v3 prelude) -- if you see that, if not, just keep going.
Also, do you have any system or environment variables that need to be set? What os are you working on?
on WIN XP SP3 and Netbeans 6.7.1 IDE,
I have installed Java SDK 6.17 which includes JavaDB. I set the JavaDB directory to ...\Java\JavaDB at the Java installation script with %DERBY_HOME% set accordingly and %PATH% including %DERBY_HOME%\bin
Later on I installed GlassFish-V3 Prelude which - surprise surprise - comes with its own JavaDB and silently installs that into a JavaDB directory under the GlassFish path.
Q's
I don't want to have duplicates. Can
I remove one of these installations
without spoiling Netbeans.
How can I verify which of the two
JavaDB's Netbeans is actually using
Can I eventually configure GlassFish
in a way to use the JavaDB I
installed as part of the SDK
Thanks for any hints (as on superuser.com I didn't get any replies :-( )
I don't want to have duplicates. Can I remove one of these installations without spoiling Netbeans.
If really you want to remove one of them, I'd suggest to remove the one that comes with your JDK and to leave the one bundled with GlassFish v3 (GlassFish expects it to be there when using some commands which can be extremely handy, e.g. during development). But honestly, I wouldn't spend too much time for the 4.5 MB extra space used.
How can I verify which of the two JavaDB's Netbeans is actually using
To verify, go to the Services tab, expand the Databases node and right-click on Java DB and select Properties.... You should get the following window:
alt text http://netbeans.org/images_www/articles/65/ide/java-db/javadb-props.png
As documented in Working with the Java DB (Derby) Database, "If you have the GlassFish Server registered in your NetBeans IDE installation, Java DB will already be registered for you."
Can I eventually configure GlassFish in a way to use the JavaDB I installed as part of the SDK
I don't know, but... why would you do that, why is it such a concern, don't you think you're wasting your time? Now, as I said, if this is really an issue, remove the version bundled with your JDK instead.
PS: GlassFish v3 is out, GlassFish v3 prelude is outdated, you should upgrade.
MikeD!
After many years, I am using NetBeans again. As I realized many features are included but others get "lost". I am planning to install several versions.
In NetBeans 6.7.1, to know what version of Java DB NetBeans is using, right click the Java DB node and ckeck the properties.
The path next to the label Java DB Installation tells you what installation is currently in use.
The path next to the label Database Location is used as the value for the property derby.system.home. This property tells Java DB where to create/find the individual databases folders. Besides, this folder holds two files called derby.properties and derby.log.
*derby.properties* establishes persistently system-wide properties.
Do not worry about duplicates. As you can see NetBeans uses 1 at a time. Nevertheless, as a recommendation, choose an installation and stick to it. During my tests I changed the path to the Java DB Installation several times and played with the user authentication properties inside derby.properties and eventually NetBeans could not create new databases in the regular way. So, I had to re-install NetBeans (I use the OS independent zip).
Regarding GlassFish, I have not experimented yet. But, it is reasonable to think that there is some limited set of options about using a different version of Java DB. For example, NetBeans 6.7.1 Java DB support fails if you set the netbeans_jdkhome property so that it points to a JDK version equal or higher than 1.7.0. That tells us something, right?
I will try to tell you anything useful I find out during my tests.
George