netbeans

Problems calling a web service from another web service with netbeans and jax-ws

I want to expose a web service on one node that defers onto the same web service contract on another node, basically then, proxy the web service, both nodes running glassfish. I am using netbeans and jax-ws and I cannot get it to work. I generate the web service server part and the web service client part and use the same dto's. So the ...

Access denied when attempting to connect to MySQL from jsp in NetBeans

I'm trying run a simple Java/MySQL web app tutorial in NetBeans. I am able to connect to my database from a standard Java program in NetBeans, and Tomcat is working. But when I try to connect to the database from a JSP, I get the following error: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection...

Opening a temporary buffer / scratchpad in Netbeans?

I often have to open a secondary editor outside of Netbeans in order to work on temporary bits of text outside of my project files. Is there a way to create temporary files in Netbeans without adding them to a project? File -> New expects every file to be part of a project. ...

Creating database (not populating it) through Ant build file.

Hi all. I've managed to do some ant-script to populate my databases.. (simple script that runs some .sql files, like 'create', 'populate', 'drop', etc.) Is there any way in hell that an ant-script can create the database itself from scratch? This is for JavaDB-Derby (from the glassfish bundle). Since it's a project for university, we f...

How to document a Class and shows its constructor params when instantiating, using Netbeans autocomplete?

I'm documenting the company framework for use with our default IDE (Netbeans). It's normal that we send as params a new Object, like here: $this->addControl(new TextControl('name', 'value')); I could document the __construct() params at the normal place, but they aren't showed when you do a new <ctrl+space>. So I tried to move this d...

Open Implementation (type hierarchy) functionality in NetBeans?

When I have Java code like this: someInterface.someMethod(); how do I get Netbeans to show me which classes have implementations of someMethod() (not the interface). In Eclipse this is done with Ctrl+T, but pressing Ctrl+T on the method did nothing in Netbeans 6.5 and I can't where the type hierarchy functionality is in Netbeans 6.5....

Netbeans SQL select column names with # in the

I have an odd problem with netbeans (6.7.1). Using the built in SQL editor I cannot select any column defined with a # in it's name. It appears that Netbeans is treating this a comment and never passing to the underlying connection. Is there a way to change this? Thanks, David ...

netbeans gui panels don't stay where they are supposed to be

I am trying to create a java gui using netbeans but the swing panels that look great in the IDE are all over the place after I compile and run the program. what can be causing this? ...

What if I want to just group a bunch of files together in a project in Netbeans, but not specify a language per say?

I really just want to use Netbeans as an editor, and I want to be able to open a group of files with it. I don't really want any of the php/java/c++ functionality. (as I'm not really using that). Is there any sort of a "general" or "generic" type of project in Netbeans? ...

Netbeans JTree Linestyle

I'm having difficulties removing the "lineStyle" lines in JTrees using Netbeans. In a standalone program, I'm able to do this: JTree myJTree = new JTree(); myJTree.putClientProperty("JTree.lineStyle", "None"); JScrollPanel myScrollPanel = new JScrollPanel(); myScrollPanel.setViewportView(myJTree); But when I try addi...

Can Netbeans be used as an IDE for Sinatra?

Preface: I'm a big fan of Netbeans for Rails development. I'm just starting my first Sinatra app and it doesn't look like Netbeans provides any IDE support for Sinatra development. Has anyone discovered a solution or did I just miss something? ...

Netbeans: Creating custom build target to let sources be packaged to JAR...?

Hello! I ask the question more specific: Using Netbeans, is there a possibility to create an additional custom build target, which would: either package all project sources along with the binaries into a singe JAR, or package all project sources without the binaries into an additional JAR? Notes: It's not an option for me to mod...

Can't find service method in Netbeans J2EE project

In NetBeans 6.7.1, I have made a j2ee project, In this project I have Servlet that extends HttpServlet, Of whatever little I know about servlets, they should have a service method however in the class in NetBeans I find only thefollowing methods. protected void processRequest(HttpServletRequest request, HttpServletResponse response) ...

How to change NetBeans charset?

I researched on google and I found this article, but my codes still being saved as ansi. Notepad++ has a feature to change/convert the code charset, does someone know if there exists any option in Netbeans? nebeans.conf: netbeans_default_options="-J-Dorg.glassfish.v3.installRoot=\"E:\Programs\sges-v3-prelude\" -J-Dcom.sun.aas.installRo...

How to display the properties of the current selected component in a JPanel using the Netbeans Platform API

I am currently building a small visual designer using the Netbeans Platform. All my components that can be placed on the JPanel show correctly in the Palette Window. What I am struggling to do at the moment, is to let the property window show the properties of the component that was either just dragged and dropped or showing the current...

Facing problem in Netbeans 6.5

Hi, I am using Netbeans 6.5 IDE. In the IDE, errors and warnings are highlighted as and when code is being written. I recently installed a plugin and since then, none of the errors are being highlighted in any code that I type in. Only after I build a project do I get to know about all the errors. The plugin I installed may have deactiv...

Getting Tomcat to play well with Netbeans 6.7 on Linux

I have an external Tomcat server configured to run J2EE applications on my development (Gentoo Linux install) machine. This works great if the server is started prior to opening Netbeans and deploying the code [within the IDE]. This fails when I try to restart the server or to debug the server application. The error I get is that it is u...

Netbeans 6.7 custom variable for ant task

Hi there! I've got a problem which I couldn't solve for a few days, please help me. I'd like to execute an ant-script within netbeans. the script needs a special classpath which a plugin/module made by myself puts into a "global-variable". The variable can be shown using the netbeans "Manage variables"-dialog. So it's working, I guess ...

Excract JPanel into new class in NetBeans

This is similar to this question, except the code is already written. I have JFrame JTabbedPane JPanel X <...> JPanel Y <...> JPanel Z <...> all defined in the same class, but I want to move each panel into its own .java file. I really don't want to manually copy-paste from the underlying .form and .j...

Can NetBeans generate an automatic serial version ID for a Java class?

I would like to remove some warnings for some classes by generating an automatic serial version ID. In Eclipse, this is trivial to do - the IDE can generate one automatically and add it to the class. However, I don't see this functionality in NetBeans. Is it available? If so, where is it? If not, is there a plugin that can enable it? ...