Using Netbeans 5 and compiling a JSP obtain an error

Dear All
I'm using a JSP with this code
&#65279;<%@ page contentType="text/html; charset=UTF-8" errorPage="../error/messageError.jsp" language="java"
     import = "java.security.Principal"
     import = "com.mycompany.myProduct.MyProductConfig"
     import = "com.mycompany.otherProduct.db.api.connection.TConnectionFactory"
     import = "com.mycompany.otherProduct.db.api.connection.TConnection"
     import = "com.mycompany.otherProduct.db.api.connection.TServerNotAvailableException"
     import = "com.mycompany.myProduct.user.login.User"
     import="java.util.*"
     import="javax.servlet.jsp.jstl.core.Config"
%>
<% // Setup session variables to display menus correctly
     session.setAttribute("title",...
and I force the compilation of the JSP, obtaining this -->
public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {
    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;
    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
                     "../error/messageError.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
  out.write('���');
      out.write('\r');
      out.write('\n');
// Setup session variables to display menus correctlyWhat happen with out.write in bold??
I'm using jsdk 1.4.2_08
Thanks for any help

I have the same problem. im using Eclipse 3.1 and WL9.1.
Any suggestions?

Similar Messages

  • 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

  • Anyone use Netbeans and know where I can find an online tutorial

    hi, just started to learn java and currently using netbeans and want to know where I can find any online tutorials or any links you may know. Thanks =)

    hi, just started to learn java and currently using
    netbeans and want to know where I can find any online
    tutorials or any links you may know. Thanks =)I assume you mean a tutorial for NetBeans, not one for Java. And I assume you know how to use a search engine like www.google.com and didn't find anything, so you asked here. If the assumptions are correct, then I guess there isn't any.

  • I purchased CS6 and am now just using it. I am trying to use Illustrator and it keeps giving me multiple errors relating to plug ins. It won't let me do anything, literally.

    I purchased CS6 and am now just using it. I am trying to use Illustrator and it keeps giving me multiple errors relating to plug ins. It won't let me do anything, literally.

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

  • 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).

  • Using ClassforName and getConnenction in JSP a bad idea?

    Hi,
    I ve written a jsp page to access database through type4 driver.all the
    jdbc related activities are included in this jsp page - like
    loading the driver,getting connenction, woking with the conn and
    finally closing it.
    it seems after a number of page access, the server is gettin hanged !
    the page can be accessed by any user. i was wondering if there is
    anything wrong with my jsp code. as each page access is causing a
    repeated task internally ie loding driver,gettin conn,doing some query
    and closing the conn.
    is there any simple and neat way to avoid this repeated task.so that
    those repeated task can be done only once and each jsp page access
    concentrates only on sql query stuff.
    thanks in advance
    javajar2003

    this is because every time u open a jsp page,a connection is created.so if ur application is live, the millions of users will be opening the jsp page and thus there will be lot of connection objects stored on the server which will create a huge overhead on the server and ultimatley it will get hanged.
    so create a class where the connection is created. create an object using the class.and use this object in each jsp page using "pagecontext" class. thus there will be only one connection to the database which will be shared by all users.
    code for acessing the connection object is as follows:
    ConnectionPool connectionpool=null;//ConnectionPool is the class creating the connection and connectionpool is the instance.
                        try
              connectionpool=(ConnectionPool) pageContext.getAttribute("connectpool");//connectpool is the object
              if ( connectionpool == null)
                   connectionpool=new ConnectionPool(2,2,true);//2 indicates no of connections required.2 is sufficient
                   pageContext.setAttribute("connectpool",connectionpool);
              Connection connection=connectionpool.getConnection();//using connection for this JSP
    check it out.
    i hope this helps

  • Creating WSDL file using Netbeans and JAX-WS

    I have created a web service called calculator in Netbeans IDE.
    I build the project and deployed in Tomcat.
    When I accessed WSDL file i getting as follows
    *<?xml version="1.0" encoding="UTF-8" ?>*
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://actions.calculator.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://actions.calculator.com/" name="calculatorService">
    - <types>
    - <xsd:schema>
    *<xsd:import schemaLocation="http://localhost:8080/calculator/calculator?xsd=1" namespace="http://actions.calculator.com/" />*
    *</xsd:schema>*
    *</types>*
    etc.......
    here schema is imported from another file...
    I need schema to included in the WSDL file itself.
    How can i get a WSDL file like this??
    I am using Netbeans 5.5 and JAX-WS 2.0

    Hi,
    Change the <soap:binding style="document"... to <soap:binding style="rpc"... and see if that works.
    I'm not sure how to get <soap:binding style="document"... working yet - I'm not that experienced in web services yet.
    Hope this helps and is not too late.
    Regards,
    Greg Nye

  • Creating Bar Charts using Java and Display in jsp

    Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?

    I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
    1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
    2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
    So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
    by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component?

  • Using InfoPath and the Web service GetUserProfileByName-An error occurred accessing a data source

    Hi, Everyone,
    I want to realize the function that when user fills out the infopath form the form can automatically get current users' name and I've searched that I can use the Web service GetUserProfileByName method. When I preview the form it is all right, however, when
    I fill the form online, it occurs this error as folllowing. Anyone knows why and how to solve this problem?
    Thanks forward!
    Warning
    An error occurred querying a data source.
    Click OK to resume filling out the form. You may want to check your form data for errors.
    Hide error details
    An error occurred while trying to connect to a Web service.
    An entry has been added to the Windows event log of the server.
    Log ID:5566
    Correlation ID:9c23d39c-18fa-1025-c7ec-600a1582a54a

    Hi,
    According to your post, my understanding is that you get error when using the Web service GetUserProfileByName in InfoPath.
    Have the InfoPath form template call web service in code? If yes, please see following KB and check if it is the cause.
    http://support.microsoft.com/kb/981684
    You can also
    follow the steps in the article to resolve this error in InfoPath. Please refer to:
    Auto Populate User Information in InfoPath with Claims Based Authentication in SharePoint – Part 2 of 3
    In addition, you need to disable the Loopback check.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/en-US/d6d20308-a5d0-45fa-881d-0626c68c4e73/infopath-an-entry-has-been-added-to-the-windows-event-log-of-the-server-logid-5566?forum=sharepointcustomizationprevious
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Hi I have a iPhone 4 I tried to use iTunes and is coming up as an error and it doesn't open what can I do

    Can some wan help my please

    Make sure you have an active data connection, either wi-fi or cellular, and then go into Settings>iTunes & App stores, and check to make sure you are logged in with your Apple ID. You can also click on that and sign out and then sign back in. See if that helps.

  • Unable to update or insert into Access database table using OleDB, and it doesn't return any errors.

    I'm new to VS. I have run the following code. It does not produce any error, and it does not add or update data to my Access database table.
    dbUpdate("UPDATE prgSettings SET varValue='test' WHERE varSetting='test'")   
    Function dbUpdate(ByVal _SQLupdate As String) As String
            Dim OleConn As New OleDbConnection(My.Settings.DatabaseConnectionString.ToString)
            Dim oleComm As OleDbCommand
            Dim returnValue As Object
            Dim sqlstring As String = _SQLupdate.ToString
            Try
                OleConn.Open()
                MsgBox(OleConn.State.ToString)
                oleComm = New OleDbCommand(sqlstring, OleConn)
                returnValue = oleComm.ExecuteNonQuery()
            Catch ex As Exception
                ' Error occurred while trying to execute reader
                ' send error message to console (change below line to customize error handling)
                Console.WriteLine(ex.Message)
                Return 0
            End Try
            MsgBox(returnValue)
            Return returnValue
    End Function
    Any suggestions will be appreciated.
    Thanks.

    You code looks pretty good, at a quick glance.  Maybe you can simplify things a bit.
    For Insert, please see these samples.
    http://www.java2s.com/Code/CSharp/Database-ADO.net/Insert.htm
    For Update, please see these samples.
    http://www.java2s.com/Code/CSharp/Database-ADO.net/Update.htm
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.
    Best to keep samples here to VB.NET
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • I was posting a GR using MIGO and I received the following syntax error.

    syntax error in program    SAPLMLSP                                            
    in include                 LMLSPFBV                                            
    in line                      10 
    the field "FLG_CNMM_DISPLAY" is unknown, but there is a field with the         
    similar name "ICON_DISPLAY". 
    Can someone please help with a solution? Thanks
    Edited by: Omotola Lamina on Feb 10, 2008 7:38 PM

    Thanks mate. I have read through some of the associated notes. they are enormous. I'm yet to see the particular one that talks about this problem and how to resolve it.

  • I upgraded my iMac with mountain lion. I can't now use iCloud and Mail. I have the error message : impossible to activate Mail wait a moment and try another time (This is translation from French).

    I've made the operation several rtimes withoiut any success

    From the Mail menu bar, select
    Window ▹ Connection Doctor
    Look for the unwanted SMTP (outgoing mail) account in the window that opens. Double-click it. Another window will open, showing a list of all the outgoing mail accounts. The unwanted one will be selected. Click the minus-sign button to delete it, then click OK.
    If there's more than one unwanted account, repeat.

  • How to connect using netbean 6.5 and oracle lite 10g

    Hello everyone.. I am really really new in this kind of thing. My task is that I need to develop a simple system using netbean and oracle lite 10g..Does anyone can at least give me a little bit tutorial for a head start in order to connect them.. I really appreciate for those who answer this.. Thank you guys...

    you mean to connect from java to oracle lite server or client?
    -if it is server you mean then you probably need to run some oracle apis (e.g. the consolidator aps).
    String url="MOBILEADMIN/123@jdbc:oracle:thin:@MYSERVER:1521:MYDB" ;
    ResourceManager.initialize(url);
    rm = ResourceManager.getInstance();
    User usr = rm.getUser(user);
    for (Enumeration e = usr.getDevices(); e.hasMoreElements();) {
    Device dev = (Device)e.nextElement();
    }//AND you may continue from here in order to send commands to the devices
    -if you have a oracle repository at the back end and you want to connect to that then you can connect like:
    DriverManager.registerDriver ((Driver)Class.forName ("oracle.jdbc.driver.OracleDriver").newInstance ());
    String url="jdbc:oracle:thin:@myserver:port:database;
    c=DriverManager.getConnection( url,"username", "password" );
    s=c.createStatement();
    s.executeQuery("Select TRIM(CODES) AS CODES,TRIM(SURNAME)||'_'||TRIM(FIRSTNAME) AS NAME from MYDB.USERS");
    ResultSet rs =s.getResultSet();
    -now if you want to connect to the oracle lite client database then you may connect using the polite
    you should write something like (i havent tried it because i use handheld clients)
    String ConnectMe=("jdbc:polite:SCOTT/tiger:polite;DataDirectory=c:\Oracle_Home;Database=polite;IsolationLevel=SINGLE;USER;Autocommit=ON;CursorType=DYNAMIC")
    try {
    Connection conn = DriverManager.getConnection(ConnectMe)
    catch (SQLException e)
    (check the internet for jdbc:polite connection strings)
    gl

  • Splashscreen (manifest file) using Netbeans

    Hi,
    I need an enlightenment.. I'm building an app with splash screen using Java's new SplashScreen class. In order to show the splash screen I already include the :
    SplashScreen-Image: icon/Splash.gif
    //icon is a folder inside my JAR fileinside the manifest file.
    What I don't understand is that.. when I run my app from netbeans by pressing the Run button : No Splash Screen shows up. But when I run it directly by double clicking the JAR file (from windows explorer) : the Splash Screen shows up.. Anyone know what is the reason? Do I need to configure something on my Netbeans?
    Thank you for any response..

    Hello
    I use Netbeans and I think maybe it is for this reason: inside Netbeans you compile and run the classes from the java files, not from the jar file.
    So you are not executing the jar, and that is the reason, as that is a parameter in the jar manifest.
    Jordi R Cardona

Maybe you are looking for