Joshva | 1 May 01:15
Picon

Re: procedure for hibernate in netbeans ide using jsp.


I would suggest using Spring 2 with hibernate. It will help make the code a
bit more structured that using hibernate directly. I would also suggest
using JSF (Netbeans Visual Web Pack) rather than JSPs

Felipe Marin Cypriano wrote:
> 
> Take a look on the hibernate docs <hibernate-dir>\doc\reference\en\pdf
> 
> The way you use hibernate on a desktop application and jsp can be the
> same.
> 
> On 4/30/07, hari kishan <harikishan209 <at> gmail.com> wrote:
>>
>>
>> I like to use netbeans with hibernate along with jsp in my webproject,i
>> want the procedure for the hibernate how to run my application using
>> jsp.idownloaded the hibernate
>> 3.2.3 and hibernate enity-manager.how to use this one hibernate. i want
>> the procedure to do this one.
>>                             Please help me.
>> --
>> hari
>>      harikishan209 <at> gmail.com
>>
> 
> 
> 
> -- 
> Felipe Marin Cypriano
(Continue reading)

Radhika | 1 May 04:54
Picon

Re: library refrence problem


Check this tutorial:
http://www.netbeans.org/kb/50/jboss-getting-started.html

Ashuin Sharma Chamorro wrote:
> 
> Hi, im new using netbeans, and programming webapps, so sorry if this is
> too amateur to ask.
> 
>  
> 
> Im developing a Web App, using Netbeans 5.5 and JBoss.
> 
> I have several projects that are contained in a single .Ear project.
> 
> Each project uses some common libraries like struts libraries, and some
> other .jar's,and our business model library.
> 
>  
> 
> My question is, if I have to reference all these libraries directly from
> each project? or do I have to put all the libraries (.jar's) into the
> lib folder in the Application Server, and in each project just reference
> that "lib" folder (JBoss in this case). ????
> 
>  
> 
> What is best??
> 
>  
(Continue reading)

Peter Pis | 1 May 09:01
Picon

Re: Newbin for CVS

And this link explains what NetBeans CVS Support is doing exactly...

http://javacvs.netbeans.org/cvsmodule/usersguide/cvs50-for-cmdline-users.html

Regards,
-Peter

Karthik wrote:
> http://www.netbeans.org/kb/50/cvs-tutorial.html
>
>
http://wiki.netbeans.org/wiki/view/NetBeansUserFAQ#section-NetBeansUserFAQ-VersionControlSystems 
>
>
> http://wiki.netbeans.org/wiki/view/FaqHowToAccessLocalCVS
>
> thanks,
> karthik
>
> zhshqzyc wrote:
>
>> I am not familar with CVS and CVS in NetBeans.
>> How can I learn it by myself?
>>
>> Thanks  
>>

Peter Pis | 1 May 09:06
Picon

Re: CVS - Reverting Deleted Packages

Hi,

    "Revert Modifications" should get your deleted files back, but only in case they weren't committed as deleted. Anyway, what is the result of "CVS | Show Changes" performed on the parent folder? Does "Versioning" view show Locally Deleted files?

Regards,
-Peter


Sandro Rama Fiorini wrote:
P { margin:0px; padding:0px } body { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } Hi,
 
I am having some problems with the CVS in NB 5.5.
 
I have deleted a entire packege of my source code. After that, I tried to reload the package by reverting the modification on the parent package, without sucess. I also tried the update command and it didn't work either.
 
I know I can check-out the project in another directory and copy the deleted packege, but I am looking for a more elegant solution.
 
Somebody can help me?
 
Thanks,
Sandro Fiorini
 

Obtenha o novo Windows Live Messenger! Experimente!

mfa | 1 May 09:23
Picon
Favicon

how change sessionbeen query dynamicly in vwp


hi master 
sir i use vwp with oracle 10g
sir i use master table in listbox and detail table in table compunent

user select from listbox how pass that in sessionbeen query  and sessionbeen
give result in table as per listbox parameter

please give idea and sample

thank's

aamir

--

-- 
View this message in context: http://www.nabble.com/how-change-sessionbeen-query-dynamicly-in-vwp-tf3673683.html#a10265406
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Alfred Teng | 1 May 14:50
Picon

help on netbeans JNDI resources and deployment error

Hi,
I am a new user of netbeans and have two problems that I am trying to find solution.  Googling it did not yield answer.
 
Problem 1) I followed the example to connect to Mysql at http://www.netbeans.org/kb/55/mysql-webapp.html
 
However, when I run the project, my resource references for the JNDI resources in web.xml gets automatically removed.
 
Similarly for the <resource-ref> settings in sun-web.xml.
 
Any ideas ?
 
Problem 2) I have another nb project that is working. However, when I make some trivial changes (e,g adding system.out.println)
I get a deployment error as follows :
 
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.getFileArchive (DirectoryDeploymentFacility.java:186)
        at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.incrementalDeploy(DirectoryDeploymentFacility.java:77)
        at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.incrementalDeploy (DirectoryDeployment.java:154)
        at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.incrementalDeploy(DirectoryDeploymentFacade.java:123)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy (TargetServer.java:502)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:106)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
        at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java :369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets (DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
        at org.apache.tools.ant.module.run.TargetExecutor.run (TargetExecutor.java:293)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
Caused by: java.io.FileNotFoundException: C:\Program Files\netbeans-5.5\${com.sun.aas.installRoot}\javaeetutorial5\ttwexamples\web\auction\build\web
        at com.sun.enterprise.deployment.deploy.shared.FileArchive.open(FileArchive.java:66)
        ... 22 more
java.lang.IllegalStateException: cannot find FileArchive class...
        at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeploymentFacility.incrementalDeploy (DirectoryDeploymentFacility.java:79)
        at org.netbeans.modules.j2ee.sun.bridge.DirectoryDeployment.incrementalDeploy(DirectoryDeployment.java:154)
        at org.netbeans.modules.j2ee.sun.ide.j2ee.incrdeploy.DirectoryDeploymentFacade.incrementalDeploy (DirectoryDeploymentFacade.java:123)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:502)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java :106)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java :364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java :1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets (Project.java:1068)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
        at org.netbeans.core.execution.RunClassThread.run (RunClassThread.java:131)
C:\Sun\SDK\javaeetutorial5\ttwexamples\web\auction\nbproject\build-impl.xml:461: Deployment error:
cannot find FileArchive class...
See the server log for details.
BUILD FAILED (total time: 4 seconds)
 
 
however, when i change the context root in sun-web.xml (e.g by adding an extra space).  It gets compiled ok.  Is there a setting that I need to make ?
 
 
Thanks in advance..
 
 
 
 
Asaf | 1 May 14:50
Picon
Favicon

NB 6 - UnsupportedOperationException


Hey,

I tried to upgrade to today's Netbeans 6 Dev Build, any file I
open/save/method I write I get the following exception:

java.lang.UnsupportedOperationException: This operation is not implemented
yet.
	at
org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsImpl.getEmbeddable(EntityMappingsImpl.java:349)
	at
org.netbeans.modules.j2ee.jpa.model.ModelUtils.getEmbeddable(ModelUtils.java:35)
	at
org.netbeans.modules.j2ee.jpa.verification.JPAProblemFinder.findProblemContext(JPAProblemFinder.java:170)
	at
org.netbeans.modules.j2ee.jpa.verification.JPAProblemFinder.access$100(JPAProblemFinder.java:64)
	at
org.netbeans.modules.j2ee.jpa.verification.JPAProblemFinder$1.run(JPAProblemFinder.java:104)
	at
org.netbeans.modules.j2ee.jpa.verification.JPAProblemFinder$1.run(JPAProblemFinder.java:94)
	at
org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsMetadataModelImpl$1.call(EntityMappingsMetadataModelImpl.java:53)
	at
org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$1.run(AnnotationModelHelper.java:116)
Caused: java.io.IOException: This operation is not implemented yet.
	at
org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$1.run(AnnotationModelHelper.java:121)
	at
org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper$1.run(AnnotationModelHelper.java:130)
	at
org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:487)
Caused: java.io.IOException
	at
org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:503)
	at
org.netbeans.modules.j2ee.metadata.model.api.support.annotation.AnnotationModelHelper.userActionTask(AnnotationModelHelper.java:110)
	at
org.netbeans.modules.j2ee.persistenceapi.metadata.orm.annotation.EntityMappingsMetadataModelImpl.runReadAction(EntityMappingsMetadataModelImpl.java:51)
	at
org.netbeans.modules.j2ee.metadata.model.api.MetadataModel.runReadAction(MetadataModel.java:87)
	at
org.netbeans.modules.j2ee.jpa.verification.JPAProblemFinder.run(JPAProblemFinder.java:93)
	at
org.netbeans.modules.j2ee.jpa.verification.JPAProblemFinder$ProblemFinderCompInfo.run(JPAProblemFinder.java:304)
	at
org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1373)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[catch] at java.lang.Thread.run(Thread.java:619)

Any idea?

Thanks.
--

-- 
View this message in context: http://www.nabble.com/NB-6---UnsupportedOperationException-tf3674871.html#a10268608
Sent from the Netbeans - Users mailing list archive at Nabble.com.

Erkka Marjakangas | 1 May 14:55
Picon

NetBeans IDE errors trying to access local or remote Sun Java System Application Server 9

Hello!

I've just recently downloaded NetBeans 5.5 Windows IDE and enterprice pack
bundled with Sun Java System Application Server 9.

Installation was simple and everything seemed to be working nice, except I
cannot start/stop/refresh/view serverlogs or anything in relation to locally
installed Sun Java System Application Server 9.

My other machine has this working ok AND as far as I can see the Application
Server is functioning ok as well. I can access it remotely from desktop
machine, I can remotely deploy applications to it and browse
Application/Resources/JVMs and JBI. Starting applications and seeing them
run works also. Local administration pages (localhost:4848) works as well on
both the machines. I do not detect any errors in the Application Server logs
either (and why I should, it sems to be running ok).

The laptop (with Windows XP Home) NetBeans IDE cannot "see" the local
application server. If AppServ is stopped, it can be started, but it hangs
for few minutes and then error is displayed, complaining server could not be
started (when actually it WAS started). From the Laptop I cannot similarily
refresh/see the other remote server either (but other way round from desktop
computer both work well).

I've eliminated:
- firewall issues (remote and local access otherwise work ok as described
above) (and firewall completely disabled during installation and running)
- application server configuration issues (well, deploying app. remotely
works and it can be run from remotely or locally outside netbeans IDE)
- viruskiller(disabled during installation and during running)
Is there somthing from which I could see why the netbeans cannot access the
local Application Server (or the remote one!)
- Not a performance issue either, 2 gigabytes of memory, 100 GB striped 
disks, dual core CPU.

Last three lines in debug window are as follows, BUT still the attached 
error is being displayed.
Self Management Rules service is enabled
Application server startup complete.
JBISE6013: JavaEEServiceEngine : Java EE Service Engine started 
successfully.
BPEL service engine started

Attached is server log and error message form netbeans IDE.

I've reinstalled several times(the laptop installation), changed ports and 
so on (in assumption it was the AppServer problem). It appears to be a 
problem with NetBeans IDE.

Btw. the laptop is able to run the bundled tomcat without problems (from 
IDE)

Is there any other log / debug trace I could observe to see why the (laptop) 
NetBeans IDE cannot access local or remote Appservers.

Thanks for any insight!

Erkka Marjakangas
Vic Ricker | 1 May 15:15
Picon

Re: cannot pass a literal short to a method

Did you try casting the literal integer to short?

For example: myMethod((short)10);

tapperta wrote:
> no, using 1.6.
>
> the lexical.html doesn't really say anything about shorts.  I can declare a
> short and assign it a value like s = 10; and then throw s into a method that
> takes a short, but I can't throw 10 into a method that takes a short.  I
> just seems like it shouldn't be that way.  If this is how the language is
> though, then so be it, I'll declare my shorts before I throw them into
> methods, but it just seemed like something maybe wrong with my setup since
> this seems like it should be legal.
>
>
> Karthikeyan Rajeswaran wrote:
>   
>> From 
>> http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.1
>>     An integer literal is of type long if it is suffixed with an ASCII 
>> letter L or l (ell); otherwise it is of type int....
>>
>> Also: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4974939 : 
>> autoboxing from literals
>>     This bug is marked as fixed in  1.5(b40). Are you using an earlier 
>> jdk version?
>>
>> thanks,
>> karthik
>>
>> tapperta wrote:
>>
>>     
>>> I'm not sure who or where to ask on this one.
>>>
>>> public void myMethod(short i){...}
>>>
>>> calling this with:  myMethod(10);
>>>
>>> gives me a compiler error about how a method named "myMethod" that takes
>>>       
> an
>   
>>> int doesn't exist.
>>>
>>> what an embarrassing question to ask, but why does the compiler assume
>>>       
> that
>   
>>> I am passing an int?  
>>>  
>>>
>>>       
>>     
>
>   

--

-- 
Vic Ricker
http://www.ricker.us/

Brandon Dohman | 1 May 16:14
Picon
Favicon

using more ram for startup

I know there was a post before on how to change the amount of ram used 
during netbeans startup, but I am not able to find it.  Can anyone point 
me to where it might be.

Thanks
BD


Gmane