Similarly to https://bz.apache.org/netbeans/show_bug.cgi?id=257948 , my JavaDB connections starting going haywire a couple days ago.
They were working nicely with Netbeans 12.1 and Glassfish 5.1 and JDK 15 until two days ago. I use the embedded driver in my codebase, and I use Services -> JavaDB to inspect my tables from within the Netbeans IDE.
Two days ago, without having changed anything on my system or in my setup, Services -> JavaDB stopped connecting to the database. JavaDB simply won't start. Until two days ago, I would get a prompt asking for username and password (which were empty). Now, I just get this in the output window, with an eternal spinner saying "JavaDB starting".
I have tried uninstalling all JDKs and JREs, uninstalling Netbeans, and reinstalling again with:
JDK 15
Netbeans 12.1
Glassfish 5.1
But this didn't fix the issue, see screenshot. I get an eternal "Starting the Java DB server" or "Connecting to database" spinner, but no username prompt and no connection to the database :
I also tried starting from the command line as per the instructions given here. I don't see any errors when doing that:
C:\Users\johnrdorazio>java -cp "C:\Users\johnrdorazio\GlassFish_Server\javadb\lib\derby.jar;C:\Users\johnrdorazio\GlassFish_Server\javadb\lib\derbytools.jar;C:\Users\johnrdorazio\GlassFish_Server\javadb\lib\derbynet.jar" -Dderby.system.home="C:\Users\johnrdorazio\AppData\Roaming\BibleGetOpenOfficePlugin" org.apache.derby.drda.NetworkServerControl start
Thu Oct 22 22:16:27 CEST 2020 : Gestore della sicurezza installato con i criteri di sicurezza di base del server.
Thu Oct 22 22:16:29 CEST 2020 : Server di rete Apache Derby: 10.14.2.0 - (1828579) avviato e pronto ad accettare connessioni sulla porta 1527
I have verified paths are all correct in Java DB Properties. I'm at a loss as where to go from here.
I have set the System variable JAVA_HOME to the JDK 15 path, and the System Path contains only the JAVA_HOME variable (as regards Java paths).
I my case the problem was that JavaDB Properties had the default Java DB Installtion location:
C:\Program Files\glassfish web-5.1.0\glassfish5\javadb.
Whereas in NetBeans 12.0, the actual path to glassfish, in my case is:
C:\Program Files\eclipse-glassfish web-5.1.0\glassfish5\javadb
I corrected that by using the actual path and then JavaDB connected immediately.
Related
I am trying to install tomcat 9 using apdoptopenjdk jdk-11.0.6.10-hotspot on windows server 2008 R2. The tomcat starts properly from the command prompt when I ran startup.bat.
I have mentioned correct JVM path in the tomcat configutation dialog box and the mode is also set to JVM. Have cross checked this configuration multiple times and found no issue with it.
But it won't start when I ran from services.msc as a service.
The issue I get when ran as a service is 1067 terminated unexpectedly. And when I check the system logs in event viewer it shows below error.
Please help me as I am trying this since last two weeks.
I think this is a tomcat bug.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63767
I'm following up something similar, but your issue appears to have been fixed in 9.0.27
I'm running Ubuntu 12.04. After running "check for updates", one of the listed updates was Eclipse Platform ==> 3.7.2, which I couldn't select (white plug type icon). A conflict dependency was described, something to do with Java Development Tools, I think. Anyway, I force selected everything (which included the Eclipse Platform) and then manually deselected every other option except the Eclipse Platform. I was then able to go ahead with the update just for that option.
The update seemed to be going fine, but ultimately ended up with an error, which was that a file could not be deleted successfully (I believe it was /usr/lib/eclipse/.eclipse or something similar). After following some advice, I ran sudo chown -R $USER:$USER /usr/lib/eclipse /usr/share/eclipse and then repeated the update process done previously, which worked.
After restarting Eclipse, all my plug-ins appear to be missing. Eclipse looks like it's completely stripped down. In the help menu, there's no longer any "Check for updates" option. Although in the installation details, the plug-ins are still listed.
I tried resetting ownership of the eclipse directories back to root, but it doesn't change anything. I've looked around at various bug reports and forums etc. but I'm not sure what to do. Can anyone help me?
Error Log:
Error
Sun Jan 19 11:50:37 GMT 2014
Error creating feature
"file:/usr/lib/eclipse/features/org.eclipse.equinox.p2.user.ui_2.1.2.R37x_v20110815-1155-
6-Bk8pYWZz0qUTX5I15GZWwbXkrl/".
[/usr/lib/eclipse/features/org.eclipse.equinox.p2.user.ui_2.1.2.R37x_v20110815-1155-6-
Bk8pYWZz0qUTX5I15GZWwbXkrl/feature.xml (No such file or directory)]
... followed by another similar entry, followed by:
Error
Sun Jan 19 11:37:42 GMT 2014
FrameworkEvent ERROR
org.osgi.framework.BundleException: The bundle
"org.eclipse.equinox.p2.reconciler.dropins_1.1.100.dist [80]" could not be resolved.
Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.p2.touchpoint.eclipse;
bundle-version="1.0.0"
... followed by:
Error
Sun Jan 19 11:37:42 GMT 2014
Bundle reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-
1438.jar#1:start not found.
SOLVED - See bottom of post
Firstly, I will state that I have read all the existing posts regarding this problem and none of the suggested solutions have worked.
After upgrading eclipse to Indigo SR2 and to java 7, I was not able to start Glassfish, either embedded or separate installation.
After a week of this and because my PC was getting sluggish, I decided a full rebuild of my PC was required, so I reset the PC back to factory settings and started again.
My spec now looks like this...
Windows XP SP3 - Firewall Disabled as 3rd Party solution installed
Java 7 - jdk1.7.0_03 + jre
Eclipse Indigo SR2
hosts file...
127.0.0.1 localhost
I installed the latest Glassfish Plugin from: http://download.java.net/glassfish/eclipse/indigo
However, just as before the rebuild, when I try and start the server, I get the CREDENTIAL_ERROR.
I'm now super frustrated as I would have expected this completely clean install to just work.
I disabled the firewall, but that made no difference.
I then tried to start the embedded server manually. e.g. asadmin start-domain, and it started fine. I can stop it from Eclipse, but as soon as I try and start it again I get the CREDENTIAL_ERROR. Grrrrhhh!!!
I also spotted this entry in the eclipse .log file...
!MESSAGE GlassFish: error reading one jmx portjava.lang.NumberFormatException: For input string: "${JMX_SYSTEM_CONNECTOR_PORT}"
...which may be relevant as the final line of a verbose manual startup of the server looks like this...
[#|2012-04-09T15:33:16.625+0100|INFO|glassfish3.1.2|javax.enterprise.system.jmx.org.glassfish.admin.mbeanserver|_ThreadID=41;_Thre
adName=Thread-23;|JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://HOME:8686/jndi/rmi://HOME
:8686/jmxrmi|#]
Many thanks
Chris
SOLVED
Darn it. Just after posting this, I stumbled upon this link...
http://java.net/jira/browse/GLASSFISHPLUGINS-72
...which suggested that the Anti-Virus (not the firewall) being the culprit and lo and behold, it was. I removed port 8080 from scanning and the server fired up without a problem.
Now I need to work out if I've opened up a security hole.
UPDATE
I decided to install a separate Glassfish instance and the problem started over again. In then end I discovered that I had to disable the NOD32 HTTP Scanner entirely to allow the server to start. Re-enabling it got the CREDENTIAL_ERROR again. There didn't seem to be any configuration setting that would get around this. I'll have to fire an email off to ESET to see what they suggest.
I'm working with about the same configuration. Only my eclipse is Version: Indigo Service Release 1, and I work in an environment where it isn't allowed to disable a firewall.
In my case it helped to switch to a previous version of Java (jdk6-u30), which wasn't what I intended. So I installed the newest version of the JDK at this moment: jdk1.7.0_04, and used this as the -vm value in de eclipse.ini.
This still left some complains about a Currentversion of 1.7 when 1.6 was expected by our version of Glassfish's asadmin. Which were worked around by changing the registry back to 1.6, instead of the 1.7 version added by the installation of the jdk1.7.0_04.
After these changes I could start and stop Glassfish from within eclipse without the CREDENTIAL_ERROR.
So I created a Websphere Application Server in Eclipse and pointed it at my WAS_HOME and the profile I created. Whenever I try to start the server, it starts fine and according to the log I see...
[2/22/12 14:16:25:037 EST] 00000000 WsServerImpl A WSVR0001I: Server server1 open for e-business
However, Eclipse says it is still waiting to start, typically it sticks at 23%. Eventually it times out saying it couldn't start, however, the instance is still up and running fine.
How do I get it to recognize the running instance?
Your workspace folder/name could be the issue.
or for me it was the WAS installation itself. When I moved it to C:\was8 everything started to work properly. The default puts it into c:\Program Files... and that was hanging at 23%
a. Please use websphere jre to replace sun hotspot vm to launch the eclipse, like below setting in the eclipse.ini
-vm
D:/IBM/WebSphere/AppServer/java/bin/javaw.exe
b. Please make sure there is not a specail character (like 23%) in the websphere path or eclipse workpsace.
Recently, I've got the same problem with Eclipse Luna and Websphere Developer Tools... The problem was the eclipse proxy configuration
Increase the initial and max heap sizes of the VM that is loading Eclipse.
I have reinstalled java JDK 6.0.25,(after some problems installing java, finally succeeded). I have set paths (JAVA_HOME points to C:\Program Files\Java\jdk1.6.0_25 and in Path also added C:\Program Files\Java\jdk1.6.0_25\bin).
In eclipse I have pointed everything to this new JDK, also in servers. When I have installed Glassfish 3.1, after installation the domain wasn't created. So when I add this server in Eclipse, the domain wasn't found.
So I did extract an ZIP version of Glassfish and in Eclipse configure the server to this ZIPPED Glassfish. Also I have installed tomcat 7.0.14 again and add to eclipse but both did not work.
Main problem: When I start Tomcat or Glassfish in Eclipse they don't start. Tomcat is starting but after 45 seconds it says, that the time is run out. I have read the forums to increase starting time, I have putted it to 240 sec, but it does not work, because it pop out error in which sazs, that the port is already used by a different server.
By Glassfish, when I start it, its starting, but after few minutes gives me error: Failed to start. It looks like some ports or something is blocking this servers. I have turned off firewall also and antivirus but nothing.
I have looked all the forum about "not starting Glassfish or Tomcat" but didn't found the solution. I don't want to reinstall windows for this.
So if anyone know anything about this problem, please HELP.
Update:
I've tried to change the ports in domain.xml and checked with netstat -b (everything was established), but the server (Glassfish) didn't start. It shows an error "Server GlassFish Server Open Source Edition 3 (Java EE 6) at localhost failed to start.". I've also tried install "built in Eclipse" Glassfish from marketspace and from "Install new software" from eclipse, but it comes out with the same error. Currently, for needs I'm using XP Mode in Windows 7, there servers work, without any problems.
It seems your installation odyssey messed up your system.
But you should get it working without reinstalling Windows. Maybe the fragment of an old server installation blocks the ports Glassfish and Tomcat need for operation.
Try the following:
Check which ports your "new" servers try to access (should be something like 8080 and should be written in server logs during startup)
Use netstat -b (from cmd started with admin rights) to check which application blocks this / these ports (could be java.exe if there is an old installation still hanging)
Remove the old installation (uninstall or disable service)
Try again to start your new server(s).
Try tell to GF or TC to bind the default web listener other port than 8080, because this is a root of problem.
I doesn't know well TC, but in GF case, this is very easy. Simply edit $GLASSFISH_HOME/domains/domain1/config/domain.xml and find something similar:
<network-listener port="8080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>
And replace 8080 with other port (but not same with TC). In your case I could choose 8888 which is easy to remember but you can pretty sure this is differs from TC's port.
Note: Edit this file before you start GF!