Access class files in a Portal Archive

Hello,
i have downloaded the uwl.par file form the portal and imported it into the NWDS. The par file does include tons of class-files. How can i access them?
regards,
Markus

For viewing the class file, you can download any java decompiler
I would suggest use DJ..download from
http://members.fortunecity.com/neshkov/dj.html
You can also JAD for the same.
please note that decompliled code may not be exactly same as the original code.
Regards,
Piyush
ps: please mark useful answers.

Similar Messages

  • Not able to view the uploaded PAR file in the portal archive selection.

    Dear All,
    I have modified com.sap.portal.runtime.logon.par and have renamed it to some other name.
    Now I have uploaded the par file.
    The problem is that when choose new from PAR option (to create iview from a par file),I am not able to see the par file in the Portal Archive selection.
    I also want to know that if I am able to call the par file in the iview, can I use this iview to have a portal login.
    Our requirement is that we want to give login page for the portal in the portal home page.The portal home page will be for the anonymous users.
    Kindly try to guide me

    Hi Nitin,
    Check ur Portalapp.xml file. If u have the following code in that just <b>remove</b> them
    <property name="com.sap.portal.pcm.Category" value="platform">
    <property name="inheritance" value="final"/>
    Deploy it again.now u can see that par in ur portal.Refer this thread also
    PAR File not seen
    Regards,
    Tamil K

  • Can't access class files in jar file

    I'm running Eclipse and trying to access class files in a jar file from source. I have added the jar file through Properties/Java Build Path/Add External JARs... but the class files are not visible from my source code. Any ideas what is happening?
    Thanks!

    Depends what you mean by "visible." Are you getting a ClassNotFoundException? If so, your JAR isn't in your runtime CLASSPATH. You should be able to solve that (in Eclipse) by by modifying your project classpath.
    If "visible" means your code is usng a ZIP class to peek inside the JAR & it's not working, best bet is to re-study the ZIP class Javadocs & examine the error messages carefully.
    If this doesn't solve the problem, please provide more details & the specific error message/stack trace you're getting.

  • Problem in accessing class file for applet code

    I am developing a package in struts frame work.
    I place all the java files in action folder and jsp files in jsp folder.In one of the jsp I write code to invoke applet .But I am getting error as "class not found exception".Can any one help me? Below I am giving the code?
    <embed
    type="application/x-java-applet;version=1.4"
    pluginspage="http://java.sun.com/products/plugin/index.html#download"
    code="DigitalSignerApplet"
    archive="DigitalSignerApplet.jar"
    width="130"
    height="25"
    mayscript="true"
    scriptable="true"
    fileNameField="uploadFile"
    certificationChainField="certChain"
    signatureField="signature"
    signButtonCaption="Sign selected file">
    <embed>

    Excuse me with out files in webserver how can I get
    error, I am asking how to point to that specific classHuh? You can't. It's an HTML page with an applet. All normal rules apply.

  • Securing class files

    Hello,
    I read all these topics about securing class-files,
    and about encryptors and stuff like that
    so I tought this could be possible :
    I've made an application and you can run it by using an exe-file.
    In the same directory you find the class-files.
    Now I archived the class files with winrar, and set a password on it.
    I tried to use the exe-file to run the application, but it can't.
    Obvisiously, it can't find the mainclass.
    So I was wondering if there is a way to make clear to the exe -file, that the main class is in that zip-file, and that you need <this password> to get in to the zip-file.
    I think it's possible, but I don' know how to do it.
    I thought Google would know it, but he don't.
    ...

    The collision wasn't "stumbled" across it was found
    because the researchers
    found a way (from your link) to "reduce the search
    space".I didn't say "the collision was "stumbled" across"...
    >
    This means that, under certain circumstances, inputs
    producing the same hash
    can be found for other inputs + hashes.That is what I said...
    >
    Did you have a look at the PDF ?
    http://eprint.iacr.org/2004/199.pdf
    This doesn't damage the use of MD% for verifyingthat
    file contents are unchanged, so to OP - go aheadand
    use it.Well, it does because it means that there is the
    potential for another
    file that is not the same to return the same
    sum - hence the program
    won't realise the difference.And the situation is no worse now that before the duplication was found. Any encryption/hashing routine can create duplicate hashes - because none of them have an infinitely large numberspace.

  • Accessing a File within a zip, which was archived using Applet Tag

    Hi,
    Could Any one please tell me, How to Access a File from within an Applet. The File resides inside a zip which was Archived using <Applet> Tag.
    Actually, I want to write an application which runs both online and offline. So I have chosen Applet and All the files Which I need are zipped and is Archived through <Applet ARCHIVE="example.zip">.
    Now I want to access those XML files which are inside example.zip from my Applet.
    How can I do that?
    I think I will get security Exception.
    How to get rid of this security Exception.
    Kindly Answer soon.......
    It's very urgent.
    Thanking you,
    KumudaRaj

    Did you already try signing a jarfile? If no ->>
    You can call a class inside a jar-file within the applet.
    if this class should be able to acces files the jarfile
    first has to be signed. to do this, you must generate a key.
    the complete work:
    1. write your applet
    2. write a html-page with following code:
    <APPLET code="guestbook.class" archive="guestbook.jar" width=600 height=400></APPLET>
    3. make a zip-file with the guestbook.class, guestbook.form, guestbook$1.class, guestbook$... and rename it to guestbook.jar
    4. in the console type:
    keytool -genkey -alias YOURNAME
    5. sign the key to your jarfile with:
    jarsigner guestbook.jar YOURNAME
    6. try the applet. a warning should appear which you have to answer
    with YES then it should work
    my trouble is that i cant acces files anyway because right now i don�t
    alreadv have the clue to get the right (absolute?) path for the file. means i get an ioexception because the applet cant find the file :-((
    does anyone know how to solve this problem then? my code is:
    FileReader Stream = new FileReader("/members/Ui97u8g4f6b89mj90kh5gbr4ecf6KXC4/guestbook.txt");
    ...

  • CX Archive class file signature change is not reflected in event binding

    I have a CX archive file (.jar). I added a method to one of the class files in it and reuploaded to the archive. But, when I create a CX rule and specify event binding, this new method is not visible in the available list. What could be the cause of this issue and what is the resolution. Thanks.

    Its the way configurator works.
    First it checks in the middeltier java classpath if the class exists and if not, then look into archive to find the class.
    Archive has advantage like if you change the jar, you dont need to bounce the instance (need bounce for changing file on MT).
    Many developer will not have access to put the file on middle-tier, they can easily upload on archive.
    Archive will get moved automatically to target when you publish the model (MT file migration has to be done manually to publication target)

  • Data Access Class Reading a Text File????

    Hi,
    I have created a data access class... and for one of my constructors.. I need to go a text file and get the information : dsn name, username, and password from the file and bring it into the construtor... does anyone know how to do that??
    Thx
    Rich
    Here is my constructor:
    public DataAccess() {
    }

    Define a PropertyManager class where you specify the file and read the parameters? I have a sample I will have searc through my archive.
    Will post if after some time.
    Hope I gave a small spark to ignite.
    Cheers.
    Sekar.

  • How to access a class file outside the package?

    created a two java files Counter.java and TestCounter.java as shown below:
    public class Counter
         public void print()
              System.out.println("counter");
    package foo;
    public class TestCounter
         public static void main(String args[])
              Counter c = new Counter();
              c.print();
    Both these files are stored under "D:\Test". I first compiled Counter.java and got Counter.class which resides in folder "D:\Test"
    when i compile TestCounter.java i got the following error message:
    D:\Test>javac -classpath "d:\Test" -d "d:\Test" TestCounter.java
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    TestCounter.java:6: cannot find symbol
    symbol : class Counter
    location: class foo.TestCounter
    Counter c = new Counter();
    ^
    2 errors
    what could be the problem. Is it possible to access a class file outside the package?

    ya that's fine..if we have two java files where both resides in the same package works fine or two java files which donot have a package statement also works fine. But my doubt is, i have a Counter.class which does not reside in a package and i have a TestCounter.class which resides in a package "foo", in such a scenario, how do i tell to the compiler that "Counter.class resides in such a path, please look at that and give me TestCounter.class". i cannot use import statement to import Counter.class in TestCounter.java because i donot have a package for Counter.java.

  • How to access classes in jar files

    hi I have added a jar file to my project in eclipse.How to access the classes in that jar file?

    cu is right.
    classloader returns the URL of your resource. You can the jar using something like the following...
    ClassLoader classloader = this.getClassLoader();
    url = classloader.getResource("your_resouces...");
    if(url == null)
    System.out.println("cannot find resource ");
    return null;
    String jar = url.getFile();
    jar = jar.substring(jar.indexOf("/")+1, jar.lastIndexOf("!")).replace('/', '\\');
    obviously, this code snippet works on windows only. Now you have the jar file path. I use Jar file classes to access the jar file. (e.g. you can search for each class files)
    Ming

  • How to access variables declared in java class file from jsp

    i have a java package which reads values from property file. i have imported the package.classname in jsp file and also i have created an object for the class file like
    classname object=new classname();
    now iam able to access only the methods defined in the class but not the variables. i have defined connection properties in class file.
    in jsp i need to use
    statement=con.createstatement(); but it shows variable not declared.
    con is declared in java class file.
    how to access the variables?
    thanks

    here is the code
    * testbean.java
    * Created on October 31, 2006, 12:14 PM
    package property;
    import java.beans.*;
    import java.io.Serializable;
    public class testbean extends Object implements Serializable {
    public String sampleProperty="test2";
        public String getSampleProperty() {
            return sampleProperty;
    }jsp file
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ page import="java.sql.*,java.util.*"%>
    <html>
    <head>
    <title>Schedule Details</title>
    </head>
    <jsp:useBean id="ConProp" class="property.testbean"/>
    <body>
    Messge is : <jsp:getProperty name="msg" property="sampleProperty"/>
    <%
      out.println(ConProp.sampleProperty);
    %>
    </body>
    </html>out.println(ConProp.sampleProperty) prints null value.
    is this the right procedure to access bean variables
    thanks

  • Access jar file from in-memory classes...

    I have some classes that I compile to memory and everything works fine until one class that must access some external jar files. I have been unable to access those jar files from disk after trying every suggestion using URLClassLoader. I even tried someone's example to hack the SystemClassLoader which properly adds the jar file paths, but still they can't be seen. The only way it works is if I put the files in the jdk/jre/lib/ext directory. Then everything works fine. There must be a way to load the jar files in memory as well as the class files so they can be accessible. Has anyone done anything like this? Is it possible? Even though the class files are in memory, why would the jar files not be seen even when they are added to the same URLClassLoader's URL's. Thanks.

    Sorry that wasn't clear. What I mean is that the classes are compiled to byte code directly to memory and no physical .class file is created. Yes, I'm using my own ClassLoader that extends URLClassLoader and I'm setting the parent to ClassLoader.getSystemClassLoader(). I also should mention that I'm doing this inside a Netbeans module that is part of a Netbeans Platform application. I don't know why that should matter though, since I'm trying to do everything in memory without creating the physical files. Thanks.

  • New PAR file not appearing in the Portal Archive Selection list

    Hello Knowledgeable Portal Ones,
    I am on EP6.0 SP13.
    A developer on the team created a new PAR.  It was uploaded, and it is now showing in my portalapps directory.  A super-admin for the portal can successfully create an iView using it (New from PAR), but developers (who have lesser security access) can not.  When developers attempt to do so, no portal archives appear in the portal archive selection list.  In fact, developers would not be able to create a new iView from any PAR.
    I see that the portalapp.xml has placed the PAR in "high-safety".  I suppose this may be causing the problem. 
    How do I address this problem?
    Thank you for your feedback.
    Kevin

    Hi Kevin,
    there are two known possibilities for this behaviour:
    1.) Within the portalapp.xml, the property com.sap.portal.pcm.Category has been set to "platform". This should only occur if someone imported an existing PAR to modify it. Also see Browse deployment iview
    2.) Someone has changed the permissions for application access (under System Administration - Permissions - Portal Permissions - Applications - <YourApplication> --- There the one who should create an iView from a component must have Read permission for the corresponding application, also see http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604e505fd11d7b84200047582c9f7/frameset.htm - Administrator Permissions - For portal components
    Hope it helps
    Detlev

  • Unable to access classes in third party jar files packaged with my ejb.jar

    I have packaged some third party jar files in my xxx_ejb.jar file.  The third party jar file contains classes that are accessed by some custom classes which are in turn accessed by my bean classes.  I get the following error when my custom classes attempt to use any of the classes in one of the third party jar files:
    java.lang.NoClassDefFoundError: com/Ostermiller/util/CSVParser
    Shouldn't I be able to access classes in jar files that are packaged with my xxx_ejb.jar file?  I see the xxx_ejb.jar file as a resource of the application classloader that contains it but I don't see the third party jar files.

    As per the Java EE specification, additional JAR files should be packaged on the EAR level. Only WAR files' WEB-INF/lib folder is scanned for JAR files to be added to the classloader.

  • Cannot access Graphics - bad class file

    Hey.
    When I try to compile my source I get an error saying...
    .\Man.java:146: cannot access Graphics
    bad class file: .\Graphics.java
    file does not contain class Graphics
    Please remove the files or make sure it appears in the correct subdirectory.
    It's on a different computer so that's not exactly it, but it's close enough. Compiler was working fine until the other day when i found out that all the source files were zipped up in src.zip, I had to extract Graphics.java so I could open it in emacs, and after I did that it started giving me that error message. There's nothhing wrong with my source, and I didn't move Graphics, it's still in the correct place exactly as it was, and i looked at it, all the right stuff is still inside. I'm quite confused.
    So do I have to reinstall? That would mean a massive download on my 56k and I kinda wanna carry on with my work.

    You should not need to unzip src.zip to use the Graphics class or any class that comes with j2sdk. The compiled classes are in jar files that are installed in certain directories when you install the j2sdk.
    You should only need to have a line "import java.awt.Graphics;" near the start of your source code.
    The error most likely occurred when the compiler found a Graphics.class file but inside the file is java.awt.Graphics class, not a plain Graphics class.

Maybe you are looking for