Appending a _ in front of the jsp class name when using weblogic.jspc

 

http://e-docs.bea.com/wls/docs60/jsp/reference.html
          java weblogic.jspc -d /weblogic/classes -keepgenerated primero.jsp
          "rb" <[email protected]> wrote in message
          news:[email protected]...
          >
          > hi,
          >
          > i do
          >
          > java weblogic.jspc -d /weblogic/classes primero.jsp
          >
          > and it only is generated a _primero.class and do not appear
          > the .java ?
          >
          > what i do bad ?
          >
          > thanks for advance
          >
          >
          > Rodrigo Fonseca da Fonseca <[email protected]> wrote:
          > >Hi,
          > >
          > >I'm using weblogic.jspc to compile some jsp fiels. The compilation is
          > >complete and successfully, but the names of generated files .java and
          > >..class are strange.
          >
          >
          >
          > >
          > >For example, compiling a file named change_login_data.jsp, the resulting
          > >files are change95_login_95_data.java and
          > >change95_login_95_data.class. Compiling a file named buy.jsp, the
          > >resulting files are buy.java and buy.class (fine situation). Why???
          > >
          > >I'm using:
          > >
          > >java weblogic.jspc -d c:\jsp_result -classpath
          > >
          >
          >c:\weblogic\myserver\serverclasses;c:\weblogic\lib\weblogicaux.jar;c:\weblo
          gic\classes
          > >-compiler jikes.exe -J-verbose -keepgenerated -verbose
          > >change_login_data.jsp
          > >
          > >
          > >thanks
          > >Rodrigo
          > >
          > >
          > >
          > >Mark Spotswood wrote:
          > >>
          > >> The namespace for java class files is more restrictive
          > >> than for JSP files. We prepend these underscores so
          > >> that if, for example, someone names their JSP "1.jsp",
          > >> we get a class file with a legal name. We did consider
          > >> not doing this for files which started with characters
          > >> we kenw to be valid (in fact we may have put it in a
          > >> service pack), but later found that this was not sufficient
          > >> because its possible to name a jsp file something that
          > >> clashes with java keywords ("class.jsp" for example).
          > >> Rather than making the scheme even more complex,
          > >> we decided to go back to the original sheme of always
          > >> prepending the underscore.
          > >> --
          > >> mark
          > >>
          > >> Mika Moilanen wrote:
          > >>
          > >> > >>>>> "Shankar" == Shankar Roy <[email protected]> writes:
          > >> >
          > >> > Shankar> Problem seems to go away with weblogic510sp4.jar in
          compilation
          > >classpath.
          > >> > Shankar> Shankar.
          > >> >
          > >> > Shankar> Shankar Roy wrote:
          > >> >
          > >> > >> Hi,
          > >> > >> Can anyone tell why when I invoke weblogic.jspc the class file
          that
          > >is
          > >> > >> generated has a _ in front of the class name
          > >> > >>
          > >> > >> java -classpath
          > >> > >>
          >
          >/space/shankar/weblogic/lib/weblogicaux.jar:/space/shankar/weblogic/classes
          /boot:/space/shankar/weblogic/classes:/space/shankar/dev/dev/lib/activation.
          jar:/space/shankar/dev/dev/lib/classes12.zip:/space/shankar/dev/dev/lib/mail
          .jar:/space/shankar/dev/dev/lib/oroinc.jar:/usr/java/lib/classes.zip
          > >> > >> weblogic.jspc -package com.careassured.jsp -commentary login.jsp
          > >> > >>
          > >> > >> produces a class file by the name _login.class
          > >> > >>
          > >> > >> Thanks for any help pointers.
          > >> > >> Shankar.
          > >> >
          > >> > Not with WLS5.1 and weblogic510sp6.jar, we still get '_' prefixed
          > >> > classes...
          > >> >
          > >> > Actually we're suffering quite a lot because of this bug in
          > >> > weblogic.jspc. Are there any plans for fix?
          > >> >
          > >> > --
          > >> > Best Regards,
          > >> > Mika
          > >> > ----------------------------------------------------------
          > >> > [email protected] phone: +358-0-511-23587
          > >> > Nokia Networks, PO box 320, FIN-00045 NOKIA GROUP, Finland
          > >> > ----------------------------------------------------------
          >
          

Similar Messages

  • Can you refer to the original host name when using a challenge redirect?

    I have an authentication scheme that uses a challenge redirect to cause authentication to happen using https instead of http. However, this seems to break some of our monitoring scripts because now the credential challenge is coming from a different host name. Is it possible to refer to the original host name with some type of variable in the challenge redirect parameter? Below is an example:
    1. User accesses secured URL at http://appstenv2.company.com/testurl
    2. This webserver is hosting several aliases (appstenv2.company.com, appstenv4.company.com, appstenv6.company.com) and has a main name of appsdev.company.com - but is a single apache webserver where there is an application server plugin installed which will route to the desired application server environment based on the original hostname. So if a user accesses it with a name of appstenv2.company.com/testurl they will be routed to the "test 2" environment application server. If they access it as appstenv6.company.com, they would be routed to the "test 6" environment application server.
    3. This webserver listens on both http and https.
    4. The current challenge redirect can only redirect to a specific URL so it is set to "https://appsdev.company.com" which works fine interactively but the recorded monitoring scripts suddenly see a new hostname doing the prompting for credentials even though it is the same webserver - just a different alias.
    5. If possible, I would want to do the redirect in a relative fashion rather than absolute by using the original hostname from the URL being accessed. So, if the user was accessing http://appstenv2.company.com/testurl, I would like to redirect to https://appstenv2.company.com for the basic authentication. but with the same authentication scheme, if the user accesses http://appstenv6.company.com/testurl, I would want the challenge redirect to go to https://appstenv6.company.com. I'm hoping it's possible to use some system variable like SERVER_NAME to do this.
    Challenge Redirect: https://$SERVER_NAME
    Does anyone know if that is available in OAM 10.1.4.3 or some other way to accomplish the same thing with a single authentication scheme?

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • Add serial number in the report file name when using batch process model

        I would like to append a string containing the current UUT serial number to the base name of the report file. For example, uut_report.html becomes uut_report[SN000001].html. This setting is not available if I use NI BatchModel.seq as my process model.
    Thanks!
    Jacky

    duplicate post
    Ask your question only once.

  • How do I retain the original file name when using Compressor?

    Hello,
    I am in the process of doing a batch export and would like to keep everything identical to the source material, including the name. There is quite a bit of footage so deleting the "-Apple ProRes 422 for Progressive material" addition can be time consuming.
    Any suggestions?
    I found this thread:
    http://discussions.info.apple.com/thread.jspa?threadID=2369070
    but even though I read it more than 10 times I could not set a "custom" path in my destination options.
    I only have the following options available from the pulldown:
    -Cluster Storage
    -Desktop
    -Source
    -Users movie folder
    Any help is greatly appreciated.
    Message was edited by: Ricardo Javier

    As was mentioned in the thread you linked to, the easiest way is to create a custom Destination. Here are some step-by-step instructions:
    1. Click the Destinations tab.
    2. Click the plus sign in the upper right and choose "Local..."
    http://dl.dropbox.com/u/19589/Compressor%20Custom%20Destination.png
    3. Navigate to or create your destination folder. Click "Open" to select the destination.
    At this point, you've created a new custom destination. To select it, click the disclosure triangle next to the "Custom" folder. This is where all of your custom destinations are located.
    4. Select the custom destination you want to use for your batch.
    5. In the inspector, you'll see a box where you can change the "Output Filename Template". By default, it'll just have "Source File Name". If that's all you want, then press return.
    http://dl.dropbox.com/u/19589/Compressor%20Destination%20Inspector.png
    Now, when you go back to your batch window and apply this custom destination to your job settings, Compressor will apply the Output Filename Template to your filenames. Basically, it will get rid of the setting name (as long as you only have "Source File Name" in the Filename Template.
    Hope this helps.

  • How can I retain the local user name when using imported network tags?

    I am using network tags that have been imported from a remote DSC module 6.1 application. I would like to retain the remote user in the tag records instead of whoever is logged in locally. Is this possible?

    See answer there:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000084B20000&HIsQuestionPoster=No&HTHREAD=000045700&UCATEGORY_0=_18_%24_17_&UCATEGORY_S=0
    Cyril Bouton
    Active LabVIEW Developper

  • Problem modifying the connection details in a Report when using Weblogic 12

    Hi
    I have a j2ee application that uses the Java Reporting Component (JRC). At runtime, the code programmatically changes the connection type and schema name of a crystal report before running it. The connection that was used when designing the report is replaced with new JNDI parameters pointing to a Weblogic/Oracle datasource.
    The application works perfectly when using Weblogic 11, but the same code and report fails when deployed to Weblogic 12.
    I used Version 12.2.207.916 of the JRC, and updating  to the most current version I could find (12.2.217) did not solve the problem.
    The code snippet below shows how the connection and schema name is replaced for each of the tables in the report (not all the code is shown here)...
            PropertyBag propertyBag = new PropertyBag();
            propertyBag.put("Database DLL", "crdb_jdbc.dll");
            propertyBag.put("JNDI Datasource Name", jndiName);
            propertyBag.put("Initial Context", "");
                while (tableList.hasNext()) {
                    ITable table = tableList.next();
                    ITable tableNew = (ITable) table.clone(true);
                    IConnectionInfo connectionInfo = table.getConnectionInfo();
                    connectionInfo.setAttributes(propertyBag);
                    connectionInfo.setKind(ConnectionInfoKind.SQL);
                    tableNew.setQualifiedName(newQualifier + "." + table.getName());
                    tableNew.setConnectionInfo(connectionInfo);
                    dbController.setTableLocation(table, tableNew);
    The setTableLocation() function throws the following exception ...
    2014-05-13 16:46:27,173 ERROR [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)']  JRCCommunicationAdapter         detected an exception: Unexpected database connector error
                    at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2409)
                    at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)
                    at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
                    at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
                    at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)
                    at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
                    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
                    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
                    at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
                    at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
                    at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
                    at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
                    at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
                    at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)
                    at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)
                    at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)
                    at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)
                    at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)
                    at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)
                    at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)
                    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)
                    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)
                    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)
                    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)
                    at com.systest.reporting.engine.crystal.CrystalReportEngine.replaceConnection(CrystalReportEngine.java:523)
                    at com.systest.reporting.engine.crystal.CrystalReportEngine.changeDataSource(CrystalReportEngine.java:449)
                    at com.systest.CrystalReportPane.setReportDataSourceDetails(CrystalReportPane.java:170)
                    at com.systest.CrystalReportPane.commandLoad(CrystalReportPane.java:136)
                    at com.systest.ReportRunner.CrystalReport.Load(CrystalReport.java:401)
                    at com.systest.ReportRunner.SaveReportToFile(ReportRunner.java:1385)
    Any idea what I can do to fix this ?
    Thanks in advance!

    Last reference in any documentation re. version of supported weblogic is 10.3.x. And it may very well be that things worked in weblogic 11, but as versions go by the differences get bigger and eventually the app stops working.
    I'll ping the Program Manager for definitive info and future support. Once I have the info, I'll update this Discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Configuring weblogic 8.1 to hide the jsp file name to be displayed

    Hi,
              I am having problem with configuring weblogic 8.1 to display the jsp file name in the address bar. Please have a look at this link for a description of my problem
              http://theserverside.com/news/thread.tss?thread_id=28381
              Any help would be great.
              Thanks
              Uma

    You should use a controller servlet which forwards to the correct JSP. Then the JSP name is not displayed in the address bar.
              With 8.1 you simply could use a Java pageflow to link several JSPs.
              Generated URLs in the browser will look like
              http://localhost:7001/sampleportal/newpageflow1/test.do;jsessionid=BFssBfmdv4Ly1GDG7gJNZH1d3s2ShJG2qpG4KJJMVvSf0JdyG2nQ!1118879021

  • How to get the jsp page name in jsp?

    how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
    thanks in advance.

    Try request.getServletPath()

  • Appending multiple *.csv files while retaining the original file name in the first column

    Hi guys it's been awhile.
    I'm trying to append multiple *.csv files while retaining the original file name in the first column, the actual data set is about 40 files.
    file a.csv contains:
    1, line one in a.csv
    2, line two in a.csv
    file b.csv contains:
    1, line one in b.csv
    2, line two in b.csv
    output.csv result is this:
    I would like this:
    a.csv, 1, line one in a.csv
    a.csv, 2, line two in a.csv
    b.csv, 1, line one in b.csv
    b.csv, 2, line two in b.csv
    Any suggestions to speed up my hobbling attempts would be aprieciated
    Thanks,
    -SS
    Solved!
    Go to Solution.

    What you could do is given in the attachment.
    Started with 2 files :
    a.csv
    copy of a.csv
    Both with data :
    1;1.123
    2;2.234
    3;3.345
    Output :
    a.csv;1;1.123
    a.csv;2;2.234
    a.csv;3;3.345
    Copy of a.csv;1;1.123
    Copy of a.csv;2;2.234
    Copy of a.csv;3;3.345
    If you have more questions, just shoot
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012
    Attachments:
    AppendingCSV.JPG ‏73 KB

  • Can we set the dynamic data source when using getReportParameters() ?

    Hello!
    I have a report where one of its parameters refers to a list of values (LOVs). This list of values is an SQL Query type. When the data source used in the report is defined in the BI Publisher server, I'm able to get the report parameters using the getReportParameters() function in my application. However, if the data source is not defined the function throws an exception, which is understandable.
    I decided to dynamically set the data source so that even if the data source used by the report is not defined in the BI Publisher server, it still will be able to get the LOVs for the parameter. I tried setting the JDBCDataSource of the dynamicDataSource for the ReportRequest object that I passed to the getReportParameters() function. Please see the sample code below:
    reportRequest.dynamicDataSource = new BIP10.BIPDataSource();
    reportRequest.dynamicDataSource.JDBCDataSource = new BIP10.JDBCDataSource();
    setReportDataSource(reportRequest.dynamicDataSource.JDBCDataSource, connectstr, jdbc, dc); //function to set the values for JDBCDataSource object
    reportParams = webrs.getReportParameters(reportRequest, uid, pwd); //call the getReportParameters
    I was expecting this to work as this is what I did to dynamically set the data source before calling the runReport function. So, my question is -- can we set the dynamic data source when using getReportParameters() ? I tried this both in versions 10g and 11g. It does not seem to work on both versions.
    Regards,
    Stephanie

    report_id column of apex_application_page_ir_rpt can help us uniquely identify each saved report.
    We can assign this report_id value to a page item and this page item can be put in the Report ID Item text box of the Advanced section of the Report Attributes page of the IR.
    This should load the saved report identified by report_id and you can get rid of javascript
    Regards,
    Vishal
    http://obiee-oracledb.blogspot.com
    http://www.packtpub.com/oracle-apex-4-2-reporting/book
    Kindly mark the reply as helpful/correct if it solves your problem

  • Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Photoshop CS6 crashes all the time and especially when using the type tool... please help!

    Since I did not have this problem with CS5 or CS4, I can only assume something is not right with Photoshop CS6... below is my video card info:
    ATI Radeon HD 4850:
      Chipset Model:          ATI Radeon HD 4850
      Type:          GPU
      Bus:          PCIe
      PCIe Lane Width:          x16
      VRAM (Total):          512 MB
      Vendor:          ATI (0x1002)
      Device ID:          0x944a
      Revision ID:          0x0000
      ROM Revision:          113-B9110C-425
      EFI Driver Version:          01.00.383
      Displays:
    iMac:
      Resolution:          2560 x 1440
      Pixel Depth:          32-Bit Color (ARGB8888)
      Main Display:          Yes
      Mirror:          Off
      Online:          Yes
      Built-In:          Yes
      Connection Type:          DisplayPort
    Cinema HD:
      Resolution:          1920 x 1200
      Pixel Depth:          32-Bit Color (ARGB8888)
      Display Serial Number:          2A80273WXMN
      Mirror:          Off
      Online:          Yes
      Rotation:          Supported

  • How to setup the cluster environment for BPM using weblogic

    want to setup the cluster environment for BPM using weblogic....
    i have installed the oracle weblogic server 10gr3 and oracle BPM enterprise for weblogic 10gR3
    i have used the Admin tools from the "oracle BPM enterprise for weblogic" to setup the configuration and create the weblogic domain servers.
    i can launch the process administrator and import the project exp file to domain server.
    but what should i do to setup cluster environment using weblogic?
    what i want to do is :
    setup one admin machine..
    setup two product machine..
    enable the cluster so the admin machine can monitor the status of the product machine..
    thanks a lot ...

    The install guide at http://download-llnw.oracle.com/docs/cd/E13154_01/bpm/docs65/config_guide/index.html gives a reasonable amount of info on how to do this.
    Personally I have not used the OBPM option to configure WebLogic instead I've used the information in the above install guide to create the weblogic domain in advance of configuring OBPM.
    Once you've setup WebLogic configure OBPM using the values I mention in the following thread: How to set the JMX Engine parameter in Process Administation?
    Let me know any specific config questions and I'll do my best to answer them for you.
    Thanks,
    Mike

  • How to get the current class name in static method?

    Hi,
    I'd like to get the current class name in a static method. This class is intended to be extended. So I would expect that the subclass need not to override this method and at the runtime, the method can get the subclass name.
    getClass() doesn't work, because it is not a static method.
    I would suggest Java to make getClass() static. It makes sense.
    But in the mean time, does anybody give an idea to work around it?
    Thank you,
    Bill

    Why not create an instance in a static method and use getClass() of the instance?
    public class Test {
       public static Class getClassName() {
          return new Test().getClass();

  • CDPOS for the moving avenge price when using MIRO, MIGO & VL31N etc.

    Hi
    Is there a way of tracking all changes with CDPOS for the moving avenge price when using MIRO, MIGO & VL31N etc.
    We can show changes for MR21 in CDPOS but we need to reflect all changes made to the moving avenge price for MIRO, MIGO & VL31N etc. We need to run a report that will show all these changes.
    We run a report to look at all the change records for Moving Avenge Price, We use tables CDPOS & CDHDR, then Change the document Object for both tables to material, so when the report is run you can identify the material by the object value field
    u201CIf you look at CDPOS the fields where reading the data from in the u201CNew Value fieldu201D is CDFLDVALN when I do an F1u201D
    u201CIf you now check MBEW on the u201CMoving Avenge Price fieldu201D, the data reads from VERPR which is the field we need to reflect the changes. If we can change this then the report will worku201D
    Can you help please?
    Edited by: Derrick smith on Nov 28, 2008 1:51 PM

    Hello Jürgen,
    Thank you for your quick reply. I read the note -- it describes the symptom perfectly, and gives example cases which match our situation. However, no solution or recommendation is given. Does it mean that this way of valuating cancellations is not seen as a malfunction, and cannot be changed?
    Thanks in advance.
    Regards,
    Sergei

  • Is it possible to get the main class name in a Thread context ?

    for example, i want to get the main class name (the first entry of the program).
    public class Test implements Runnable {
         public Test() {}
         public static void main(String[] args) {
              new Thread(new Test()).start();
         public void run() {
              try {
                   //Want to get the main class name (not the current class name)
                   throw new Throwable();
              } catch (Throwable e) {
                   e.printStackTrace();
    }

    Acutally, i wanna make clear about the concept of a "Thread"
    Is it true that ..
    the main() method is a thread , once I create another thread in the program , both of (or all of them) will contains it owns stack exception information ?
    My english is poor, please try to understand it. Thx

Maybe you are looking for

  • HT4623 My computer crashed, how do I get my iPhone to recognize a new iTunes

    My computer crashed, how do I get iTunes to work with my phone on another computer.

  • CS2 automatically fit row height to content in table?

    Hi guys, I'm using CS2 and I have a table with lots of pages. I need to be able to have the height automatically fit to the content of the tables. Unfortunately data is not consistent therefore some cells have 2 rows of content, others 8. Automatical

  • Adobe forms - No scroll bar for Display only fields

    I am using adobe forms for SAP Enterprise Portal. i am using these in Worklfows. In the form there is a text field with no size limit and Allows Multiple Lines. Any amount of text is allowed to be entered. when the form is viewed by the next person,

  • Photoshop Elements, not Photoshop CC

    How do I exchange Photoshop CC for Photoshop Elements in my Creative Cloud membership? I just downloaded Photoshop CC and realized when I fired it up that it's way more than I need. Thanks, CarolBMT

  • Lost 250 Photo's?

    Hello, Im using the trial version of Lightroom 3 on my I-mac to dicide if I'll use this program in the future. I did some importing, editing as well as using the publish and presentations utilities. Everything worked fine so yesterday I imported for