JSF Listbox Error Using Netbeans 5.5 Visul Web Pack

Please see my post on the Java Programming Forum. I'm having a Listbox problem.
http://forum.java.sun.com/thread.jspa?threadID=5115503&tstart=0

The getPersons() code will give an ClassCastException error. Change it to:
   public SelectItem[] getPersons()
   ArrayList<SelectItem> people = new ArrayList<SelectItem>();
   //Start For Loop reading from database into 'item' Object
    people.add(new SelectItem(item.getID() + "",item.getName()));
   // End Loop
/**This line.*/
   return (SelectItem[]) people.toArray(new SelectItem[]{});
   }But this might not be the problem.

Similar Messages

  • Netbeans 6.0 Visual Web Pack and facelets

    Is it current possible to use Netbeans 6.0 Visual Web Pack and facelets and/or Seams?
    If so please point me to some useful resource.

    >
    ...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
    The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
    How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
    Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
    After all.. Garbage in, Garbage out!
    * And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
    Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
    Edit 2 - Added possible alternatives..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
    <j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
    Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

  • Example of use of table on visual web pack (netbeans 5.5.1)

    I want one sample (or article, paper, example ...) that shows how to use the component table (of netbeans 5.5.1 visual web pack) retriving data from ObjectListDataProvider (by use of method .setList(List<MyObject>) ...) populate the table and having one collun with radio button and the way to retrive this especific object (selected by user on radio button).

    The getPersons() code will give an ClassCastException error. Change it to:
       public SelectItem[] getPersons()
       ArrayList<SelectItem> people = new ArrayList<SelectItem>();
       //Start For Loop reading from database into 'item' Object
        people.add(new SelectItem(item.getID() + "",item.getName()));
       // End Loop
    /**This line.*/
       return (SelectItem[]) people.toArray(new SelectItem[]{});
       }But this might not be the problem.

  • JSF-JPA error in netbeans

    hi
    IDE: Netbeans7.1
    Server:Weblogic 10.0
    JSF:2.1
    JPA:toplink essential JPA 1.0
    When i`m inserting JPA in my JSF project following error Shown, Any one have Idea abt it?
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    compile:
    compile-jsps:
    C:\Users\IS678\Documents\NetBeansProjects\GApp\nbproject\build-impl.xml:730:
    Deployment error:
    null
    See the server log for details.
         at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:232)
         at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor117.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:390)
         at org.apache.tools.ant.Target.performTasks(Target.java:411)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
         at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
         at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
    Caused by: java.lang.IllegalThreadStateException
         at java.lang.ThreadGroup.addUnstarted(ThreadGroup.java:843)
         at java.lang.Thread.init(Thread.java:348)
         at java.lang.Thread.<init>(Thread.java:608)
         at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:542)
         at java.util.concurrent.ThreadPoolExecutor.addThread(ThreadPoolExecutor.java:672)
         at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(ThreadPoolExecutor.java:721)
         at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:657)
         at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:78)
         at org.netbeans.modules.j2ee.weblogic9.optional.WLStartServer.startDeploymentManager(WLStartServer.java:195)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1454)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1405)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1210)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:1087)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:1248)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:548)
         at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:516)
         at org.netbeans.modules.j2ee.deployment.impl.DeploymentHelper.deployJdbcDrivers(DeploymentHelper.java:93)
         at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:180)
         ... 16 more
    BUILD FAILED (total time: 10 seconds)

    Are you using MS's XP OS?
    I had this exact same problem with XP home edition when I had it using FAT instead of NTFS. I converted to NTFS and all has been well ever since.

  • Problem: deploy war generated by netbeans 5.5(visual web pack)

    I develop web application with netbeans 5.5,
    deploy to sun app server 9.0 and work correct.
    i deploy jsf1.2 libarary to server, and add weblogic.xml to
    application that consist librery-ref='jsf1.2'.
    i deploy this war file to weblogic 10.
    when i request a page from this application that consist
    netbeans jsf component, throw exception not found setId(valueExpression) in for example: PageTag.class.
    if jsf page only consist standard component, or netbeans component do not include id attribute then page render correct.
    please help me.
    thanks.

    These forums support the Java language, not NetBeans (or any other IDE). If you can't find a matching addon, change to the 5.5 version - or ask this question at the NB site.

  • Could not get Using JPA Within a Visual Web JSF App Netbeans Tut.to work

    [http://testwww.netbeans.org/kb/60/web/web-jpa.html|http://testwww.netbeans.org/kb/60/web/web-jpa.html]
    Hi All,
    I am having difficulty displaying the content of Users table (Derby sample database) despite having followed all the steps provided in Using Java Persistence API Within a Visual Web JSF Application Netbeans Tutorial (http://testwww.netbeans.org/kb/60/web/web-jpa.html).
    It is uncleard from the instruction in step 3, section Creating a Java Persistence Entity Class Representing the Users Database Table - "The Entity Classes dialog dispalys. The IDE displays the database table name Users, and suggests a class name of Users. (Double click this class name to change it.)", but did not provide detail on what class name should it be changed to.
    I have tried building both TestModelApp (SE) and TestWebApp (Visual Web JSF) on JDK 1.6.13, Netbeans 6.5, Glassfish v2r2 and v3 (Prelude) on Windows XP platform without success.
    Any assistance would be greatly appreciated.
    Thanks,
    Jack

    Well, in real world the average professional Java EE / JSF developer doesn't use Netbeans nor Woodstock. Those are really for low-entry developers with zero technical knowledge who on its turn are often incapable of answering problems of your kind. Your question is also too non-technical and visualized and targeted on the wizards of Netbeans. After all your question is simply Netbeans specific, not JSF specific. If you try to ask it the more technical way (thus, at real source code level), you may have more chance on help.
    With regard to JPA specific issues, it unfortunately doesn't have a dedicated subforum yet here at forums.sun.com. You could try the [EJB forum|http://forums.sun.com/forum.jspa?forumID=13] or the [Java EE SDK|http://forums.sun.com/forum.jspa?forumID=136] forum.

  • Runtime Error using JDBC Driver in NetBeans IDE 6.9.1

    Hello,
    I receive a compiler error which reads as follows;
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
    Heres the main body of code i am trying to execute.
    public class Main {
    @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    try{
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    }catch(ClassNotFoundException e){
    System.out.println(e);
    try{
    Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
    while (rs.next()) {
    String s = rs.getString("Name");
    float n = rs.getFloat("Age");
    System.out.println(s " " n);
    }catch(SQLException e){
    System.err.println(e);
    I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
    I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people. I am trying to access the data of these two people.
    From what i can figure out i am getting a runtime error. I have downloaded a folder called "Microsoft SQL Driver 2005 JDBC Driver" which contains the "sqljdbc.jar" executable file. I copied the jar file to the library in "Program files->Sun->javadb" and then added the file to the project libraries section i.e. "Project->properties->add JAR/Folder->sqljdbc.jar" in netbeans.
    I am still getting the same runtime error. Have i the sqljdbc.jar file added in the wrong place?
    Any help would be greatly appreciated.

    Microsoft SQL Driver 2005 JDBC Driver is not the Derby driver.
    You need the correct JDBC driver for the database you are using, you can't simply grab the first one you find.

  • Error while test applet with jcwde simulator using netbeans

    i make applet using netbeans 6.5.. i have compile class and i get no error and results *.class but while I use netbeans service on Javacard simulator.. while I try to connect with entry aid applet i have an error.
    this is error log
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    + +
    + Cannot connect to simulator. Cause: Exception during creating JavaCardSimulatorAdapter +
    + +
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    why this error is happened ?
    thank for your attention.. :D
    By Roni
    Edited by: ronized on Apr 18, 2009 6:35 AM

    Hi,
    As per this part of the trace:
    Exception in SAP Application Integrator occured: Application URL &\#39;:///sap(ZT1KVXBWektldldTeV9QQXBXRjNaWTRBLS1OZmRvZzBRWWY2QmN0WThNUmgqdUlRLS0=)/bc/gui/sap/its/webgui&\#39; is not valid! Please check the protocol and host entries for system &\#39;sapdev&\#39;. at ...
    You can clearly see that the system object 'sapdev' is not configured correctly/at all - you are trying to launch transaction iView
    (WEBGUI) and in order to do so you should configure the 'internet transaction server' category of the system  object
    with the hostname of the ITS server.
    Generally the template is
    <System.Access.ITS.protocol>://<System.Access.ITS.hostname>/sap<ESID>/bc/gui/sap/its/webgui?\....
    So that's why you got
    Please check the protocol and host entries for system ..

  • Unable to make Ajax4JSF work (using NetBeans 6)

    Hi,
    I am trying to integrate RichFaces into a Netbeans Visual Web JSF application. I tried using the following in my jsp code but it seems like the event is not triggered. The action method is never entered into.
    <webuijsf:listbox binding="#{Bean.lstTest1}" id="lstTest1"
                            items="#{Bean.lstAvailableDefaultOptions.options}" rows="8"
                            selected="#{Bean.selectedItem}" 
                            valueChangeListenerExpression="#{Bean.lstTest1_processValueChange}">
                                 <a4j:support action="#{Bean.lstTest1_action}" event="onchange" 
                                           reRender="lstTest1,lstTest2"/>
            </webuijsf:listbox>I have also tried it with a textbox:
    <webuijsf:textField binding="#{Bean.textField1}" id="textField1" >
                               <a4j:support action="#{Bean.lstTest1_action}" event="onkeyup"
                                       reRender="lstTest1,lstTest2"/>
             </webuijsf:textField>Thank you for the help!

    Hi
    I followed exactly the instructions but still cannot get it to work.
    The WEB-INF does not contain a lib directory, I created over there and copied the JAR files.
    Then I tried by creating a LIBRARY in tools and then adding it but still no luck.
    I am using NETBEANS 6 VISUAL JSF
    compiling I get
    D:\Profiles\bgk007\RichFaces3\src\java\richfaces3\ApplicationBean1.java:10: package javax.faces does not exist

  • Web Service tutorial using NetBeans 5.5 fails on OS X Tiger

    I have tried doing this tutorial using NetBeans 5.5 with the Enterprise Pack and Visual Web extensions installed. I am able to get it to run fine on my WinXP machine configured with the same NetBeans 5.5 stuff as the Mac. I have tried it several times always with the same result. Any insight that you can provide will be greatly appreciated.
    The tutorial is located: http://www.netbeans.org/kb/55/websvc-jax-ws.html
    Below is what is being returned in the Output window upon Run:
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    Created dir: /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/classes
    Created dir: /Users/bob/Programming/CalculatorWSApplication/build/web/META-INF
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/META-INF
    Copying 4 files to /Users/bob/Programming/CalculatorWSApplication/build/web
    library-inclusion-in-archive:
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    Copying 1 file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/lib
    library-inclusion-in-manifest:
    Compiling 1 source file to /Users/bob/Programming/CalculatorWSApplication/build/web/WEB-INF/classes
    wsgen-init-nonJSR109:
    Created dir: /Users/bob/Programming/CalculatorWSApplication/build/generated/wsgen/service
    wsgen-CalculatorWS-nonJSR109:
    Problem encountered during annotation processing;
    see stacktrace below for more information.
    java.lang.NoSuchMethodError: com.sun.codemodel.JCodeModel._class(Ljava/lang/String;Lcom/sun/codemodel/ClassType;)Lcom/sun/codemodel/JDefinedClass;
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.getCMClass(WebServiceWrapperGenerator.java:446)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:256)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.processMethod(WebServiceWrapperGenerator.java:141)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitMethodDeclaration(WebServiceVisitor.java:468)
    at com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.processMethods(WebServiceVisitor.java:406)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.postProcessWebService(WebServiceVisitor.java:361)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWebService(WebServiceWrapperGenerator.java:115)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:167)
    at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:345)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:230)
    at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    at com.sun.tools.apt.main.Main.compile(Main.java:938)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:85)
    at com.sun.tools.apt.Main.process(Main.java:67)
    at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:603)
    at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536)
    at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54)
    at com.sun.tools.ws.ant.WsGen.execute(WsGen.java:457)
    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)
    error: compilation failed, errors should have been reported
    wsgen-generate-nonJSR109:
    compile:
    compile-jsps:
    Created dir: /Users/bob/Programming/CalculatorWSApplication/dist
    Building jar: /Users/bob/Programming/CalculatorWSApplication/dist/CalculatorWSApplication.war
    do-dist:
    dist:
    Incrementally deploying http://localhost:8084/CalculatorWSApplication
    Completed incremental distribution of http://localhost:8084/CalculatorWSApplication
    Incrementally redeploying http://localhost:8084/CalculatorWSApplication
    deploy?config=file:/tmp/context18085.xml&path=/CalculatorWSApplication
    OK - Deployed application at context path /CalculatorWSApplication
    run-deploy:
    Browsing: http://localhost:8084/CalculatorWSApplication/CalculatorWS?Tester
    run-display-browser:
    run:
    BUILD SUCCESSFUL (total time: 1 second)

    This problem gets solved if you do NOT provide the Java path to the installer.
    e.g.
    if you have Java in /usr//bin/java
    make sure your PATH does not have /usr/bin....
    so basically which java throw error....Then provide the JRE PATH in oraparam.ini for the installer to start ...
    Give it a try...
    Karurkar

  • "package java.xml.registry does not exist" error in NetBeans

    Hi all
    I'm using netbeans for developing webservices and and have to use JAXR. I have downloaded and installed jwsdp1.5.
    When I view the source code for the JAXR sample java files that accompany the java EE tutorial in the NetBeans IDE Source Editor, I get the error : package java.xml.registry does not exist.
    However, the release note for NetBeans says that it supports JAXR.
    Also, when I compile and run the same files using DOS and the ant command, the files work.
    Can someone please tell me what to do and how to work on JAXR clients in NetBeans because the Help files don't have any documentation on it nor does the NeBeans Field Guide?

    Do you have the jaxrpc-api.jar and jaxprc-ri.jar in your classpath?
    They are in <wspack1.1 installation>/jaxrpc-1.0.2/lib
    Regards,
    Bhakti

  • How to include others jar in my project use netbean

    Hi,
    Here i'm build my project in netbean, in compile source i add jdom.jar. Afer compile, run jar from terminal. But, application can't use and error :
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jpos/
    iso/ISOPackager
    Now, i ask : How to include others lib or jar in my project use netbean
    Rgds,
    Wira S

    Dear All,
    The code In manifest.mf, like :
    Manifest-Version: 1.0
    X-COMMENT: Main-Class will be added automatically by build
    Main-Class: root/Phase3/TesterPhase3/IsolibTester/src/isolibtester/DynamicTreeTester
    Class-Path: root/Phase3/TesterPhase3/jpos/lib/jdom.jar
    When build jar, error :
    error while reading original manifest: error in opening zip file
    Building jar: /root/PHASE3/TesterPhase3/IsolibTester/dist/IsolibTester.jar
    Manifest is invalid: Manifest sections should start with a "Name" attribute and not "Main-Class"
    /root/PHASE3/TesterPhase3/IsolibTester/nbproject/build-impl.xml:273: Invalid Manifest: /root/PHASE3/TesterPhase3/IsolibTester/manifest.mf
    BUILD FAILED (total time: 0 seconds)
    So, i tried add classpath in bash_profile and build.xml, unseccessful
    But, when runing my project from terminal can't found component jdom.jar

  • Using NetBeans and Eclipse to drag and drop forms, controls etc

    Hi, can you use NetBeans and Eclipse to drag and drop like say with C# in MS Visual Studio ?
    like forms and listboxes, textboxes etc ??

    And [this is a good place to start|http://java.sun.com/docs/books/tutorial/uiswing/index.html]
    db

  • Creating Web Services using Netbeans GUI only

    Hi all,
    Creating, deploying & testing simple web-services through Netbeans point-n-click interface is quite simple (demo at: http://download.java.net/javaee5/screencasts/hello-simple-glassfish/). The demo shows a very simple service creation scenario, accepting and returning String types only. The service can easily be tested using the GUI option 'Test Web Service', which simply test the service through a simple web page at http://localhost:8080/MyWebApplication/MyWebService?Tester
    In a similar manner, I am trying to implement a web service (a little complex one, accepting and returning custom types) using Netbeans GUI only. Versioning information I am using are as follows:
    NetBeans IDE 6.1
    Sun Java System Application Server 9.1_02 (build b04-fcs)
    JAX-WS 2.1.3.1
    Roughly speaking, the service's method signature I am using is shown below:
    public abstract myclass.X MyService.serviceMethod( myclass.X )
    Since it uses a custom type in parameter and return-types, the web-based test doesn't work any more. I wrote a separate client class to invoke the service using client-side stub classes (suppose to be generated by JAX-WS generated classes). The client code looks like as follows:
    public class ServiceClient {
         public static void main(String[] args) {
              MyService srv = new MyService ().getMyServicePort();
              X xin= new X();
              X xout= srv.serviceMethod( xin );
              System.out.println( "Result: "+ xout.toString());
    Netbeans shows a compiler error on "MyService srv = new MyService ().getMyServicePort();
    Is it possible to get it resolved without making use of ant scripts for generating client-side artifacts (stubs etc.)?
    Thanks,
    irfan

    Hello Sandy,
    Have you installed the Sun Java System App Server or JWSDP? If so, please make sure that one of the libraries in your Netbeans project contains the jaxrpc-api and jaxrpc-impl jars (which seem to be necessary to run wscompile).
    Netbeans ("standalone") doesn't seem to install the jaxrpx libraries and other jars required to compile and run webservices.
    Regards,
    Jonatan

  • Trouble Using Netbeans and XML Schema

    I am currently experimenting on using XML files to store data for a game that I am developing. I had been using NetBeans 5.5 to validate my XML Schema (I am still new to XSD); however, now I am getting errors and have been trying for the better part of the week but am still unable to resolve them. Here is a clip from one of the schemas:
    <?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:cdt="http://JoaL.blissfulTragedy.com/Characters"
               targetNamespace="http://JoaL.blissfulTragedy.com/Characters" >
        <!-- Document to Define Character Attributes and their current Constraints -->
        <!-- Character Name -->
        <xs:simpleType name="name">
            <xs:restriction base="xs:NMTOKEN">
                <xs:maxLength value="15"    />
                </xs:restriction>
            </xs:simpleType>
    ... When I validate the XML (the two down arrows) I get the following errors for every restriction I have declared:
    s4s-att-invalid-value: Invalid attribute value for 'base' in element 'restriction'. Recorded reason: UndeclaredPrefix: Cannot resolve 'xs:NMTOKEN' as a QName: the prefix 'xs' is not declared.After retyping the file three times I tried one of the stock NetBeans schemas, which will produce the same error whenever I add a restriction through the UI.
    Any advice will be greatly appreciated :P

    I think this is a dirty great bug in the Sun version of the apache Xerces classes that were bundled with jdk1.5.
    I've had similar problems, and it seems to boil down to the fact that the NamespaceSupport class's getURI method does == instead of .equals when looking up the uri for a particular prefix. I'm told that this is a deliberate feature for the Apache stuff, and that the class assumes interned strings or strings that have gone through their internal SymbolTable mechanism, and that I can work around it by using interned strings. However, it is one of their classes that fails to intern the string (or put it through the symbol table etc.), so that doesn't really make sense as there are no hooks into this stuff.
    They have even marked the bug as closed/fixed, and I'm attempting to re-raise it at present (so it'll be fixed in about ten years then).

Maybe you are looking for

  • How to print something the same in color as black and white?

    I have a gray box that I set as black and then set the tint down to 20%.  When I print this in color it prints with a pink tone.  When I print it in black and white it prints correctly.  Any advice?

  • How do I change the FaceTime email address on my iPod touch?

    I set up my daughters Facetime on her ipod with my email address and now that she is actually using it more I would like to establish it under an email for her as her friends are seeing my email address when she uses Facetime.  Is there a way to set

  • Connected to an idle instance; trouble creating DB

    I tried to connect to my database and got Connected to an idle instance: C:\>sqlplus / as sysdba SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 22 19:07:34 2014 Copyright (c) 1982, 2010, Oracle.  All rights reserved. Connected to an idle instance

  • Elimination of Interunit Profit/Loss   SEM-BW 6.0

    Hello people, I am trying to use this functionality, with the option Method 2: Calculation with Quantities but I have doubts about procedure, so I would like to check steps : 1. Activate in data basis / data stream the following items : Inventory Dat

  • Best Practise on SAP ERP 6.0 EHP4

    Hi Tech gurus! I'm Luckshmanan from Bangalore,India. We installed SAP ERP 6.0 EHP4. Now, we need to install the Best practice in the same system. How to do  that? With regards, Luckshmanan.