Gregg Sporar | 1 Feb 01:04
Picon

Re: Default Lookup

I don't know the answers to your questions.  But just FYI, if you don't 
see an answer posted here then please try posting these questions to 
dev <at> openide.netbeans.org - that's where the users of the NetBeans 
platform hang out.   :-)   More information about the mailing lists 
available here: http://www.netbeans.org/community/lists/top.html#top

HTH,
Gregg Sporar

Kristof Taveirne wrote:
> Hi,
>
> I've just started out using Netbeans RCP and there are a few things I
> don't really understand.
>
> I just tried to follow the steps as described in
> http://wiki.netbeans.org/DevFaqLookupDefault.
> But it doesn't work.
>
> I execute the lookup code in the restored() method as described in
> http://wiki.netbeans.org/DevFaqModulesStartupActions.
>
> The code is executed but no services are found implementing the interface.
>
> I'm using Netbeans 6.0
>
> The code
>
> Collection <? extends MyService> c =
>  Lookup.getDefault().lookupAll (
(Continue reading)

Don Millhofer | 1 Feb 01:19
Picon

Problem with NetBeans and JDBC resource

Hi, I have created JDBC resources and successfully referenced them from an application but though I think I am following the same steps something weird is happening!  When I run the application the 'Resource Reference' I created in the deployment descriptor and the entry in the Server deployment descriptors are removed.  The web site comes up but when I try to access the database I get - No object bound to name java:comp/env/jdbc/MyDatabase

This makes sense to me because the 'Resource Reference's' in the deployment descriptors have been removed.  What would make the IDE remove these references?  It appears to build fine - after the build the references are still there. 

Both the connection pool and the JDBC resource registered fine as server resources.  I have verified that they exist in the Server Admin. Console.

I have created, deleted and recreated the JDBC resources a dozen times with no joy.  Anybody have any idea what I am doing wrong?

This is a Visual Web Project using JSF and NetBeans 5.5.1!  As I said I have used resources successfully in the past.

Any assistance would be greatly appreciated.

Don
Brad Mayer | 1 Feb 02:17
Picon

Re: MacOS NetBeans 6.0 and Visual Library

Sean,

Well that is even stranger.  Are you able to do the following:

- Click the New Project button on the IDE toolbar to bring up the New 
Project dialog;
- Select NetBeans Modules under Categories;
- Select Modules under Projects and click the Next button;
- Select the Standalone Module radio button and
    - See the default NetBeans platform in the listbox
    - Is the Manage... (Platforms) button enabled?

I'm looking further into this, but find no existing bugs.  But the 
problem seems to be with the IDE not letting you bring up the Manage 
Platforms dialog, not from the lack of the Visual Library jar, which you 
can verify by searching for that jar on your OS filesystem.  That will 
save you the work of checking out and building the library.

-Brad

Sean Davis wrote:
> Thanks, Brad.  Interestingly, I cannot choose the "manage platforms"
> button.  It is grayed out.  The platform listed is the one you listed,
> though.  When I go to the "add dependency", the Visual Library is not
> listed.  I went the route of re-installing (but haven't pulled the
> source for visual library from CVS just yet), and the problem remains.
>  Any other suggestions?
>
> Thanks again,
> Sean
>
>
> On Jan 31, 2008 3:54 PM, Brad Mayer <Bradley.Mayer <at> sun.com> wrote:
>   
>> Sean,
>>
>> That's odd - I see no reason that the Visual Library API should not be
>> there for MacOS.  In the IDE, when you bring up the Project Properties
>> dialog and select Libraries, then click the Manage Platforms, does it show
>>
>> NetBeans IDE 6.0 (Build 200711261600) (Default)
>>
>> and in the list of platform modules, can you scroll down and see "Visual
>> Library API"?
>>
>> If not, since the Visual Library is part of the base IDE platform and
>> not a plugin, you can either checkout the source for the Visual Library
>> API for the 6.0 build starting at:
>>
>> http://www.netbeans.org/community/sources/cvs.html
>>
>> and build it in the IDE, or uninstall and reinstall the IDE from here
>>
>> http://download.netbeans.org/netbeans/6.0/final/
>>
>> Note I assuming that you did not install NetBeans from theJava EE 5
>> Tools Bundle <http://java.sun.com/javaee/downloads/index.jsp>
>>
>> Regards,
>> -Brad
>>
>>
>> Sean Davis wrote:
>>     
>>> I am VERY new to Netbeans and was following along with one of the
>>> Visual Library tutorials when I noticed that on MacOS, there is not a
>>> Visual Library available for use as a dependency.  Is this expected?
>>> If so, is there a way to install it?
>>>
>>> Thanks,
>>> Sean
>>>
>>>       
>> --
>> /**********************************************************************/
>>
>> Brad Mayer
>> Technical Support Engineer, DPG CIS
>> Sun Microsystems, Inc. - Sun Developer Platforms Group
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> NOTICE:  This email message is for the sole use of the intended
>> recipient(s) and may contain confidential and privileged information.
>> Any unauthorized review, use, disclosure or distribution is prohibited.
>> If you are not the intended recipient, please contact the sender by
>> reply email and destroy all copies of the original message.
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> /***********************************************************************/
>>
>> I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried
to contact us. » [Bill Watterson]
>>
>>
>>
>>
>>
>>
>>
>>     

-- 
/**********************************************************************/ 

Brad Mayer
Technical Support Engineer, DPG CIS 
Sun Microsystems, Inc. - Sun Developer Platforms Group 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
NOTICE:  This email message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. 
Any unauthorized review, use, disclosure or distribution is prohibited. 
If you are not the intended recipient, please contact the sender by 
reply email and destroy all copies of the original message. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/***********************************************************************/

I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to
contact us. » [Bill Watterson] 

Jody Schering | 1 Feb 02:55

RE: Failed to Start Tomcat on Mac OS 10.5.1

My answers are marked with *.

    - IDE timeout: refresh the server node to see if it's running now.

*The IDE seems to timeout because Tomcat is running but Netbeans can't connect and seems to think it wasn't
able to Start Tomcat.

    - Port conflicts. (use netstat -a to detect possible port numbers 
already used by the operating system.)

*I don't see any port conflicts.

    - Incorrect server configuration (domain.xml to be corrected manually)

*I was unable to find the domain.xml file for Tomcat only for GlassFish.

    - Corrupted Deployed Applications preventing the server to 
start.(This can be seen in the server.log file. In this
case, domain.xml needs to be modified).

*Again, the server starts, but the Netbeans doesn't seem to recognize that its running and seems to think it
failed to start it even though it has been started. 

    - Invalid installation location....
*I installed Netbeans using the default installation.

Can you open the server manager (Tools | Servers), select the tomcat 
server and check if the values look okay (especially in Connection and 
Startup tabs)?
*Everything in the server manager looks fine nothing seems to be missing.

Anyone have any other suggestions. This is driving me nuts. . . 

thanks,
Jody

-----Original Message-----
From: Karthik [mailto:Karthikeyan.Rajeswaran <at> Sun.COM]
Sent: Mon 1/28/2008 4:34 PM
To: nbusers <at> netbeans.org
Subject: Re: [nbusers] Failed to Start Tomcat on Mac OS 10.5.1

A similar issue has been filed against glassfish at:
    http://www.netbeans.org/issues/show_bug.cgi?id=115607
    ...Possible reasons include:
    - IDE timeout: refresh the server node to see if it's running now.
    - Port conflicts. (use netstat -a to detect possible port numbers 
already used by the operating system.)
    - Incorrect server configuration (domain.xml to be corrected manually)
    - Corrupted Deployed Applications preventing the server to 
start.(This can be seen in the server.log file. In this
case, domain.xml needs to be modified).
    - Invalid installation location....

Can you open the server manager (Tools | Servers), select the tomcat 
server and check if the values look okay (especially in Connection and 
Startup tabs)?

regards,
karthik

Jody Schering wrote:
> Hi Sorry for the late reply, I am able to start, stop, and restart the server from the services navigator. It
does not work when I click run or debug. Also, I do not have this problem on Windows XP. Any other suggestions?
>
> Here's the exception I receive:
> org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting of Tomcat failed.
>         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1270)
>         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224)
>         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035)
>         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912)
>         at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417)
> [catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140)
>         at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
>         at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
>         at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
>
> -Jody
>
>
> -----Original Message-----
> From: Karthik [mailto:Karthikeyan.Rajeswaran <at> Sun.COM]
> Sent: Thu 1/3/2008 6:59 PM
> To: nbusers <at> netbeans.org
> Subject: Re: [nbusers] Failed to Start Tomcat on Mac OS 10.5.1
>  
> Does it work correctly with the following sequence:
>     - Delete userdir
>     - Start the ide
>     - Start the tomcat server from services navigator
>     - Stop the tomcat server
>     - Start the server again.
> (In other words, start the server without deploying the webapp on that server).
>
> regards,
> karthik
>
>
>
> Jody Schering wrote: 
>
> 	I don't see any exceptions in the log. All I get is "Failed to Start Tomcat". 
>
> 	 
>
> 	Jody
>
> 	 
>
> 	From: Fabrizio Giudici [mailto:fabrizio.giudici <at> tidalwave.it] 
> 	Sent: Thursday, January 03, 2008 11:21 AM
> 	To: nbusers <at> netbeans.org
> 	Subject: Re: [nbusers] Failed to Start Tomcat on Mac OS 10.5.1
>
> 	 
>
> 	 
>
> 	On Jan 3, 2008, at 20:16 , Jody Schering wrote:
>
> 	
> 	
> 	
>
> 	Hi, I recently installed Netbeans 6.0 with Tomcat 6.0.14. I created my web project and can Run the project
through Netbeans the first time. After I stop it and restart it I get the error "Failed to Start Tomcat", but
it is actually running and Netbeans doesn't recognize it. I can get it to work only after I've deleted my
.netbeans directory, but each time after I stop the server Netbeans doesn't recognize it and says "Failed
to Start Tomcat".
>
> 	 
>
> 	 
>
> 	Any exception in .netbeans/var/log/**?
>
> 	 
>
> 	-- 
> 	
> 	
>
> 	Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
>
> 	Tidalwave s.a.s. - "We make Java work. Everywhere."
>
> 	weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
>
> 	Fabrizio.Giudici <at> tidalwave.it - mobile: +39 348.150.6941
>
> 	
> 	
> 	
>
> 	 
>
>
>
>   

Arnick | 1 Feb 03:00
Picon
Favicon

Deploying GlassFish 2.0


Very begginer question.  I'm using NB 6.0 with GlassFish V2.  I just
reigistered a web domain name, and had it point to my IP address.  

How do I change the setting in NetBeans such that the GlassFish V2 responds
to the request coming from outside?  Right now, it's just running as
localhost.

Thanks.
--

-- 
View this message in context: http://www.nabble.com/Deploying-GlassFish-2.0-tp15219178p15219178.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Brad Mayer | 1 Feb 03:06
Picon

Re: PhotoAlbum Application

Hi, 

I get the same result in NetBeans 6, in fact I get a lot of NPE and SQLE 
errors from the layout panel components in the Design View.

One issue is that the PhotoAlbum sample you are using is that it was 
never moved over to NetBeans 6.0, at least according to: 
http://wiki.netbeans.org/NB6SampleApps

There is a "PhotoAlbum" sample listed, but it is a MIDP app, not a VWP app.

You may have to follow:

http://www.netbeans.org/community/magazine/html/03/visualwebdev/

to fix it for NetBeans 6.  You wouldn't have to say you are a newbie 
with NB after that :-)

Regards,
-Brad

shenh1 wrote:
> I am a newbie to netbeans & am trying to get the PhotoAlbum application to
> work on Netbeans 6 on a Windows XP platform.
>
> Following the instructions on
> http://testwww.netbeans.org/kb/55/phtoalbum.html and when I tried to run the
> project, I get a:
>
> <table id="form1:table1" style=";width: 364px" class="Tbl" border="0"
> cellpadding="0" cellspacing="0"
>
> in the browser. Is there some modules/plugin I am missing? Any help would be
> appreicated!
>
>   

-- 
/**********************************************************************/ 

Brad Mayer
Technical Support Engineer, DPG CIS 
Sun Microsystems, Inc. - Sun Developer Platforms Group 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
NOTICE:  This email message is for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. 
Any unauthorized review, use, disclosure or distribution is prohibited. 
If you are not the intended recipient, please contact the sender by 
reply email and destroy all copies of the original message. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/***********************************************************************/

I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to
contact us. » [Bill Watterson] 

Arnick | 1 Feb 03:16
Picon
Favicon

Re: NetBeans very Slow


There is some undesirable interaction between NetBeans and Explorer that
slows everything down.

I'm using NB 6.0 (GlassFish V2.0) on Windows Vista with Internet Explorer
7.0, and my empty web application with one blank page literally takes around
two minutes for the IE 7.0 to load the blank page and be responsive.  

Is there a known bug with NB web application launch time and IE 7.0 (or with
any setting above), as suggested above?  I can't believe how long this is
taking, and seems like such an apparent bug to have escaped people's notice. 
Any help would be greatly appreciated.

Thanks.

--

-- 
View this message in context: http://www.nabble.com/NetBeans-very-Slow-tp12076596p15219337.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.

ITVGuy2000 | 1 Feb 03:44
Picon
Favicon

Re: NetBeans very Slow


Well it hadn't escaped my notice, and no one every confirmed my experiences.
You are the first. It was amazing how much better everything ran once I
started to use Firefox exclusively.

My experiences were based upon Explorer 6 on XP with NB 5.5.1  (at the time)
and earlier versions of Glassfish.

Good luck! My only other suggested for improving your performance is to
break project into smaller project (seems like something that you shouldn't
have to do, and in your case (one blank page) is a non-issue).

ITVGuy2000 wrote:
> 
> There is some undesirable interaction between NetBeans and Explorer that
> slows everything down.
> 
> I'm using NB 6.0 (GlassFish V2.0) on Windows Vista with Internet Explorer
> 7.0, and my empty web application with one blank page literally takes
> around two minutes for the IE 7.0 to load the blank page and be
> responsive.  
> 
> Is there a known bug with NB web application launch time and IE 7.0 (or
> with any setting above), as suggested above?  I can't believe how long
> this is taking, and seems like such an apparent bug to have escaped
> people's notice.  Any help would be greatly appreciated.
> 
> Thanks.
> 
> 

--

-- 
View this message in context: http://www.nabble.com/NetBeans-very-Slow-tp12076596p15219635.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Shane Blake | 1 Feb 04:01
Picon

Re: Deploying GlassFish 2.0

You will need to configure a Virtual Host to accept connections to the external domain name.

- Shane

On Feb 1, 2008 1:00 PM, Arnick <carnegiedev <at> yahoo.com> wrote:

Very begginer question.  I'm using NB 6.0 with GlassFish V2.  I just
reigistered a web domain name, and had it point to my IP address.

How do I change the setting in NetBeans such that the GlassFish V2 responds
to the request coming from outside?  Right now, it's just running as
localhost.

Thanks.
--
View this message in context: http://www.nabble.com/Deploying-GlassFish-2.0-tp15219178p15219178.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.


Sean Carrick | 1 Feb 04:13
Picon

Re: Java Executables on linux



On Jan 31, 2008 2:48 PM, Wade Chandler <hwadechandler-nb <at> yahoo.com> wrote:

Naaa, I think you're on a limb with this one Johnny. I don't think it is some kind of a conspiracy at all. It is just a different model. Linux just uses a different association model than other things such as looking at the first line of a script and using the bang, and it has just been that way.

On this one, Wade, I've got to ask your opinion...Why, do you think, that Java doesn't provide the she-bang notation for programs?  When you stated this line above, it got me to thinking...If one is writing a shell script, the first line would be `#!/bin/bash`...If one was writing a Perl script, the first line would be `#!/usr/bin/perl`...With Python, again `#!/usr/bin/python`.  Since this is the common practice on Linux, I wonder why Sun didn't think to incorporate it into the Java language!  I mean, this could be the most basic and simple solution to Johnny's issue...Sun should incorporate a construct like the she-bang in other languages.  For example, what would be wrong with `/*/usr/local/bin/java*/`?  Then, the JVM could simply look for that comment line at the top of the main class.  I don't know...I suppose that I can see some problems with it, but still...I think that it would probably be worth a try, anyway...Just my $0.02...

Cheers,

Sean Carrick
PekinSOFT Systems
PekinSOFT <at> gmail.com


Gmane