Server-Side Development/Debugging???

I've been devloping JSP/Servlets and Beans for over a year now and have never been completely happy with my development environment. Currently, I'm using a text editor, .bat scripts for builds and system.out.println() for debugging. I'm looking into emacs as the editor, ant for the builds, but am unclear on a good approach for debugging server-side applications. Any suggestions?
-thanks

You can get development environments that allow you to debug servlets and JSPs, but I don't know of any that are free like your current setup. I'm using VisualAge for Java (Enterprise Edition), which debugs those things quite nicely, but I'm glad that I didn't have to pay for it myself. There are more products you could look at besides VAJ.

Similar Messages

  • OAS server-side JSP debugging

    Hi All
    Is there a way to do the OAS server side JSP debugging using JDeveloper or other tools?
    ka
    null

    Hi
    The pdf file only mentioned 4 ways to do that but didn't include the details on how to do it. Appreciate if you could you tell me more precisely on how to do it with OAS?
    ka
    null

  • Generating feedback messages on server-side vs client-side?

    Hello,
    I am maintening a client/server app (Swing client, no Web pages), basically an order processing system. The biggest part of it is to verify the conformity of orders to a set of business rules.
    As usual, some of the verification can be made early on the client-side, but most of the verification work is done on the server-side. My problem is, I don't find a very satisfactory way to generate the user feedback to be displayed to the user.
    If I generate them as Strings (or HTML Strings) on the server, where the rules are checked, this constrains the way these can be displayed on the client, and makes maintenance of the human-readable strings awkward and risky (e.g. localization, or restructuring the messages, like sorting them by severity vs by affected entity).
    If I generate them on the client, I need a class to vehicle the diagnosis form server to client, and this class and its usage tends to become awkward in itself.
    Concretely:
    The initial version generated human-readable strings on the server, which assumed the messages would be displayed as strings in a JOptionPane.
    Moreover, the logic evolved to distinguish between Info, Warning and Error messages, to be displayed in different colors of course, so the Strings evolved into HTML Strings, still generated on the server.
    Do you think this approach is safe?
    I'm afraid a simple maintenance of the strings (like, sorting the errors by severity vs by affected entity, filtering the strings,...) becomes a server-side development, which is a bit more risky (I would have to review code ownership policies, VCS and code-sharing policies,... to let less experienced staff maintain the darn error Strings).
    Moreover, if the client app evolve to display the errors in complex widgets (colors in a tree/table, with tooltips), the server-side generated HTML strings would be constraining : coloring or tooltipping Tree nodes would now mean parsing the String to extract the "error level" or the "affected entity", which is quite inelegant and inflexible.
    My current idea was then to use a collecting parameter to collect validation messages on the server, and traverse them on the client:
    I designed a naive ErrorList class, with methods such as addInfo(String), addWarning(String), addError(Strin), and the corresponding getErrors() and hasErrors()/hasWarnings() methods. I can then generate the Strings (or whatever widget fits better, such as a table) on the client side. Moreover, I can add the client-side messages to the bag...
    All nice and well, but the customer requested that the error messages be formatted such as "The profile <profile name in bold> does not allow you to order service <service name in italics>".
    To format that on the client, my ErrorList class should evolve so that for a given message, I know that the error is of type ("incompatibility between profile and service", that the service is X and the prodile is Y).
    That forces me to add in some API (shared by the client and server) the list of error types, and the data each error type requires.
    I can evolve my ErrorList API to break up messages into a DTO giving (type, affected entity, arg1, arg2,...), but anyway the server and client have to agree on what is arg1, etc... which is a hidden coupling.
    Do you use and recommend such an approach for server-to-client feedback: a collecting parameter in which the server puts the "errors", and that the client traverses to display the messages)? In particuler, isn't the coupling hard to maintain?
    Thansk in advance,
    J.

    Presumably you are not over-engineering in that you
    know that localization is a problem rather than that
    in all possible worlds in might be.I appreciate your delicate questioning... I definitely have read much ruder ways to say YAGNI to a poster...
    I do know that the customer will knit-pick to reword and reformat the messages. But I won't need to translate the messages to other locales. In that regard, I ackowledge my usage of the term localization is a bit liberal, but I think I should to extract the messages from the code, to be able to maintain them separately - keeping only experienced staff's hand in the server's core.
    That is actually my question 1): from experience, is it worth the trouble to separate code and human-readable text, knowing that the text WILL have to be maintained?
    Question 2 is about how to implement this.
    In particular, the built-in MessageFormat templating engine, though originally introduced for i18n, actually suits my needs (including MessageFormat-built messages) and developing or using any other templating engine would probably be an overkill.
    Given that there are two types of messages.
    1. Fixed
    2. Parameter driven.
    In both cases you need to return an id which
    identifies the message. The client has a locale
    specific resource source which has a matching id.
    From there a string is derived.
    If the error requires parameters then the string has
    formatting values in it and it s written with the
    returned parameters. See java.text.MessageFormat.Yes. In some cases I don't know yet whether parameters will be displayed. I can conservatively assume the message requires a MessageFormat, and give all parameters (in my case, use rname, profile name, command id, service name, order date,...), whether thay are displayed or not in the final message.
    Be warned you MUST deal with the possibility that a
    id does not exist in the client, if so have a default
    message that displays the id and any parameters.Good point.
    "The customer name field can not be longer than 15
    characters".
    In the above the "15" would a parameter.Yes. The trouble is, you have to document somewhere (Sun suggests in the resource bundle file), that for error id #123456, the number of characters in in the '{0}', or in the {6}. I don't feel confident with that (this is the "coupling" part in my question 2�).
    Thanks for your advices.

  • ***URGENT*** What Server side objec should we develop and deplot to OAS?

    Helo,
    I use Jdev3.1 as my Java IDE.
    I have to develop a server side java objects that will be deploy to OAS 4.0.8. My server side java objects will wait for client calls then perform certain business logics depending on each call? Please give me some advises about what type of java object should I develop.
    From JDev help doc,I read about Application Module, EJB, Business Component, JSP..I am new to JDev and Java so I don't really undestand about the relationship between these copmponent, and what should be used since they seem to do the same thing. Please help, I have to submit a proposal next week. Thank you very much in advance.
    Vivian

    Yes, I'm parsing some XML data files. The full stack trace follows.
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)
    javax.xml.parsers.FactoryConfigurationError: Provider <HTML> could
    not be instantiated: java.lang.SecurityException: class "<HTML>"'s
    signer information does not match signer information of other classes
    in the same package
    at javax.xml.parsers.DocumentBuilderFactory.newInstance (DocumentBuilderFactory.java:99)
    at XMLHandlerStrippedDown.<init>(XMLHandlerStrippedDown.java)
    at onlinequestion.init(onlinequestion.java)
    at sun.applet.AppletPanel.run(AppletPanel.java:353)
    at java.lang.Thread.run(Thread.java:552)

  • Upgrade Developer 6i on the server side to patch set 18

    Once I upgrade Developer 6i on the server side, I need to bring Developer 6i on windows platform (used for development) to same version level. My understanding both have to be in same version.
    What the patches I need to apply for Developer 6i Windows?

    You need to install Patch 18 for Windows.

  • Debug server side action script

    Hi, I want to debug the server side action scripts code, such as set the breakpoint, display the local variables in run time, etc. The trace() is not that efficient. Does anyone suggest a better debug tool for server side action scription? Thanks,
    Regards,
    erwin

    I am using the flash media server. The admin console can view the log/status. What about setting the breakpoint and displaying the local variables? Thanks,

  • PageMethod response returning whole page, unable to debug the server side method

    Hello Guys,
    I am unable to debug my method written on server side when a call is send to it through jquery using page method.
    In response , I get the whole page.
    code:
    ASPX page:
    PageMethods.MyMethod(p1, p2, function(response){
    ASPX.CS
    [System.Web.Services.WebMethod()]
    [System.Web.Script.Services.ScriptMethod()]
    publicstaticstringMyMethod(stringp1,
    stringp2){
    //Updating database
    I did ScriptModule entry in web.config, enabled tracing,have ScriptManager and EnablePageMethods is set to true.
    Still the server side method is not getting called.
    please help.
    Ng_TechFreak

    Hi Ng_TechFreak,
    For ASP.NET questions please post in
    ASP.NET forum where you'll get better help.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Developing server-side applications using dreamweaver

    We are having issues developing server-side applications using dreamweaver for our client's website www.uuee.org.. They are building oracle database driven worldwide directory for Egyptian expatriates. Any help is highly appreciated.

    You made 3 statements. What is the question?  What do you need help with?

  • SSI (Server Side Include)

    Hi folks.
    I have installed J2EE SDK 1.4_03 and I'm interested in using it to develop my personal website locally on my PC. At a later date I wish to upload it to a paid web host.
    The reason I have chosen to run a server rather than just accessing html files directly from my hard-drive is because I would like to utilize SSI (Server Side Include). That's really all. I'm not really interested in doing anything too interactive between the viewer and the server! Not yet anyway.
    I have found various information online but nothing is working. I'm sure there is information that I am missing or something further I need to do to actually initiate it. The information I have found says to un-comment the various section in the file default-web.xml located in this folder c:\Sun\AppServer\domains\domain1\config for this to be activated globally. Below is a copy and pasted chuck of text that I have un-commented within this file..
    Secondly I'm putting my test html pages in the folder C:\Sun\AppServer\domains\domain1\docroot using the include syntax that I have found all over the net such as <!--#ECHO var="DATE_LOCAL" --> & others.
    I can not get the thing to work. I'm guessing there is more to it. For a start... am I putting my html pages in the correct folder for this to work? And Is there something I need to do to activate the ssi servlet? The only reason I'm putting my test pages in this folder is because the page at http://localhost:8080 says that I can overwrite the index file to replace it. Is this the correct place for this?
    Also this class has me thinking... org.apache.catalina.servlets.SsiInvokerServlet Am I suppose to download this separately and put it somewhere? If so where is it? And where do I put it? I am horribly confused and I can not find any further information on this.
    If anyone could help me out on this topic I'd really appreciate it. btw, I'm a beginner in this area... I'd really just like to server html pages with ssi features at this point. Nothing more. The server seems to be working.
    Thanks,
    Tane
    <servlet>
    <servlet-name>ssi</servlet-name>
    <servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
    <init-param>
    <param-name>buffered</param-name>
    <param-value>1</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>expires</param-name>
    <param-value>666</param-value>
    </init-param>
    <init-param>
    <param-name>isVirtualWebappRelative</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>ignoreUnsupportedDirective</param-name>
    <param-value>1</param-value>
    </init-param>
    <load-on-startup>4</load-on-startup>
    </servlet>

    You can always use jsp:include or Apache tiles or something similar. I have not used SSI in a while, but you may want to check out those technologies, as they offer more than simply includes.
    - Saish

  • Java Stored Procedure / connection JDBC / Server Side / Client Side

    Hi,
    I would like to know if we can know at the runtime with a JDBC api if the stored procedure is running in client side or in server side ?
    THANKS

    You wrote
    "Java stored procedures -- by definition - are stored in the 8i rdbms. !!"
    From the Oracle8i Java Stored Procedures Developer's Guide
    Release 8.1.5
    A64686-01
    "If you create Java class files on the client side, you can use loadjava to upload them into the RDBMS. Alternatively, you can upload Java source files and let the Aurora JVM compile them. In most cases, it is best to compile and debug programs on the client side, then upload the class files for final testing within the RDBMS"
    This means that you can create shared classes that are used on both the client and server side. The source does not need to reside within the server (according to their documentation). Please also note the following from the Oracle8i JDBC Developer's Guide and Reference Release 8.1.5 A64685-01 for using the getConnection() method on the server:
    "If you connect to the database with the DriverManager.getConnection() method, then use the connect string jdbc:oracle:kprb:. For example:
    DriverManager.getConnection("jdbc:oracle:kprb:");
    Note that you could include a user name and password in the string, but because you are connecting from the server, they would be ignored."
    So if you're coding a shared class that is to run on both the client and server side, you might do something like this:
    Connection conn =
    DriverManager.getConnection(
    System.getProperty("oracle.server.version") == null
    ? "jdbc:oracle:thin:@hostname:1521:ORCL"
    : "jdbc:oracle:kprb:"),
    "youruserid","yourpassword");
    As stated earlier, the userid and password are supposedly ignored for server connections retrieved in this manner. I haven't tried this yet, but it is documented by Oracle.
    Regards,
    Steve
    null

  • Java Stored Procedure / Server Side / Client Side / connection

    Hi,
    I would like to know if we can know at the runtime with a JDBC api if the stored procedure is running in client side or in server side ?
    THANKS

    You wrote
    "Java stored procedures -- by definition - are stored in the 8i rdbms. !!"
    From the Oracle8i Java Stored Procedures Developer's Guide
    Release 8.1.5
    A64686-01
    "If you create Java class files on the client side, you can use loadjava to upload them into the RDBMS. Alternatively, you can upload Java source files and let the Aurora JVM compile them. In most cases, it is best to compile and debug programs on the client side, then upload the class files for final testing within the RDBMS"
    This means that you can create shared classes that are used on both the client and server side. The source does not need to reside within the server (according to their documentation). Please also note the following from the Oracle8i JDBC Developer's Guide and Reference Release 8.1.5 A64685-01 for using the getConnection() method on the server:
    "If you connect to the database with the DriverManager.getConnection() method, then use the connect string jdbc:oracle:kprb:. For example:
    DriverManager.getConnection("jdbc:oracle:kprb:");
    Note that you could include a user name and password in the string, but because you are connecting from the server, they would be ignored."
    So if you're coding a shared class that is to run on both the client and server side, you might do something like this:
    Connection conn =
    DriverManager.getConnection(
    System.getProperty("oracle.server.version") == null
    ? "jdbc:oracle:thin:@hostname:1521:ORCL"
    : "jdbc:oracle:kprb:"),
    "youruserid","yourpassword");
    As stated earlier, the userid and password are supposedly ignored for server connections retrieved in this manner. I haven't tried this yet, but it is documented by Oracle.
    Regards,
    Steve
    null

  • ADF server-side state saving method

    Hi all,
    As far as I know, ADF has three view state saving methods.
    1. client - tokens
    2. client - all
    3. server
    My question is about server-side state saving.
    If I set state saving methos "server" in web.xml, view state is stored in session scope as LRU map.
    And the size of the map can be configured with below parameters in web.xml.
    <context-param>
    <param-name>com.sun.faces.numberOfViewsInSession</param-name>
    <param-value>10</param-value>
    </context-param>
    <context-param>
    <param-name>com.sun.faces.numberOfLogicalViews</param-name>
    <param-value>5</param-value>
    </context-param>
    However I think these parameters is offered by Mojarra (Sun's JSF RI) and any ADF guides don't mention them.
    These parameters are supported in ADF?
    Regards,
    Atsushi

    Hi,
    don't have a support statement for this but would be surprised if we don't as ADF Faces runs on top of the JSF RI.
    However, I am wondering why your customer prefers state saving being handled on the server as it doesn't allow fail over for your application setup. Also it is the recommended option
    http://docs.oracle.com/cd/E25054_01/web.1111/b31973/ap_config.htm#CEGECDJF
    +"Context parameter javax.faces.STATE_SAVING_METHOD: Specifies where to store the application's view state. By default this value is server, which stores the application's view state on the server. *It is recommended that you set javax.faces.STATE_SAVING_METHOD to client* when you use ADF Faces, to store the view state on the browser client. When set to client, ADF Faces then automatically uses token-based, client-side state saving. *You can specify the number of tokens to use instead of using the default number of 15*.+
    +You can specify the following state-saving context parameters:+
    +org.apache.myfaces.trinidad.CLIENT_STATE_METHOD: Specifies the type of client-side state saving to use when client-side state saving is enabled by using javax.faces.STATE_SAVING_METHOD. The values for CLIENT_STATE_METHOD are:+
    +token: (Default) Stores the page state in the session, but persists a token to the client. The simple token, which identifies a block of state stored back on the HttpSession object, is stored on the client. This enables ADF Faces to disambiguate the same page appearing multiple times. Failover is supported.+
    +all: Stores all state information on the client in a (potentially large) hidden form field. It is useful for developers who do not want to use HttpSession.+
    +*Performance Tip:*+
    +Because of the potential size of storing all state information, it is recommended that you set client-state saving to token.+
    +*org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS*: Specifies how many tokens should be stored at any one time per user, when token-based client-side state saving is enabled. The default is 15. When the number of tokens is exceeded, the state is lost for the least recently viewed pages, which affects users who actively use the Back button or who have multiple windows opened at the same time. If you are building HTML applications that rely heavily on frames, you would want to increase this value.+
    +*org.apache.myfaces.trinidad.COMPRESS_VIEW_STATE*: Specifies whether or not to globally compress state saving on the session. Each user session can have multiple pageState objects that heavily consume live memory and thereby impact performance. This overhead can become a much bigger issue in clustering when session replication occurs. The default is off.+
    +org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE: Enables the Application View Cache (AVC), which can improve scalability by caching the state for the initial renders of the page's UI at an application scope. However, every page in the application must by analyzed for support in the AVC to avoid potential problems with debugging in an unexpected state and information leakage between users. Additionally, development is more difficult since page updates are not noticed until the server is restarted, and although initial render performance is enhanced, session size is not.+
    +*CAUTION:*+
    +The Application View Cache is not supported for this release. The feature does not work for any page where the rendering of the component tree causes the structure of the component tree to change temporarily. Since this is often the case, USE_APPLICATION_VIEW_CACHE should not be used."+
    So unless your customer has a good reason for server side state I would suggest him/her to go with best practices
    Frank

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

  • Can i use same Server for server side and client??

    Hi,
    i m developing webservices in java and using two different server for server side and client.
    e.g. i m using one tomcat server on a machine to run webservice and again using one more tomcat server on client side at different machine.
    and hence it need two tomcat server.
    But i want only one server to run webservice and client.
    So please help me out...
    Thanks

    Hi,
    It is always recommended to maintain different servers
    REgards,
    Ravi.

  • Is there any way to setup server side deferred delivery in Exchange 2013?

    We are utilizing 3rd party software to generate reports and email results.  Unfortunately, the software cannot be configured to execute at a specific time, date only.  This means that some reports are being processed and delivered at 12:00 am.
     For business reasons, management would prefer that those emails not be sent at midnight.
    We are looking for a solution that would allow the messages to be generated at midnight but not be delivered by Exchange until several hours later.
    Is there any way to set a deferred delivery option server side in Exchange?  It can be set through Outlook, but only applies to mail sent from Outlook.
    Any advise or recommendations would be greatly appreciated.
    Thanks

    I afraid that it can't be done in Exchange with native features. You might need to develop custom transport agent or need to utilize the 3rd party tool to achieve this...
    You can try in Development forum to see if you can get any help there...
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

Maybe you are looking for

  • Dunning form F150- Telefon/fax/mail printing for 1 user and not for other

    Hello expert, This is regarding the printing of the dunning form using F150.  At first, using company code and account clerk (BUSAB), we retrieve the user id.  The program uses FM BAPI_USER_GET_DETAIL to get the address details of this user id.  The

  • How to read the Variance Analysis report S_ALR_87013139,  Pdt cost by Order

    Hi, Could someone tell me how to read the variance analysis report, S_ALR_87013139 - Cumulative for product cost by order. The report has the following fields, Target (Debits),     Actual (Debits),     Scrap,     Var. Without Scrap,     Work in Proce

  • How do I get my music from iTunes to my new Macbook Pro?

    They showed me how to get all my previously purchased music when I first got my Macbook, but i can't remember how to do it. They did something on iTunes, but I don't know what to do. Anybody know what I'm talking about?

  • How does the shop floor know to pick non-WM managed materials?

    Hi experts... More of a process question this time.  The bulk of our materials are warehouse managed in SAP.  As such, when we release a production order, the warehouse gets a pick ticket (TO) to pick and stage those materials.  Obviously, the non-wa

  • Lr 5.3 CRASH whole CPU.

    my Lr 5.3(938183) keeps crashing my computer - just a black screen & all is closed. Nil error message. Intel R Core i3 cpu 2.13GHz, 4Gb ram with 2.99Gb usable 32bit machine. Happens while doing Developing, or copying (synchronising) or making collect