Web classes are loaded by classloader or app server

Hi,
In web applications the loading of the web classes like struts action class or servlets will be done by the JEE application server
or Class loaders in java (Bootstrap, System, Extensions class loaders)?
Thanks.

aksarben wrote:
I think a relevant question would be: Why do you care? Is there more to your query than meets the eye?Probably. In the context of application servers it is actually quite useful to know how classes are managed; if you wouldn't know how for example Apache Tomcat uses classloaders to isolate server resources from application resources, you could be making all the wrong assumptions. tomcat in that respect is easy, application servers tend to have even more complex classloader hierarchies to be able to share classpath resources between applications etc. etc.

Similar Messages

  • Some web pages are not loading on my Macbook pro, Safari,firefox,chrome,opera! Some web pages are loading pictures like thumbnails. Pls i need helpppppppppp!

    Some web pages are not loading on my Macbook pro, Safari,firefox,chrome,opera! Some web pages are loading pictures like thumbnails. Pls i need helpppppppppp!

    It would help us help you if you provided a link to a non working page.

  • How my class are loaded in jvm?

    class TestLoader {
    public static void main(String[] args) {
    System.out.println("welcome");
    d:\java\TestLoader is available.
    javac TestLoader.java
    java TestLoader
    it run fine. how my TestLoader.class file loaded to jvm? How do u create a instance for ClassLoader class? can u explanin this?

    For fun, run your JVM with the command-line option that displays class loads.
    (I don't recall the option. Look it up.)

  • Load Flat File from App Server

    HI, all.
    I want load flat file from appliation server. I created CSV file and loaded it on app. server with FM ARCHIVEFILE_CLIENT_TO_SERVER. After I created datasource and tried load data in the infocube. In this procedure I encountered with two problem
    1. When I look file in AL11, I doesn't see cyrillic symbols, instead this symbols I see #.
    2. When I try load data with data source, I get exception RS_EXCEPTION 000 "File don't open"
    Anybody can help me resolve this problem?
    wbr, Fanil.

    Hi, kodanda pani KV.
    2. File is was closed.
    1. Can me you clearly explain what you meen?
    wbr, Fanil

  • If your web pages are loading slowly, this resolved my issue.Hope it helps!

    Mac OS: Long delay before webpages load, then load suddenly at normal speed
    Symptoms
    When trying to access a website via its DNS name, such as www.apple.com, there may be a delay that ranges from several seconds up to several minutes before the page loads at normal speed, depending on the operating system version and configuration. However, if you access the website's numerical IP address, such as http://17.149.160.49 , the page loads immediately.
    Two causes of the issue are described below, DNS configuration and changing networks. Issues related to changing networks usually only affect portable Macs.
    Products Affected
    Safari, Mac OS X 10.4, Mac OS X 10.3, Mac OS X 10.2, Mac OS X 10.1, Mac OS X 10.0, Mac OS X 10.5, Mac OS X 10.6
    Resolution
    DNS configuration
    This may indicate a non-responsive DNS server or an invalid DNS configuration. A DNS server converts a name to a numerical IP address, "www.apple.com" to "17.149.160.49", for example. You can connect to an IP address without any delay, because the need for DNS resolution is avoided. Here are four scenarios in which the symptom may occur:
    You have specified two or more DNS servers in the Network preference pane (possibly at the direction of a network administrator or your ISP), but the first server on the list has become non-responsive, or was entered incorrectly. The delay occurs while Mac OS X waits for the first server to respond, then it goes to the next server in your list. Make sure the addresses are entered correctly. Changing the order of DNS addresses may improve performance. If your network administrator prefers that the primary server be used, you may wish to change back to the original order after the issue is resolved with the primary server.
    Your network may be configured to provide automatic discovery of DNS service, without needing to manually type the DNS server addresses at your computer. If you have manually typed a DNS address that is incorrect or out of date, your computer may wait for the incorrect address to respond (a "timeout") before succeeding at automatic discovery.
    You have not specified a DNS server, and automatic discovery of the service is not provided on your network. In this scenario, you can only connect via an IP address. Web pages do not load at all via a DNS name, such as is described in this article.
    How to resolve
    Check with your network administrator or Internet Service Provider (ISP) to make sure your DNS information is correct. If your ISP only provides you with one DNS address, consider requesting a second one for use in the event that the first becomes unavailable.
    Once you have the address(es), you can use these steps to change your DNS information. Note: After using these steps, some Internet applications may need to be quit and reopened to return to normal behavior.
    Mac OS X v10.5 or 10.6:
    From the Apple menu, choose System Preferences.
    From the View menu, choose Network.
    Click the interface you use to connect to the Internet, such as AirPort or Built-in Ethernet.
    If you use Built-in Ethernet: Type your DNS address(es) in the DNS Server field. If you have more than one, separate them with a comma.
    If you use AirPort, click Advanced, then click the DNS tab. For each server, click the "+" button under DNS Servers and enter the address provided by your ISP or network admin. Click OK when done.
    Click Apply.
    Mac OS X v10.4 or earlier:
    From the Apple menu, choose System Preferences.
    From the View menu, choose Network.
    From the Show menu, choose the interface you use to connect to the Internet.
    Click the TCP/IP tab.
    Type your DNS address in the Domain Name Servers field. If you have more than one, press Return at the end of each to put the next address on a new line.
    Click Apply Now.
    Changing networks
    You may experience a delay with the first connection after changing networks on a portable Mac. For example, you might use an MacBook at home with AirPort, then take it to work or school and use an Ethernet connection. By default, Mac OS X uses one set of Internet preferences (known as a "location") named Automatic that will search your computer's modem, Ethernet, and AirPort interfaces until it finds the one that is connected to the Internet. You may experience a delay while your computer determines which network it is on. This can be easily differentiated from a DNS issue by creating a location that only contains one network interface. For more information, see Using network locations in Mac OS X.

    Yeah.  I'm seeing the same behavior.  Safari hangs when it loads pages.  Firefox loads them quickly.  That's not a DNS issue.
    Some pages hang for MINUTES in Safari.  If you just touch the resize triangle at the bottom right of the screen, then Safari loads the page just fine.  This is a redraw problem, not a DNS issue.
    This happens on both my wife's iMac Core i5 and my Mac Mini Core 2 Duo - both running Mac OS X 10.6.8
    David

  • If your web pages are loading up slowly....This helped me out!

    Mac OS: Long delay before webpages load, then load suddenly at normal speed
    Last Modified: April 20, 2010
    Article: TS2296
    Old Article: 106799
    Symptoms
    When trying to access a website via its DNS name, such as www.apple.com, there may be a delay that ranges from several seconds up to several minutes before the page loads at normal speed, depending on the operating system version and configuration. However, if you access the website's numerical IP address, such as http://17.149.160.49 , the page loads immediately.
    Two causes of the issue are described below, DNS configuration and changing networks. Issues related to changing networks usually only affect portable Macs.
    Products Affected
    Safari, Mac OS X 10.4, Mac OS X 10.3, Mac OS X 10.2, Mac OS X 10.1, Mac OS X 10.0, Mac OS X 10.5, Mac OS X 10.6
    Resolution
    DNS configuration
    This may indicate a non-responsive DNS server or an invalid DNS configuration. A DNS server converts a name to a numerical IP address, "www.apple.com" to "17.149.160.49", for example. You can connect to an IP address without any delay, because the need for DNS resolution is avoided. Here are four scenarios in which the symptom may occur:
    You have specified two or more DNS servers in the Network preference pane (possibly at the direction of a network administrator or your ISP), but the first server on the list has become non-responsive, or was entered incorrectly. The delay occurs while Mac OS X waits for the first server to respond, then it goes to the next server in your list. Make sure the addresses are entered correctly. Changing the order of DNS addresses may improve performance. If your network administrator prefers that the primary server be used, you may wish to change back to the original order after the issue is resolved with the primary server.
    Your network may be configured to provide automatic discovery of DNS service, without needing to manually type the DNS server addresses at your computer. If you have manually typed a DNS address that is incorrect or out of date, your computer may wait for the incorrect address to respond (a "timeout") before succeeding at automatic discovery.
    You have not specified a DNS server, and automatic discovery of the service is not provided on your network. In this scenario, you can only connect via an IP address. Web pages do not load at all via a DNS name, such as is described in this article.
    How to resolve
    Check with your network administrator or Internet Service Provider (ISP) to make sure your DNS information is correct. If your ISP only provides you with one DNS address, consider requesting a second one for use in the event that the first becomes unavailable.
    Once you have the address(es), you can use these steps to change your DNS information. Note: After using these steps, some Internet applications may need to be quit and reopened to return to normal behavior.
    Mac OS X v10.5 or 10.6:
    From the Apple menu, choose System Preferences.
    From the View menu, choose Network.
    Click the interface you use to connect to the Internet, such as AirPort or Built-in Ethernet.
    If you use Built-in Ethernet: Type your DNS address(es) in the DNS Server field. If you have more than one, separate them with a comma.
    If you use AirPort, click Advanced, then click the DNS tab. For each server, click the "+" button under DNS Servers and enter the address provided by your ISP or network admin. Click OK when done.
    Click Apply.
    Mac OS X v10.4 or earlier:
    From the Apple menu, choose System Preferences.
    From the View menu, choose Network.
    From the Show menu, choose the interface you use to connect to the Internet.
    Click the TCP/IP tab.
    Type your DNS address in the Domain Name Servers field. If you have more than one, press Return at the end of each to put the next address on a new line.
    Click Apply Now.
    Changing networks
    You may experience a delay with the first connection after changing networks on a portable Mac. For example, you might use an MacBook at home with AirPort, then take it to work or school and use an Ethernet connection. By default, Mac OS X uses one set of Internet preferences (known as a "location") named Automatic that will search your computer's modem, Ethernet, and AirPort interfaces until it finds the one that is connected to the Internet. You may experience a delay while your computer determines which network it is on. This can be easily differentiated from a DNS issue by creating a location that only contains one network interface. For more information, see Using network locations in Mac OS X.

    Good tip. Useful DNS servers to try, when doing this -
    OpenDNS - 208.67.222.222, 208.67.220.220
    Google - 8.8.8.8, 8.8.4.4

  • What classes are loaded into JVM? rt.jar 1.3 or 1.4?

    Hi,
    I am trying to run a stored procedure on the DB release 2.
    On Linux I get:
    OTHER EXCEPTION caught -29532 ORA-29532: Java call terminated by uncaught Java
    exception: java.lang.RuntimeException: java.lang.ClassNotFoundException:
    sun/java2d/loops/OpaqueCopyAnyToArgb
    This particular class is a part of 1.4, but not 1.3... I don't use it directly, so I am wondering where it is being referenced?
    I don't think trying to load rt.jar would be a particularly good idea. But it appears to me that there is a mix of graphics2d?
    The full stack trace is:
    java.lang.RuntimeException: java.lang.ClassNotFoundException:
    sun/java2d/loops/OpaqueCopyAnyToArgb
    at
    sun.java2d.loops.GraphicsPrimitiveProxy.instantiate(GraphicsPrimitiveProxy.java:74)
    at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:222)
    at
    sun.java2d.loops.GraphicsPrimitiveMgr.locatePrim(GraphicsPrimitiveMgr.java:179)
    at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:132)
    at sun.java2d.loops.Blit.locate(Blit.java:45)
    at sun.java2d.loops.Blit.getFromCache(Blit.java:59)
    at
    sun.java2d.loops.GraphicsPrimitive.createConverter(GraphicsPrimitive.java:503)
    at
    sun.java2d.loops.GraphicsPrimitive.setupGeneralBinaryOp(GraphicsPrimitive.java:473)
    at sun.java2d.loops.MaskBlit.makePrimitive(MaskBlit.java:115)
    at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:139)
    at sun.java2d.loops.MaskBlit.locate(MaskBlit.java:43)
    at sun.java2d.loops.MaskFill$General.<init>(MaskFill.java:134)
    at sun.java2d.loops.MaskFill.makePrimitive(MaskFill.java:115)
    at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:139)
    at sun.java2d.loops.MaskFill.locate(MaskFill.java:44)
    at sun.java2d.loops.DrawGlyphList$General.<init>(DrawGlyphList.java:76)
    at sun.java2d.loops.DrawGlyphList.makePrimitive(DrawGlyphList.java:65)
    at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:139)
    at sun.java2d.loops.DrawGlyphList.locate(DrawGlyphList.java:32)
    at sun.java2d.SurfaceData.makeRenderLoops(SurfaceData.java:488)
    at sun.awt.image.BufImgSurfaceData.getSolidLoops(BufImgSurfaceData.java) at sun.awt.image.BufImgSurfaceData.initSolidLoops(BufImgSurfaceData.java)
    at sun.awt.image.BufImgSurfaceData.createData(BufImgSurfaceData.java)
    at sun.java2d.SurfaceData.getSurfaceDataFromImage(SurfaceData.java:104)
    at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:62)
    at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:137)
    at sun.java2d.pipe.DrawImage.transformImage(DrawImage.java:819)
    at sun.java2d.pipe.ValidatePipe.transformImage(ValidatePipe.java:184)
    at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2892)
    at logoUtils.insertLogo(InsertLogo:59)
    This particular procedure crashes on Windows with the following in the database alert log:
    Wed Sep 14 11:54:08 2005
    Errors in file d:\oracle\product\10.2.0\admin\orcl10gr2\udump\orcl10gr_ora_2640.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0xF92D18C] [ADDR:0x4] [UNABLE_TO_READ] []

    Sounds like a bug; suggest you log a TAR.
    In the mean time, if you are feeling very adventurous, you could try loading and resolving just the missing classes. This is extremely not supported and your mileage may vary:
    % $JDKHOME/bin/jar -xf rt.jar META-INF/MANIFEST.MF
    % more META-INF/MANIFEST.MF
    Manifest-Version: 1.0
    Specification-Title: Java Platform API Specification
    Created-By: 1.4.2_04 (Sun Microsystems Inc.)
    Implementation-Title: Java Runtime Environment
    Specification-Vendor: Sun Microsystems, Inc.
    Specification-Version: 1.4
    Implementation-Version: 1.4.2_04
    Implementation-Vendor: Sun Microsystems, Inc.
    % $JDKHOME/bin/jar -xf rt.jar sun/java2d/loops/OpaqueCopyAnyToArgb.class sun/java2d/loops/OpaqueCopyArgbToAny.class sun/java2d/loops/XorCopyArgbToAny.class
    % loadjava -g public -s sun/java2d/loops/*.class
    % sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 15 16:34:35 2005
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning option
    SQL> select object_name, object_type, status from all_objects where object_name in
    2 (dbms_java.shortname('sun/java2d/loops/OpaqueCopyAnyToArgb'),
    3 dbms_java.shortname('sun/java2d/loops/OpaqueCopyArgbToAny'),
    4 dbms_java.shortname('sun/java2d/loops/XorCopyArgbToAny')) and
    5 object_type = 'JAVA CLASS';
    OBJECT_NAME OBJECT_TYPE STATUS
    /302f5f36_XorCopyArgbToAny JAVA CLASS INVALID
    /f7814203_OpaqueCopyArgbToAny JAVA CLASS INVALID
    /a248592e_OpaqueCopyAnyToArgb JAVA CLASS INVALID
    SQL>
    SQL> alter java class "/f7814203_OpaqueCopyArgbToAny" resolve;
    Java altered.
    SQL> alter java class "/302f5f36_XorCopyArgbToAny" resolve;
    Java altered.
    SQL> alter java class "/a248592e_OpaqueCopyAnyToArgb" resolve;
    Java altered.
    SQL> select object_name, object_type, status from all_objects where object_name in
    2 (dbms_java.shortname('sun/java2d/loops/OpaqueCopyAnyToArgb'),
    3 dbms_java.shortname('sun/java2d/loops/OpaqueCopyArgbToAny'),
    4 dbms_java.shortname('sun/java2d/loops/XorCopyArgbToAny')) and
    5 object_type = 'JAVA CLASS';
    OBJECT_NAME OBJECT_TYPE STATUS
    /302f5f36_XorCopyArgbToAny JAVA CLASS VALID
    /f7814203_OpaqueCopyArgbToAny JAVA CLASS VALID
    /a248592e_OpaqueCopyAnyToArgb JAVA CLASS VALID
    SQL> conn scott/tiger
    Connected.
    SQL> create or replace java source named Test as
    package sun.java2d.loops;
    public class Test {
    public static String tryLoad() throws Exception {
    return Class.forName("sun.java2d.loops.OpaqueCopyAnyToArgb").getName();
    / 2 3 4 5 6 7 8
    Java created.
    SQL> create or replace function runtest return varchar2 as language java name
    'sun.java2d.loops.Test.tryLoad() return java.lang.String';
    2 3
    Function created.
    SQL>
    SQL> select runtest from dual;
    RUNTEST
    sun.java2d.loops.OpaqueCopyAnyToArgb
    If the test procedure (which forced the class to be loaded and initialized) succeeds, then you are probably in fairly good shape.

  • Muse Web Fonts are loaded but those with variations won't allow selection

    I can swap from Questrial to one of the other single fonts but it won't let me change to any cut from a font family such as Source Sans Pro.
    I never used to have this problem but I do now and want to change one of the fonts I'm using on the site I'm creating.
    Here's a link but as you can guess I want to change the font in Muse not adjusting the code
    http://artefrancesco122614.businesscatalyst.com/index.html
    Thanks for the help

    Thanks for your answer but you should realize that Source Sans Pro has a font family" not a single font.
    To get it to work I've had to delete and re-add the fonts. Which I shouldn't have to do to have the fonts work properly

  • Over-riding the class javax.faces.context.FacesContext: SUN App Server 9.1

    The method to over ride the faces context has changed between SUN Application Server 8.2 and 9.1, as a result the instructions which were previously provided on the MyFaces wiki (http://wiki.apache.org/myfaces/Installation_and_Configuration) no longer work. What I am looking for is instructions that will allow me to use our own faces jars and not (javaee.jar) which is provided as part of the application server.
    What I need to do is to get Sun Application Server 9.1 to allow me to over ride the faces context /javax/faces/context/ with that from my local jars, in version 8.X the following steps were enough:
    Start 8.X instructions:
    1. Change the config security file so that MyFaces <http://wiki.apache.org/myfaces/MyFaces> can delete it's temporary files.
    Change permission
        java.io.FilePermission <http://wiki.apache.org/myfaces/FilePermission> "<<ALL FILES>>", "read,write";to
      java.io.FilePermission <http://wiki.apache.org/myfaces/FilePermission> "<<ALL FILES>>", "read,write,delete";2. Prevent the sun reference implementation from being used
    In your WEB-INF, create a sun-web.xml file containing
        <?xml version="1.0" encoding="UTF-8"?>
        <sun-web-app>
        <class-loader delegate="false"/>
        </sun-web-app>3. That way, myfaces classes will be loaded instead of Sun RI ones.
    And prevent MyFaces <http://wiki.apache.org/myfaces/MyFaces> from loading the Sun RI context listener
    By creating in your webapp a "fake"
    com.sun.faces.config.ConfigureListener
    <http://wiki.apache.org/myfaces/ConfigureListener> that will be loaded BEFORE the sun RI one's.
    The war file I am making available as a test case has just such a file in my case it is called fakefaces.jar
    End instructions for 8.2
    However these steps have changed for version 9.1 as following the exact same procedures does not result in the Application Server using the correct jars, the following is a test using a simple find.jsp, notice how Application Server 9.1 is still using the default jars and not the ones shipping with included as part of my testApp.
    Within the war file is a jsp called find.jsp using this I can check which jar file file is being used for any class in my case I'm interested in the the /javax/faces/context/FacesContext.class, in 9.1 it always uses teh copy from javaee.jar and never teh local copy:
    For example running: http://<ip address>:<port>/test/find.jsp?class=javax.faces.context.FacesContext
    Version 9.1 returns: file:/u01/software/Apps/SunAppServer9.1/lib/javaee.jar!/javax/faces/context/FacesContext.class
    Version 8.2 returns: file:/u01/software/Apps/SunAppServer8.2/domains/domain1/applications/j2ee-apps/TestApp/test_war/WEB-INF/lib/myfaces-api.jar!/javax/faces/context/FacesContext.class
    Hence 9.1 is still using the copy provided by SUN and not our copy.
    The code for find.jsp is:
    <%
        String className = request.getParameter("class");
        Class theClass;
        try
            theClass = Class.forName(className);
            java.net.URL url = theClass.getResource("/" + theClass.getName().replace('.', '/') + ".class");
            out.println(url.getFile());
        catch (ClassNotFoundException e)
            // TODO Auto-generated catch block
            out.println(e);
    %>-------------------------------------------------
    Any idea how to over-ride the FacesContext class in version 9.1 to allow for similar functionality as 8.X
    Thanks,
    ERIC GANDT

    Alright, I've narrowed it down to my Customization Class. I attempted to have my customization class PortalCC in a JAR file, excluded it from the WAR file and added the JAR in the lib directory of the EAR file, as described on:
    http://docs.oracle.com/cd/E23943_01/web.1111/e16272/deploy_java_ee_app.htm#CHDGGFEB

  • Deploying a Web Service developed for WebSphere to Oracle App Server

    I have an EAR file containing a web service (exposed as a servlet) that was developed using WebSphere Studio and originally deployed to a WebSphere application server. It should be J2EE 1.4 compliant. I now want to deploy it as a web service on Oracle Application Server.
    Is it as simple as just deploying the EAR to OAS? Or do I need to (re-)assemble the EAR using the Web Service Assembler tool and then deploy it? What is the best practices approach for this scenario? My goal is to develop a web service that is deployable to both WebSphere and OAS with as little fuss as possible.
    Thanks

    using Ant.
    check apache.org project there they have the ant section.
    Regards

  • File contains are truncated while writte on app server.

    I am writing the file on application server (below is the code) but contains are getting truncated while write the file. Is there any limit of trasfering the contains or there is any nothing missing in program.
    data : p_file(255)     TYPE c VALUE '/devl/ED1/interfaces/202/UCIR/Outbound/Out/dsk4.dat'.
    data : lv_tem(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes'.
    data : lv_tem1(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes1'.
    data : lv_tem2(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes2'.
    data : lv_tem3(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes3'.
    data : lv_tem4(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes4'.
    data : lv_tem5(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes5'.
    data : lv_tem6(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes6'.
    data : lv_tem7(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes7'.
    data : lv_tem8(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes8'.
    data : lv_tem9(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes9'.
    data : lv_tem10(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes10'.
    data : lv_tem11(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes11'.
    data : lv_tem12(50) TYPE c VALUE 'xcvbnmlkjhgfdsaqwertyuiopmkiujnhybgtrfvcdes12'.
    data: lv_string TYPE ZSTR1.
    CONCATENATE lv_tem  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem1  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem2  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem3 lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem4  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem5 lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem6  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem7  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem8  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem9  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem10  lv_string  INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem11  lv_string INTO lv_string SEPARATED BY '#'.
    CONCATENATE lv_tem12  lv_string INTO lv_string SEPARATED BY '#'.
    open DATASET p_file for OUTPUT in TEXT MODE ENCODING NON-UNICODE. "DEFAULT .
    TRANSFER lv_string TO p_file ."LENGTH 1000.
    CLOSE DATASET p_file.

    It wont get truncated.check using CG3Z download the file to ur local drive.then check again.

  • Error Loading servlet in iplanet app server NotSerializableException

    I am trying to load a servlet and everything runs correct but when i try to connect to the database of the system I get java.io.NotSerializableException. I am not passing any data through rmi or writing any data to the system, but still get this message. The wierd thing is that this runs without a problem on my windows, running JRun, and linux, running tomcat, machine but give me this message on my unix machine running Iplanet, does anyone have any clue to what would cause such an error, when everything works on all the other machines but the unix one.
    Thanks.

    I am not sure what that realy means???
    Here is the error
    [01/Apr/2002 16:34:59:2] error: Exception:
    SERVLET-IO_exception: IOException occurred
    Exception Stack Trace:
    java.io.NotSerializableException:
    org.meinds.forum.database.DbAuthorization
    at
    at java.lang.Throwable.fillInStackTrace(Native
    ative Method)
    at
    at java.lang.Throwable.fillInStackTrace(Compiled
    piled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.io.IOException.<init>(Compiled Code)
    at
    at java.io.ObjectStreamException.<init>(Compiled
    piled Code)
    at
    at
    at java.io.NotSerializableException.<init>(Compiled
    ed Code)
    at
    at
    at java.io.ObjectOutputStream.outputObject(Compiled
    ed Code)
    at
    at
    at java.io.ObjectOutputStream.writeObject(Compiled
    ed Code)
    at
    at
    at
    at
    java.io.ObjectOutputStream.outputClassFields(Compiled
    Code)
    at
    at
    at
    at
    java.io.ObjectOutputStream.defaultWriteObject(Compiled
    Code)
    at
    at
    at java.io.ObjectOutputStream.outputObject(Compiled
    ed Code)
    at
    at
    at java.io.ObjectOutputStream.writeObject(Compiled
    ed Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformNASSe
    ssion.putMemberValue(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformNASSe
    ssion.saveSession(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformNASSe
    ssion.decrementActiveRequestCount(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.platformhttp.PlatformHttpS
    ervletRequest.releaseSession(Compiled Code)
    at
    at
    at
    at
    com.netscape.server.servlet.servletrunner.ServletRunne
    r.execute(Compiled Code)
    at
    at
    at com.kivasoft.applogic.AppLogic.execute(Compiled
    ed Code)
    at
    at
    at com.kivasoft.applogic.AppLogic.execute(Compiled
    ed Code)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at com.kivasoft.thread.ThreadBasic.run(Native
    n(Native Method)
    at
    at com.kivasoft.thread.ThreadBasic.run(Compiled
    piled Code)
    at java.lang.Thread.run(Compiled Code)

  • Does Java load a class in caché ? New compiled class are not used .

    I run my application (using java.exe + 'my class').
    One 'Mybutton' launch a new class Frame based, with one button on it. I see this Frame and close it.Ok.
    Now a put a new button in this Frame ( I have 2 buttons then), I save it (and Eclipse compile it).
    If a do click on 'Mybutton' I see the old Frame (with one button) not the new Frame with 2 buttons.
    What happens ? Is there something like cache class loader? How to avoid this?
    My intention is to try to test the changes inmediatly, but in this situation I must to close Myapp and re-run it ?
    Some solution?
    Thamk you

    Java classes are loaded by an Object called a ClassLoader. Each classloader permanently caches all the classes it loads, and always uses an already loaded class in preference to loading a new one.
    When a program starts there's already a ClassLoader, the one that loaded your main class. It loads classes from the class path. It exists all the time the program is running.
    You can create your own classloaders in the program and if you load your changeable class through one then then you can get a new version by creating a new classloader.
    Typically you create an instance of URLClassLoader.
    However you need to know that classloaders "delegate" loadClass requests before loading the class themselves, which means that if the class you request is on the class path, your URLClassLoader will get the system class loader to load it and it won't work. You need a special directory (typically called a repsitory) for classes you wish to load multiple versions of.

  • Which classes are required to run a basic client app outside of jDev?

    Basic question, folks.
    For a minimal program, say a frame and a swing component, which classes need be copied (to a system without any Oracle software installed) in order to run? Is there a listing available that describes which class/jars are needed if x component is used?
    Also, will jre 1.4 work? Or do I need to copy a special Oracle JVM? If so, is there a specific installer just for it?
    TIA
    -Nat

    Nathan,
    To run any Java application, you will need a Java Runtime Environment(JRE) which is part of the Java Software Development Kit (SKD). If you want to distribute your application with a JRE, you can copy the .../jdk/jre directory from JDeveloper (check the readme file about copyrights and other legal issues) or you download it from http://java.sun.com/j2se/1.3/download.html
    Both the AWT and Swing libraries are included in the JRE in the same jar file as the basic java.lang or java.io classes. The name of the file is rt.jar.
    If your program runs with the Oracle VM, it will run with Hotspot. Both VMs are equivalent when running your application. It is only for the development phase that we strongly suggest to use the Oracle VM because it is much better instrumented for development than any other VM.
    If you want to know precisely which classes are loaded from which jar files, run your application from a command line and add -verbose:class.
    For example:
    C:\JDev9\jdk\demo\jfc\SwingSet2>java -verbose:class -jar SwingSet2.jar
    - Cedric
    JDev. team

  • Casting to an abstract class from a different classloader

    I have a class Special that extends an abstract class Base. In my code I use a URLClassLoader to load the class Special and I then want to cast Special to Base. If I do this I get a ClassCastException because the classes are loaded from different classloaders. I can't have the URLClassLoader and the class that performs the cast extend a parent ClassLoader that knows about the Base class. What I want to be able to do is something like this:
    URLClassLoader loader = new URLClassLoader(codebase, null);
    Class baseClass = loader.loadClass(className);
    Base baseObj = (Base)baseClass.newInstance();
    I have seen some post that suggest I can achieve this using Reflection but I am not sure how to go about this. Any help would be appreciated.
    Thanks
    Jim.

    Thanks for your help so far but I still can't do the casting, consider this example:
    //Base.java
    package classTest;
    public interface Base
         public abstract void execute();
    //ConcBase.java
    package classTest;
    public class ConcBase implements Base
         public void execute()
              System.out.println("execute in ConcBase called");
    I compile these files and jar them into work.jar
    I now have my application:
    //Test.java
    import java.net.*;
    import java.io.*;
    import classTest.*;
    public class Test
    public static void main(String[] args)
              Test t = new Test();
              t.test();
         public void test()
              try
                   File file = new File("D:/Projects/classloadTest/work.jar");
                   URL[] codebase = {file.toURL()};
                   ClassLoader ccl = getClass().getClassLoader();
                   ccl.loadClass("classTest.Base");
                   URLClassLoader ucl = new URLClassLoader(codebase,ccl);
                   Class conClass = ucl.loadClass("classTest.ConcBase");
                   classTest.Base b = (classTest.Base)conClass.newInstance();
                   b.execute();
              catch(Exception t)
                   System.out.println("thowable caught");
                   t.printStackTrace(System.out);
    I compile this and run it with this command:
    java -classpath D:\Projects\classloadTest\work.jar;. Test
    This runs as I would expect, however I have set the parent class loader of my custom URLClassLoader to the one that does the cast, this means that Base and ConcBase are both being picked up by the application class loader as my custom class loader delegates to its parent. This is the current behaviour I have in my proper application and it is causing problems, I don't want the class that implements Base to delegate to any class on the main applications classpath. If I change the line:
    URLClassLoader ucl = new URLClassLoader(codebase,ccl);
    In Test.java to:
    URLClassLoader ucl = new URLClassLoader(codebase,null);
    I get a ClassCastException, this is because the class that does the cast (Test) loads Base from it's classpath and ConcBase is loaded from the URLClassLoader. After spending more time looking at this problem I don't think there is anyway to resolve but if anyone thinks there is please tell me.
    Many thanks
    Jim.

Maybe you are looking for