Trying to Compile CVSRenderer.java in Apps Server

Hi,
I wanted to do some changes to CVSRenderer.class in oracle.apps.asf.html.
Hence i took the .class file from the server and i decompiled it and did the changes to the .java file and when i wanted to push it back to the server and compile this CVSRenderer.java, its throwing the following error,
CSVRenderer.java:12: cannot resolve symbol
symbol : class ServletResponse
location: package servlet
import javax.servlet.ServletResponse;
^
CSVRenderer.java:13: cannot resolve symbol
symbol : class HttpServletResponse
location: package http
import javax.servlet.http.HttpServletResponse;
^
CSVRenderer.java:28: cannot resolve symbol
symbol : class HttpServletResponse
location: class oracle.apps.asf.html.CSVRenderer
public CSVRenderer(HttpServletResponse httpservletresponse)
^
CSVRenderer.java:35: cannot resolve symbol
symbol : class HttpServletResponse
location: class oracle.apps.asf.html.CSVRenderer
public void setResponse(HttpServletResponse httpservletresponse)
^
CSVRenderer.java:189: cannot resolve symbol
symbol : class HttpServletResponse
location: class oracle.apps.asf.html.CSVRenderer
private HttpServletResponse m_response;
^
CSVRenderer.java:79: cannot access javax.servlet.http.HttpServletRequest
file javax/servlet/http/HttpServletRequest.class not found
pagewebbean.init(null);
^
Note: CSVRenderer.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
6 errors
Please guide me regarding this.
Thanking you
ri

try this. ur code will be compliled and will get .class file. but console won't appear. is it a must for u?
public class Exec{
     public static void main(String a[]) throws Exception{
          String c[]=new String[3];
          c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
          Process p=Runtime.getRuntime().exec(c);
          // or Runtime.getRuntime().exec("javac Hello.java");

Similar Messages

  • Java System App Server 9 + CRLs?

    Hi all -
    I'm trying to set up my web apps under Java System App Server 9 on a Windows 2003 (Server) box. Everything is working just dandy, except that I cannot seem to get JSAS9 to recognize a Certificate Revocation List for my Certificate Authority certs. I have a URL specified in the CA cert's extensions for the CRL. I also have the CRL in all of my keys generated by the CA cert. Using Windows' cert manager, I can see that my keys and CA cert both list the URL correctly. I made two test keys, A and B, and added key B to the CRL. If I visit the URL specified for the CRL, I see that the key is indeed on the list. But when I visit my JSAS9 server, it still allows me to authenticate with it using the revoked key.
    I also exported the CA cert key from my JSAS9 keystore and it only has the issuer name/owner name/valid dates/signatures, no CRL URL (the key I imported into JSAS9 most definitely does have the URL in the x509 extensions).
    I haven't seen any config options for either specifying a static list of CRLs or for honoring the CRLs provided with CA certs or user certs. Anybody have any idea where to look for these options?
    Thanks a ton,
    Reid

    Bump

  • Trying to compile a .java file from another .java file

    Hello,
    I'm trying to compile a .java file from another .java file using Runtime.exec...
    String c[]=new String[3];
    c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
    Process p=Runtime.exec(c);
    If anyone can help me in atleast getting the command prompt when Runtime.exec("cmd.exe") is executed...that would be great...I tried out notepad.exe, calc, explorer instead of cmd.exe...all the commands display their respective windows..except cmd.exe...the command prompt doesnt appear...
    Please help me ASAP....
    Thanks for your help in advance...
    Regards.
    AKhila.

    try this. ur code will be compliled and will get .class file. but console won't appear. is it a must for u?
    public class Exec{
         public static void main(String a[]) throws Exception{
              String c[]=new String[3];
              c[0]="cmd.exe"; c[1]="/c" ; c[2]="javac Hello.java";
              Process p=Runtime.getRuntime().exec(c);
              // or Runtime.getRuntime().exec("javac Hello.java");

  • Configure MS SQL Server 2000 DataSource in Sun Java Systema App Server

    How can I configure Sun Java Systema App Server 8 to use a DataSource of MSSQL Server 2000?

    This has been covered in this forum multiple times. It is also documented in the SJSAS developers guide jdbc chapter. If you still have questions, please post, but the info has previously been discussed here and recently

  • Using Sun Java System App Server Update 1 with JDK1.5's XML

    Hi,
    I have some new code that uses new XML features from JDK 1.5,
    e.g., the Validation API.
    However, this code fails to run on Sun Java System App Server Update 1,
    since the server uses the 'endorsed' mechanism to load outdated XML libraries.
    When I remove the outdated XML JAR's from the server's 'endorsed' directory,
    the server fails to start....
    I would really like to keep using the new XML features....

    Where are you placing your jars? I would bundle them with your application. Do not replace the system jars.
    There were some package changes to avoid collisions that I believe made jswdp 1.4 and sjsas 8.1

  • 6 errors trying to compile TalkClientApplet.java

    Hello:
    Trying to compile TalkClientApplet.java at:
    http://java.sun.com/docs/books/tutorial/deployment/applet/ex5/TalkClientApplet.java
    on the jdk1.5.0_06, Windows XP, and I received the following errors:
    TalkClientApplet.java:94:incomparable types:boolean and <nulltype>
    if(receivedThread ==null){
    TalkClientApplet.java:99:incompatible types
    found:java.lang.Thread
    required:boolean
    receiveThread=new Thread(this);
    TalkClientApplet.java:100:boolean cannot be dereferenced
    receiveThread.start();
    TalkClientApplet.java:150:incompatible types
    found :<nulltype>
    required:boolean
    receiveThread=null;
    TalkClientApplet.java:186:incomparable types:boolean and <nulltype>
    if(receiveThread==null){
    TalkClientApplet.java:258:incomparable types:java.lang.Thread and
    boolean while (Thread.currentThread()==receiveThread){
    Thanks in advance for your help.

    Hello:
    I am following the code from:
    http://java.sun.com/docs/books/tutorial/deployment/applet/ex5/TalkClientApplet.java
    which was pointed to from:
    http://java.sun.com/docs/books/tutorial/deployment/applet/workaround.html
    This is the section:
    private void start(boolean onEDT) {       
    if (DEBUG) {
    System.out.println("In start() method.");
    if (receiveThread == null) {
    trysted = false;
    os = null;
    is = null;
    socket = null;
    receiveThread = new Thread(this);
    receiveThread.start();
    if (DEBUG) {
    System.out.println(" Just set everything to null and started thread.");
    enableGUI(onEDT);
    Thanks

  • Error while compiling PricingUserExits.Java on IPC Server

    Hi,
    While compiling PricingUserExits.Java on IPC Server, I am getting "cannot resolve symbol" error for class object.
    Can anyone reply back procedure of how to complie this Java Program and neccessary steps....
    Thank you for support.
    Regards,
    Sameer

    Dear Andrew,
    Thanks for reply.
    As per our understanding, after compilation of java file we get class file.
    While compilation we are getting following error:
    On DOS Prompt:
    E:\usr\sap\ipc\lib\userexits>javac PricingUserExits.java
    PricingUserExits.java:172: cannot resolve symbol
    symbol  : class FormulaNotImplementedException
    location: class userexits.PricingUserExits
                                    throw new FormulaNotImplementedException(prItem,
    "group key formula", keyFormNo);
                                              ^
    PricingUserExits.java:195: cannot resolve symbol
    symbol  : class FormulaNotImplementedException
    location: class userexits.PricingUserExits
                                    throw new FormulaNotImplementedException(prItem,
    "copy formula", copyFormulaNo);
                                              ^
    Please reply back which IPC Java libraries are required and what is the path.
    If you have any documentation related to it then please email it to [email protected]
    Regards,
    Sameer

  • How to access JDBC Resource registered in Sun Java System App Server ?

    I want to create a stand-alone JDBC application with Java SE using Swing technologies and JNDI technology. The purpose of using JNDI technology is to avoid change of Java Source Code every time I move the database to different location. This Java application will be used in a standalone PC installed with Windows XP Professional with no LAN / WAN connection. Of course, Internet connection is available with the PC.
    I use JavaDB to store the data tables and the location of the database is D:\E-DRIVE\SAPDEV. Tomorrow, if I move this database to C:\SAPDEV or any network drive, I do not want to change the Java Source code. I want to use JNDI which, if I am not wrong, helps developers to avoid manual change of Java source code whenever the database location is changed. Changes have to be made only in the JNDI Name which contains all relevant information about the database in order to get connection no matter where the database SAPDEV is stored; it can be placed under D:\E-DRIVE directory or C:\ directory of the hard disk. To implement my intention, I started developing Java application as per the steps mentioned below:
    Step 1:
    To proceed, first, I sought the help of Sun Java System Application Server Admin Console. I created JNDI object for Connection Pool using the menu path Common Tasks->Resources->JDBC->Connection Pools.
    JNDI Name : ABAPRPY
    Resource Type : javax.sql.DataSource
    Datasource class : org.apache.derby.jdbc.ClientDataSource
    Description : ABAP Program Repository
    The Connection Pool creation has options for General, Advanced and Additional Settings tabs and I made all the settings relevant to the database I created in D:\E-DRIVE\SAPDEV.
    To confirm whether the above settings are correct, I pressed the Ping push button which is available in the General tab of the connection pool creation screen. The system responded with the message Ping Succeeded.
    Step 2:
    I created a JDBC Resource using the menu path Common Tasks->Resources->JDBC->JDBC Resources.
    JNDI Name : jdbc/SAPDEV
    Pool Name : ABAPRPY
    Description : Database Connection for SAPDEV database
    Status : Enabled
    I can see all the above settings recorded in the domain.xml which is placed in the folder
    C:\Sun\AppServer\domains\domain1\config
    Step 3:
    I have made sure that Sun Java System Application Server is up and running in the background with JavaDB server. I created a Java Program making sure the following JAR files are included in the classpath:
    appserv-admin.jar
    appserv-ee.jar
    appserv-rt.jar
    javaee.jar
    fscontext.jar
    Plus, the lib directory of JDK 1.6 & C:\Sun\AppServer\domains\domain1\config
    Source code of the program is as follows: I used NetBeans IDE to create my project file.
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.naming.*;
    import javax.activation.DataSource;
    public class JNDILookup {
    public static void main(String[] args) {
    try {
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource) initCtx.lookup("java:comp/env/jdbc/sapdev>");
    } catch (NamingException ex) {
    Logger.getLogger(JNDILookup.class.getName()).log(Level.SEVERE, null, ex);
    When I attempted to compile the above program in NetBeans IDE ,no compilation error reported. But while executing the program, I got the following run-time error message:
    SEVERE: null
    javax.naming.NameNotFoundException: No object bound for java:comp/env/jdbc/sapdev> [Root exception is java.lang.NullPointerException]
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:224)
    at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:396)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at SAPConnect.JNDILookup.main(JNDILookup.java:21)
    Caused by: java.lang.NullPointerException
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
    ... 3 more
    Now, I want to come out of this situation; at the same time, I want to preserve the settings I have made in the Sun Java System Application Server Admin Console. That is, I want to programmatically access the data source using Connection Pool created in Sun Java System Application Server Admin Console.
    I request dear forum members to provide me an appropriate solution.
    Thanks and regards,
    K. Rangarajan.

    jay44 wrote:
    Bare in mind I am attempting the context.lookup() from inside the container (my code is in a session bean). I have accessed the server and have my bean "say hello" first to verify the bean works OK, then I call a method with this rather standard code:
    String jndiDataSourceName ="Second_EJB_Module_DataBase";
    Logger.getLogger(DynamicPU.class.getName()).log(Level.INFO,"Programatically acquiring JNDI DataDource: "+ jndiDataSourceName);
    InitialContext ctx;
    try {
    ctx = new InitialContext();
    ds =(DataSource)ctx.lookup("java:comp/env/jdbc/"+jndiDataSourceName);
    } catch (NamingException ex) {
    Logger.getLogger(DynamicPU.class.getName()).log(Level.SEVERE, null, ex);
    return "Exception generated trying to preform JDBC DataSource lookup. \n"+ex.toString();
    But when I run the code the server log shows the initial context is created Ok, but an exception is thrown becasue the resource name is not found:
    (and i have tried vriations of ctx.lookup("jdbc/"+jndiDataSourceName) etc etc
    You are fine here. It works in container because the InitialContext properties have been supplied already. That was the link I forwarded earlier. The InitialContext you create locally needs to locate the container JNDI. That is what the properties specify.
    Where I am confused is where you indicate the stack below is from the server log. So, you initiate a standalone (java main method) application, create an InitialContext, and you see the results in your app server log?
    LDR5010: All ejb(s) of [EJB_Module_1] loaded successfully!
    Programatically acquiring JNDI DataDource: Second_EJB_Module_DataBase
    The log message is null.
    javax.naming.NameNotFoundException: Second_EJB_Module_DataBase not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
    at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:192)...
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    This is strange since I can see this resource (a JDBC connection named Second_EJB_Module_DataBase) is configured on the server from the server's admin console.
    That is why you can obtain a lookup from within the container (app server).
    For this lookup to work it may be that one must map the name inside an ejb-jar.xml deployed with the application, but I have also read some resources like jdbc connection should have a default name. Does anyone know if my lookup() should work without using an ejb-jar.xml mfile to explcitly map the reource for my application?
    Both EBJ's and data sources can be referenced via JNDI. It's a remote lookup (that is normally optimized if it is running in the same JVM). You should not have any dependencies on a JDBC data source being set-up on ejb-jar.xml. That file can of course impact your EJB's. However, data sources are normally set-up on a container-specific basis (e.g., you probably did it through a console, but there is a spec somewhere about how to set up a data source via a resource the app server looks for; it varies from app server to app server). However, once you have that container-specific data source set-up, JNDI operates vendor-neutral. You should be able to take the code above and move it to JBoss or Weblogic or Tomcat or whatever (this is an ideal, in practice, the vendors sometimes put a data source in a name you would not expect, but again, you can use their JMX console to see what the JNDI name is).
    (As I stated above if I have to use a deployment discriptor to get at this JNDI datasource, then solution is not "programmatic" as newly configured datasources could not be accessed without redeploying the entire application).
    As JSchell alluded to, you will always have at least something vendor-specific. JNDI itself (the code you wrote) is totally portable. However, you have to set the various JNDI environment properties to a given vendor's spec. Ideally, you should not need a vendor's actual InitialContext application, but it's a possibility. Once you can safely cast to Context, you should be vendor-neutral (if not, demand your money back).
    So that is exactly where I am stuck, trying to get the lookup to work and wondering if it should work without and xml file mapping the resource for my app.
    What we ended up doing for standalone was to provide our own JNDI. If you look at the open source project JOTM, there are examples on how to use that with XBean (if integrating with Spring, as we did), you can easily set up a data source that runs standalone exactly as you get in the container. Another benefit is you get full JTA/JTS support and the ability to run XA transactions. (This might all be alphabet soup, but the app server gives it to you, and this is the way we ended up doing the same: JNDI + JTA + JTS + XA). It ends up the same application code uses a "vanilla" InitialContext and all we have to do is write one or two xml files (one for our app server, a couple for JOTM), and our actual code works the same.
    I still think you have a shot at getting to the container's JNDI, just not using their full-blown app server JAR.
    I think there must be a simple way to do this with an ejb-jar.xml, I am no expert in JNDI, I could be missing something simple, I will keep at it and post an answer here if I come up with it.
    Thanks, jayIt is simple to code. Getting it to integrate with your app server, yes, that can be challenging. But it has nothing to do with EJB's. Write a simple test. Using nothing but DataSource and InitialContext. Let us know where you get stuck.
    - Saish

  • Exceptions trying to run JSF on Sun App Server

    Hi!
    I have downloaded the Sun App Server and am trying to run the JSF Sample on it. The first page comes up fine, and when I enter data, it processes but does not come back with the response. I get the following errors:
    java.lang.ClassNotFoundException: com.sun.faces.application.StateManagerImpl$TreeNode
    java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
    java.lang.IllegalStateException: No FacesContext is available to process this request.
    Not sure if this is the right forum..
    Thanks

    Make sure you started the default server. Try
    http://localhost:8080. This will allow you to see if the appserver is running. The first page is a jsp an will run regardless of if the server is running. To start the defaul server look at you windows menu under Sun Microsystems.

  • Does anyone have SSL working with the Sun Java System App Server PE?

    We have been having problems (to say the least) getting SSL to work with the Sun Java Application Server 8.1 Platform Edition.
    We have a signed certificate from VeriSign and have it imported correctly, but when you test it by going to https://localhost:8182/ (note that 8182 is the port set up for SSL) you get a warning mesage saying that the certificate cannot be verified. When you view the certificate you see that it is the one that got automatically generated for you by the app server and not the one we purchased from VeriSign.
    So, I was just wondering if anyone out there has gotten this to work and if so, what document did you follow to tell yoiu how it was done!
    THANK YOU!

    once apon a time i had a real problem with the same issue.. best of luck.. i forget now how to fix.. sorry.

  • Where can I download the pure java edition app server for windows

    Where can I download a copy of the uncertified windows version of the app server listed below?
    OracleAS Java Edition v9.0.4
    Oracle HTTP Server
    OracleAS Containers for J2EE
    Oracle Enterprise Manager
    OracleAS TopLink
    Oracle JDeveloper
    Currently certified: Solaris, HP, Linux
    (I am not interested in the 10.0.3 preview version of the app server)
    I went to the Production release download area for the Application Server and they only let you download the Certified version of this SW which is for Linux, HP, and Linux.
    I went to the Pre-release download area and they only have the 10.0.3 preview versions listed for download.
    We want to install the above-mentioned version of an intel box running Windows for our integration point and we have linux boxes setup for production. We would like to use the same version of the app servers on all 3.
    Any ideas out there?

    Go into
    Applications / Utilities / Java Preferences.app
    and make sure you have the 'Enabled' boxes checked for both 64 and 32-bit.
    Finally, in
    Safari > Preferences | Security
    make sure the 'Enable Java' box is checked.
    Message was edited by: softwater

  • SetConnectTimeout Doesn't Work in Sun Java System App Server EE 8.1

    Hi all,
    I have a code that sends a request through HTTP using HttpURLConnection. Roughly, the code is as follows.
    HttpURLConnection huc = (HttpURLConnection) url.openConnection();
    huc.setConnectTimeout(10000); // 10 seconds.
    ....I tested it in a normal Java console program and it was working fine. I tested it again inside a servlet using Tomcat and it was okay. But when I tested in a servlet using Sun Java System Application Server, it didn't work. I reckon there must be some configuration that I need to set in Sun Java Application Server, but I just don't know where. I've been googling it for few days with no answer :( Do you guys have any idea about this?
    Thanks in advance.

    Hi all,
    I have a code that sends a request through HTTP using HttpURLConnection. Roughly, the code is as follows.
    HttpURLConnection huc = (HttpURLConnection) url.openConnection();
    huc.setConnectTimeout(10000); // 10 seconds.
    ....I tested it in a normal Java console program and it was working fine. I tested it again inside a servlet using Tomcat and it was okay. But when I tested in a servlet using Sun Java System Application Server, it didn't work. I reckon there must be some configuration that I need to set in Sun Java Application Server, but I just don't know where. I've been googling it for few days with no answer :( Do you guys have any idea about this?
    Thanks in advance.

  • CMP with Oracle 9i, Sun Java Sys App Serv 8.2 and J2EE1.4 (capture-schema)

    while building Entity bean with Container managed persistence
    we will create a database schema file, which will allow us to map fields
    from the enterprise beans to columns in the database tables created.
    For creating database schema file using Sun java System Application Server 8.2 and oracle9i database for j2ee1.4, i issued the following command at the command prompt.
    F:\j2eetutorial14\examples\ejb\cmproster>capture-schema -dburl jdbc:oracle:thin:@127.0.0.1:1521:oraglo -username scott -password tiger -table LEAGUE -table PLAYER -table TEAM -table TEAM_PLAYER -schemaname scott -driver oracle.jdbc.driver.OracleDriver -out build/cmproster.dbschema
    The above command gives the following error message. How do i debug this error. Thanks in advance
    using dburl:jdbc:oracle:thin:@127.0.0.1:1521:oraglo
    using username:scott
    using password:tiger
    using driver:oracle.jdbc.driver.OracleDriver
    using schemaname:scott
    using output file:build/cmproster.dbschema
    Capturing schema:scott
    JDO71101: Cannot access table LEAGUE.
    JDO71101: Cannot access table PLAYER.
    JDO71101: Cannot access table TEAM.
    JDO71101: Cannot access table TEAM_PLAYER.
    JDO71102: No valid tables requested. No schema file created

    how to provide the JNDI name in Sun Java Application Server
    Please do the favour
    Please reply to [email protected]

  • Error in establishing connection from Sun Java Sys APp Server to databse

    HI there !!
    i m using Sun Java System Application Serever P.E 9.1 for my java ee application and the databse base is SQL Server 2000 desktop edition.
    Now i m getting the following error when i try to get a connection .
    RAR7099: The mcf being used to allocate the connection and the MCF in the pool are not equal.
    RAR5038:Unexpected exception while creating resource
    RAR5117 : Failed to obtain/create connection. Reason : No PasswordCredential found
    RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]
    Error in allocating a connection. Cause: No PasswordCredential found
    StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    i found something related to this thing at :
    http://docs.sun.com/app/docs/doc/819-3678/6n5sopvvi?q=TBD&a=view
    but was unable to handle that ...
    any help regarding this will be highly appreciated !!!
    i m using the code provided at NetBeans Tutorial for web aplications at
    http://www.netbeans.org/kb/55/mysql-webapp.html

    Why are you resurrecting an over 1 year old thread with such a nonsensicial reply? Please don't do that. Just respond to active topics in the listing.

  • Firebird connection pool on Sun Java System App Server 8.0.0_01

    Hello everybody!
    I�ve tried (without success) to make a Firebird connection pool (of type "javax.sql.ConnectionPoolDataSource") on Sun AS 8.
    I�ve used "org.firebirdsql.pool.FBConnectionPoolDataSource" class (and I�ve tried also the other classes from the "firebirdsql-full.jar" package that�s included in Firebird 1.5.0 JDBC Driver distribution).
    Things appear to be OK, but I never get a response after ping-ing the resource...and this not OK, for sure...
    I might mention that any other connection pool that I�ve done (mysql, oracle, db2, mssql) works fine.
    Any thoughts?
    Thank you.

    The answer is yes. I can connect without a pool, through DriverManager.getConnection(...) and so on...
    Also, the config information for the pool conforms the driver docs. The strange thing is that I can register a Firebird DataSource with the "fscontext" JNDI provider, and I can lookup the registered DataSource...

Maybe you are looking for