I'm attempting to setup a database in my Netbeans project, however for some reason I'm unable to give access to the root user account. I'm following the tutorial seen here: https://netbeans.org/kb/docs/javaee/ecommerce/setup-dev-environ.html, which states I need to select root#localhost. But as you can see I have no such option, despite having the user setup in MySQL.
Any ideas? I've restarted the server several times and disconnected/reconnected from within Netbeans.
You have to register the MySQL server in NetBeans first
and
both taken from setup the dev environment
Related
Should I do the "Embedded Database" if I want the program I created with the database to be able to access another computer?
I finally export my Java application as an executable file/application file, but my only problem is that its database needs to be always connected to the database I created. So, when I run it, It runs perfectly but I cannot access my database unless the NetBeans is running in the background. But I want it to be able to run independently without NetBeans and needing to connect to the database every time so that I can run it to my other computer. I read that I should create an embedded database so that when I try to open the file to another computer, the database is included.
Is my understanding right? I created a database using JDBC.
if you want to connect to your database in other computer,you'd better create your database on Server which connected to the Internet.
It depends on the type of application which you are going to develop.
If your application is a single-user standalone system then it's perfectly fine to use an embedded database. Example: Single-player game.(In here application's database is hosted within the user's machine so other users can't access those data)
But if you are developing an application which is having more than one user and those users need to share their data with others then you should go for a database like Amazon RDS which is hosted on the cloud, because then you can share those data among all the users.
(Ex: Microsoft Teams Application)
Finally, I should say yes you don't need to have NetBeans working if you select either one of those options.
I am a 2 months olds developer in Java Web development (New Job). I want to check for a way to setup local development with IDE & able to debug/work with remote web server.
The current practise in my company is access the web server with sftp (WinSCP), edit file with any text editor, and upload back to linux web server, then either compile the java file & restart in webserver or refresh the content after uploaded the jsp file.
The company is currently using SVN for version control, the web server can be Oracle iPlanet Web server or Apache Tomcat server.
I had go through Eclipse Remote Debugging but I cannot tell which project should I create at the beginning.
I tried to start with normal Java project, but unable to connect with the server.
Do forgive me if I asked this question in wrong section/wrong forum or maybe this seem pretty basic for you, and do point out which action I did wrongly and I supposed to find out more info/knowledge before proceed. Please do not use Intellij IDEA IDE (PAID IDE) as reference, due to currently is just my own idea to suggest a change from current development process in company, with no financial back up.
For database, I am totally satisfy with using Oracle SQL Developer to connect and develop.
Thanks for reading this.
I am trying to build up a Java (Java version build 1.8.0_11-b12) Maven Web Application (built up in NetBeans 8.0) that runs on Wildfly-8.1.0.Final using JPA (EclipseLink JPA 2.1) for accessing a MySQL database. The host system is Ubuntu 14.04 64Bit.
I have successfully created the datasource on Wildfly to the database on MySQL. Testing the connection sends back a message saying it was successful. Therefore, I think Wildfly should be working fine.
I then created a very simple Entity Class "Dog.java" for persisting.
The problem comes up when I compile the WAR file and copy it for deployement on the Wildfly server. Wildfly sends back endless yellow warning messages and I am not able to kill Wildfly or Java. The only way out is to restart the entire operating system.
Does anyone know this problem? Or das anyone see any problem in my configuration?
Does maybe anyone know a Howto somewhere on the net that explains Step-by-Step how to create a Web Application for Wildfly accessing a database with JPA? I already tried to find one, but was not successful.
Every help highly appreciated! Thanks in advance!
Have a look at the WildFly Quickstarts.
I would like to ask a question about jar and database connection. I performed an application and converted to jar file. Jar file works if I open NetBeans's Service which is server(I have created my tables on jdbc:derby://localhost:1527/sample). But I want to open jar file without opening NetBeans and its service server. The application should work on other PCs if the jar file clicks.
I have searched a lot about this but I do not know how I can do. For example, if I use file database (MSAccess) with ucanaccess driver, will this support JPA(Entity Beans) and JDBC ? Because I have used JPA and JDBC together in my application. I have also searched embedded database but when I create the embedded database and table, I can not access table. It gives me an error which is "Table/View does not exist".
Please help me.
What should I do if I use JDBC and JPA together in my application ?
And If I want to open the jar file other PCs and they can reach database information, what should I do ?
Best regards.
I am new to derby+Netbeans, but from your explanation and this link -
https://netbeans.org/kb/docs/ide/java-db.html#configuring
It seems you are using internal Java DB which comes with Netbeans Glassfish server.
Therefore when you start the server from netbeans it works.
Try external installation of database as shown in the above given link. It should work outside Netbeans.
I have built a java web application on Eclipse. But i am naive in terms of making an application live i.e. deploy it online. I have tried using Cloudbees, and succeeded in deploying it at run#cloud there, but could not see it actually running. I haven't purchased any domain name as of now, therefore I would like to try it on any free domain first. If I want to make that application live, what would be the exact steps that I'll have to follow ?
Use Redhat Openshift Cloud...
Redhat Openshift is a Cloud based service which provide PAAS(Platform As A Service) i.e. Use their Server and upload our Project.
Redhat Openshift also provides MySql , Postgre and MongoDB.
It Easy to understand, Simple to Configure and Auto-Scalable.
Redhat Openshift supports:
https://dl.dropbox.com/u/24576260/Redhat%20Support.png
There are alternatives of Redhat Openshift - Google App Engine (GAE). But GAE restrict some of the class usages in Trial Verison.
Whereas Openshift have kept open and whatever user wants he can use and configure it.
Try Jelastic.
They have a free trial as well.
PS: Works for me each time.
If you have deployed successfully to RUN#cloud then your app is already running; there is no need to purchase a custom domain. If you log in to https://grandcentral.cloudbees.com/ and click on the Apps tab, you should see your new application listed; the show in new window link will open the live web page. (This will be http://appid.accountid.cloudbees.net/ where appid is whatever you chose when creating the app, and accountid is rishabh85 or whatever your CloudBees login name is.)
You can also load this page directly from Eclipse, if using the CloudBees SDK (use http://eclipse.cloudbees.com/ to download or http://blog.cloudbees.com/2012/07/getting-started-with-cloudbees-and.html for more information). Configure your account information, and open the CloudBees view (available from the CloudBees toolbar button), and you will see your running apps. A context menu item lets you open the selected app live in a web browser.
Try Google app engine. You can deploy your Web applications and you ll get a free sub domain.
As I have small knowledge of working like this, its very easy. This is to inform you that its works like your own pc. In my last company they had a Windows server.. and Tomcat & MySQL was pre installed on that server. I just place my .war in the proper place & imported the blank DB.. and its starts working :)
Checkout my blog posts on creating a web service from scratch using Cloudbees. It's a series of 7 posts that have everything you need in order to get your service up and running (including an opensource code base with almost everything you need already integrated)
If you just want the fastest way, checkout this youtube video.