JWSDK 1.0.1: how to keep generated servlet source?

Different to Tomcat the generated source file is deleted immediately and I cannot analyze the compiler errors because of line numbers are according to *.java, and not to *.jsp. Can I set an switch for example in the server.xml to improve it?
regards
Ralph Stahl

Sorry, You misunderstood 2 things: my question is not referring to Tomcat, but to JWSDK. And I don't miss the generated class file, but the genereated java source file. Tomcat keeps them under tomcat\work\Standalone\myhostdir\_, and JWSDK should do it under jwsdk\work\myworkdir\webpages too - but it does not! The error messages refer to this source file, not to the jsp file, and so the line numbers are quiet different. Therefore it is difficult to debug.
regards
Ralph

Similar Messages

  • Apache TomCat 6.0 - Generate Servlet Source Code

    sup java experts,
    does anyone know how I can view the Servlet source code that's generated by the JSP engine?

    lol...thanks. I know it sounds like a dumb question after having read your answer but I thought TomCat (by default) doesn't save the auto-generated .java files and that i'd have to turn on that feature somehow.
    Anyway, just to wrap up this question for future viewers, it turns out TomCat 6.0 does save the servlet source code generated by the JSP engine. I found mine in
    C:\web\Tomcat 6.0\work\Catalina\localhost\_\org\apache\jsp\marc\test_jsp.java
    Tomcat 6.0 = my installation folder
    marc = a folder I created under the "ROOT" directory (the folder where you put your .jsp files so that the server can find them)
    Thanks again njb7ty!

  • How to keep the servlet java code the JSP engine generated?

    Hello there!
              I am using some JSP in a web application, and would like to take a llok
              at the servlet java files th weblogic JSP engine generated.
              In my weblogic.properties file I have the following line:
              "# Set up WebLogic JSP properties
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=F:/VisualCafeEE/bin/sj.exe,\
              workingDir=F:/weblogic/myserver/classfiles,\
              verbose=true,\
              keepgenerated=true"
              However, the only things I can find are the class files compiled from
              the servlet java files.
              Any suggestions?
              Thanks.
              Jeff.
              

    Moerover, if you follow the example web.xml Weblogic provides
              (http://www.weblogic.com/docs51/classdocs/sample_web_xml.html), the parser
              would complaint big time.
              The <servlet> and <context-param> tags have to be switched.
              Jeff
              "John J. Feigal" wrote:
              > I'm not sure why, but specifying keepgenerated=true in weblogic.properties
              > did not do the job for us.
              >
              > We had to add the following to our application's web.xml file:
              >
              > <!-- keepgenerated initArg to JSPServlet -->
              > <context-param>
              > <param-name>weblogic.jsp.keepgenerated</param-name>
              > <param-value>true</param-value>
              > </context-param>
              >
              > --
              > John J. Feigal Voice (651)766-8787 (main)
              > Sr. Technical Consultant (651)766-7249 (direct)
              > Ensodex, Inc. Fax (651)766-8792
              > 4105 N. Lexington Ave., Suite 150 email [email protected]
              > Arden Hills, MN 55126 WebSite http://www.ensodex.com
              >
              > "Jong Lee" <[email protected]> wrote in message
              > news:[email protected]
              > >
              > > You have the init arg "keepgenerated" tunred on in weblogic.properties.
              > > The java file should be kept in the same directory of your jsp file.
              > >
              > > You can also use "jspc" to generate the java source.
              > > i.e:
              > > "java weblogic.jspc -keepgenerated yourjspfile"
              > >
              > >
              > >
              > >
              > >
              > > Jeff Wang <[email protected]> wrote:
              > > >Hello there!
              > > >
              > > >I am using some JSP in a web application, and would like to take a llok
              > > >at the servlet java files th weblogic JSP engine generated.
              > > >
              > > >In my weblogic.properties file I have the following line:
              > > >
              > > >"# Set up WebLogic JSP properties
              > > >weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > >weblogic.httpd.initArgs.*.jsp=\
              > > > pageCheckSeconds=1,\
              > > > compileCommand=F:/VisualCafeEE/bin/sj.exe,\
              > > > workingDir=F:/weblogic/myserver/classfiles,\
              > > > verbose=true,\
              > > > keepgenerated=true"
              > > >
              > > >However, the only things I can find are the class files compiled from
              > > >the servlet java files.
              > > >
              > > >Any suggestions?
              > > >
              > > >Thanks.
              > > >
              > > >Jeff.
              > > >
              > >
              

  • Java web service -- how to re-generate Java sources when WSDL changes?

    I created a new web service using the "Java Web Service from WSDL" wizard.
    Some time later I changed the WSDL and now I need to rebuild the Java sources. What is the best way to do this? I can't re-run the wizard, it returns an error: "The name of this web service is already used by another web service in this project."
    Using Jdeveloper 11.1.1.3.0 on Linux.
    Thanks.

    These links may helpful for you.
    http://download.oracle.com/docs/cd/E14004_01/books/SSDev/SSDev_CustomizingModel22.html
    http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/web_services003.htm

  • Keeping Generate JSP Servlet Source

              I want to keep the servlet source code generated by WL when compiling JSPs. In
              our development environment we generate servlets on demand (we don't precompile
              in ANT -- there are too many JSPs for that).
              Elsewhere in this newsgroup I found a message that suggested adding this to the
              web.xml file:
              <context-param>
                   <param-name>weblogic.jsp.keepgenerated</param-name>
                   <param-value>true</param-value>
              </context-param>
              However, this seems to only keep the .class file, not the .java file. Unless I
              am looking in the wrong place, WL isn't keeping the generated servlet source.
              Does anyone know if/how this can be done?
              Thanks.
              

              "Aidan Monroe" <[email protected]> wrote in message
              news:[email protected]
              >
              > I want to keep the servlet source code generated by WL when compiling
              JSPs. In
              > our development environment we generate servlets on demand (we don't
              precompile
              > in ANT -- there are too many JSPs for that).
              >
              > Elsewhere in this newsgroup I found a message that suggested adding this
              to the
              > web.xml file:
              >
              > <context-param>
              > <param-name>weblogic.jsp.keepgenerated</param-name>
              > <param-value>true</param-value>
              > </context-param>
              >
              > However, this seems to only keep the .class file, not the .java file.
              Unless I
              > am looking in the wrong place, WL isn't keeping the generated servlet
              source.
              > Does anyone know if/how this can be done?
              WebLogic creates temporary directory something like:
              D:\WebApp\WEB-INF\_tmp_war_WLS6server_WLS6server_WebApp\jsp_servlet
              where it stores .java files (JSP files transformed into servlets before
              compiling).
              <jsp-descriptor>
                        <jsp-param>
                             <param-name>compileCommand</param-name>
                             <param-value>javac</param-value>
                        </jsp-param>
                        <jsp-param>
                             <param-name>precompile</param-name>
                             <param-value>false</param-value>
                        </jsp-param>
                        <jsp-param>
                             <param-name>workingDir</param-name>
                             <param-value>C:\TEMP\</param-value>
                        </jsp-param>
                        <jsp-param>
                             <param-name>keepgenerated</param-name>
                             <param-value>true</param-value>
                        </jsp-param>
                        <jsp-param>
                             <param-name>pageCheckSeconds</param-name>
                             <param-value>5</param-value>
                        </jsp-param>
                   </jsp-descriptor>
              workingDir parameter defines where WebLogic will store your files
              

  • Generating the JSP from the Servlet source file

    Hi,
    Does anyone out there know if there is any utility/class/program which will generate a JSP from the Servlet Source file (.java file) or indeed from the compiled Servlet file (.class file)
    If its possible to decompile a .class file into a .java file, surely it must be possible to convert the .java souce file into the .jsp file that created it.
    any comments would be appreciated
    Richard

    I am the author of the original JSP!
    But I want to run a script on the generated Servlet source file,
    changing its contents, and then generate the JSP that would have created the new Servlet source file.
    but I need to know if theres anything that will reverse engineer a Servlet source into the generating JSP.
    its a kind of of Jeopardy type thing!

  • I have tried downloading and installing the Adobe Pro DC trial on 2 different browsers and it keeps generating an "unexpected error". I have a MAC. How is this troubleshooted and fixed?

    I have tried downloading and installing the Adobe Pro DC trial on 2 different browsers and it keeps generating an "unexpected error". I have a MAC. How is this troubleshooted and fixed?

    Hi Carlos ,
    Could you please share the screen shot of the error message so that we can check and troubleshoot accordingly .
    Is there any error number or code associated with the error message or it just says "unexpected error" ?
    I would recommend you to try and install the Acrobat DC trial referring the following links .You could choose any of the following .Also make sure you disable all the third party software before you commence the installation .
    https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    https://helpx.adobe.com/acrobat/kb/acrobat-dc-downloads.html
    Regards
    Sukrit Dhingra

  • ITunes 10.6.3 keeps generating incomplete downloads AND it rearranges the order of the playlist when I burn a playlist to an mp3 cd

    iTunes 10.6.3 keeps generating incomplete downloads AND it rearranges the order of the playlist when I burn a playlist to an mp3 cd.
    I purchased an album on iTues from my MAC book Pro & the song downloads were incomplete. The song length shows correctly in the column, but they cut off between 1/4 & 1/2 way through the songs. Now, I dwonloaded it on my iPhone 4 through my itunes account after the purchase & the songs play fine. This happened with the very next song I purchased, as well.
    I got around this issue, then created mp3 versions of all the songs, put them in their own playlist, then "Burned an mp3 disc." When it completed, the songs were in a different order.
    Are there any fixes for either of these problems/bugs?

    iTunes: How to set the play order of songs on an MP3 CD - http://support.apple.com/kb/HT2455

  • How to keep details grouped together when have more than 1 details section

    I want to create a report that has two different detail sections, and then have the report first print all of the results of the first detail section (DETAIL A), followed by the results of the second detail section (DETAIL B).
    But CR prints the first line of DETAIL A, followed by the first line of DETAIL B. It then goes on to the second line of DETAIL A, followed by the second line of DETAIL B, and so on.
    Can anyone tell me how to keep DETAIL A together, followed by DETAIL B?
    thx, jon

    Assuming the data for the two formats are not in the same record, add a new field to the data record (or calculate it based on the record's data) with a value of A or B, then group by it.
    If the data IS in the same record (i.e., one data record generating both formats), subreports are the only way that I can think of...
    HTH,
    Carl

  • Keeping generated Java files???

    How do I keep the generated java source code when my
              jsp pages get compiled. I have the following in my properties file:
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=C:/jdk1.3/bin/java.exe,\
              workingDir=C:/Weblogic/myserver/classfiles,\
              verbose=true,\
              keepgenerated=true
              The only files that are saved are the ones that get generated from
              jsp pages that contain errors.
              

    Hi Leo,
              as you are using a WebApp: sef, your context isn't the default one
              the solution is to put :
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              at the begining of your web.xml file in the WEB-INF dir. after the
              "description" tag.
              You can too modify, using this method, the defaults of:
              weblogic.jsp.precompile
              weblogic.jsp.verbose
              weblogic.jsp.packagePrefix
              weblogic.jsp.compileCommand
              weblogic.jsp.pageCheckSeconds
              but it seems (at least I have not been able to do it...:) )
              that this is not possible with:
              weblogic.jsp.workingDir
              to put the generated file in other place.
              PacoG.
              P.D.: Pay attention to the fact that the generated files will be
              remote accesible at the URL:
              http://yourserver/yourwebapp/_tmp_war/yourpackageprefix/yourgeneratedfile.ja
              va
              and
              http://yourserver/yourwebapp/_tmp_war/yourpackageprefix/yourgeneratedfile.cl
              ass
              > Is there another location where the jsp properties are set? I notice in
              my
              > console that
              > keepgenerated is set to false regardless of what I have entered in my
              > properties file.
              >
              > <WebAppServletContext-sef> registering JSPServlet with initArgs
              > '[JspConfig:verbose=true,packagePrefix=jsp_servlet,compileCommand=javac,
              >
              workingDir=c:\ejb_examples\sef\_tmp_war,pageCheckSeconds=1,superclass=null,
              > keepgenerated=false
              >
              > "murali" <[email protected]> wrote in message
              > news:[email protected]
              > > hai,
              > > it is working fine with me.
              > > iam able to get java files.problem may be something else.
              > > my code as follows:
              > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > weblogic.httpd.initArgs.*.jsp=\
              > > pageCheckSeconds=1,\
              > > compileCommand=/jdk1.2.2/bin/javac.exe,\
              > > workingDir=/tools/weblogic/myserver/classfiles,\
              > > overbose=true,\
              > > keepgenerated=true
              > >
              > > bye,
              > > murali
              > >
              > > Leo Lam wrote:
              > >
              > > > How do I keep the generated java source code when my
              > > > jsp pages get compiled. I have the following in my properties file:
              > > >
              > > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              > > > weblogic.httpd.initArgs.*.jsp=\
              > > > pageCheckSeconds=1,\
              > > > compileCommand=C:/jdk1.3/bin/java.exe,\
              > > > workingDir=C:/Weblogic/myserver/classfiles,\
              > > > verbose=true,\
              > > > keepgenerated=true
              > > >
              > > > The only files that are saved are the ones that get generated from
              > > > jsp pages that contain errors.
              > >
              >
              >
              

  • Bonjour keeps generating error event 100. It's there 128 times in a week! What does it mean?

    Bonjour keeps generating error event 100 in windows 8.1 event viewer. It's there 128 times in a week! What does it mean?

    Hey Michael,
    That error could be cause by a conflict with the firewall on your computer. Take a look at the articles below to go over some troubleshooting as well as verifying that Bonjour was properly installed on your computer. 
    iTunes for Windows: Bonjour alert due to firewall, security, or proxy software
    http://support.apple.com/en-us/HT203392
    How to tell if Bonjour for Windows successfully installed
    http://support.apple.com/en-us/HT201776
    Take care,
    -Norm G.  

  • Portlet:namespace val changes on server restart. How to keep it constant?

    Hi -
    I want to generate WinRunner test script, and want to know the IDs of a couple of UI components on a JSF JSP.
    But JSF prefixes each component id with <portlet:namespace/> value. So, I tried to prefix the same value (got it using view source of the actual screen to test) to the components in my test script.
    This works just fine, the way I want it to, but until the server is not restarted.
    Once the server is restarted the value of the <portlet:namespace/> changes (for the same view in same jsp), thus my test script doesn't work.
    Is this expected behavior that for the same view in jsp, the value of <portlet:namespace/> changes after server restart?
    Is there a way to keep the value of <portlet:namespace/> constant for the same view even after server restart?
    Expecting prompt feedback and will highly appreciate it.
    Thanks
    Gagan

    The problem is still there if the jsp file is about inserting a new record
    into the database.
    If these parameters are gotten from the session, mutliple insertings will be
    attempted when the portlet is refresh.
    Maybe we can put some control flags in the session to judge the correct
    behavior, but the method results the session full of parameters(control
    flags).
    Or is there any better design?
    Alan.
    "travis wissink" <[email protected]> ¼¶¼g©ó¶l¥ó
    news:3cc71962$[email protected]..
    >
    Alan,
    You could use the session to put your parameters in instead of letting itride completely
    on the request object. Although, your question is more than just makingthe content
    reappear, it’s about holding state. The project that I am working on, theusers
    decided that they want the page portlets to go back to the "normal" state,not the
    "Maximized" view. So, I put a processor in between the internal.refreshwildcard
    and the Preprocessor input processor so that all the portlets would beseen in their
    "normal" state.
    Good Luck
    -Travis
    "Alan Liu" <[email protected]> wrote:
    Hi All,
    When I click page tabs in WLP, it will trigger a refresh event.
    The portlet has a webflow with a refresh event whose destination is
    lastContentUrl(referent-namespace is portal, cloned from portlet2.wf).
    The question is when the page changed, the jsp files which use
    request.getParameter() to get parameters will fail to fulfill what they
    need because the event provide none parameter.
    So that everytime page changed, these portlets will have quite strange
    contents.
    How to keep these content constant when page changed?
    Sincerely,
    Alan.

  • -keep-generated-actionscript Compiler Option Question

    I'm trying to learn how Actionscript works. I turned on the -keep-generated-actionscript compiler option so that I could see the generated actionscript for an ItemRenderer I'm creating.
    Should I:
    1. directly edit the generated file, or
    2. use the generated file as a reference for creation of my own ItemRenderer class file.
    I'm thinking the latter, right?
    all feedback appreciated!
    many thanks,
    Mark

    You can do either, but there are AS item renderers in the SDK that are
    better reference implementations.

  • How do I generate redemption code for creative cloud?

    how do I generate redemption code for creative cloud?

    On October 27th 2014, you have purchased two CC (one complete &one photography) under the same Adobe ID. That is the reason you are being asked for a code because under one Adobe ID only one CC can be activated(twice).
    Please contact Adobe Support or you can inbox me privately the CC order number  that you would like to cancel.
    You can also check if the host file has Adobe entry or not as if Adobe entries are there then also CC can ask for serial number. You can check the host by the followinh method.
    Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
    So you need to login with your Adobe ID and password to activate the cloud membership.
    Log out & log back in of the CC Desktop App.
    In case it is not signing in successfully please try the following:
    I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
       Windows:
       In windows 7 navigate to following location:
         /windows/system32/drivers/etc
       1. look out for "Hosts" file
       2. Open it with notepad
       3. Check if you have any entry for Adobe
       4. Remove the entries and try again launching any product from CC
      Mac:
       1. Please click on "Go" and navigate to /private/etc
       2. Open "hosts" file and check out for any entries for Adobe.com
       3. Remove the entries and save the file
       4.  try again launching any product from CC
      Please refer to Creative Cloud applications ask for serial number
    Hope it helps you.
    Regards
    Rajshree
    Cannot license Illustrator CC after buying subscription

  • How to keep multiple function modules under one Web service

    Hi Experts,
    I have Three RFC function modules and i need to create one web service for these three RFC function modules. I know How to crearte a web service for one function module.
    please suggest me How to keep multiple function modules under one Web service.
    Thanks in advance
    Lakshminarayana

    Hi Lakshmi,
    The best way to do it is to assign all the three RFC Enabled FM's to one function group. Later on the top menu in Utilities you get an option to Create a Webservice from a Function Group.
    You can create one single Webservice using all the the 3 FM's.
    I hope this helps.
    Thanks,
    Manu

Maybe you are looking for

  • Is it possible extend a Task Flow at runtime?

    Hello I have a requirement in where we need to define a Bounded Task Flow with multiple views (today we are using a router with 3 views). The requirement is to extend the number of views at run time, create a 4th view without a new deployment. Is it

  • Relocated font

    I have been using the font Papyrus for a children's book project using CS2 applications. But now when I open documents that a previously created, the font is displaying as rectangles. In trying to figure out why, I have noticed that the font has move

  • HT1491 I set and purchased a tone in double times, how to cancel it??

    I want to cancel one of double tones which I purchased. It is a mistake when I set a tone twice from iTunes. Now, both the same tones show in sound notification. Maybe, someone can help me please to cancel it? Thanks.

  • Hi all..very urgent

    Hi Gurus, Could you plz help me to collect the tables, structures,views, search helps and programs which uses PRODH3 and PRODH4 data elements... plz guys very urgent.. marks wud definetly be given. Regards Sahil

  • Suddenly HP v195b 8gig does't get detected on different computers.

    Hi, Today my HP v195b usb stick didn't get detected anymore. I tried several things suggested here on the supportdesk, but nothing seems to work. I can see that something IS detected, it shows Removalble Drive (F: )  if I look on This PC. But when I


HashFlare