Picking classes in ATG

HI guys
while running our application in atg from where it will pick our classes and components in run time

ATG will look for classes under the folder mentioned as ATG-Class-Path: in modules MANIFEST file. Once you do the runassembler class files from these folder will be moved to your_ear\atglib folder, .jar, .class and *.properties files are valid here.
If your EAR is not standalone, components files (properties) is read from you modules /config folder under ATG location. You need to mention this as well in your MANIFEST file (ATG-Config-Path:).
If the EAR is standalone, then config files are read from your_ear\atg_bootstrap.war\WEB-INF\ATG-INF, please cross-check this
Cheers
R

Similar Messages

  • How to pick classes in atg

    Hi Guys
    How atg will pick classes for each componet
    I have deployed my ear file jboss but i did not find atglib folder inside ear
    Please tell me how atg will pick java files for each component

    I am not sure, How it's possible.
    Verify that same ear u are looking at is deployed in jboss.
    Even if ur own module doesn't have any java file.atglib will be created since there is always OOTB classes for mentioned modules.
    Regards,
    Nitin.

  • Writing a picking class

    I'm trying to write a picking class to click on a cube and only rotate it in the x direction. I'm new to java3d and can't figure out what I need to do to write my own picking class to do it. Any help would be greatful

    you've read the tutorial?
    http://developer.java.sun.com/developer/onlineTraining/java3d/j3d_tutorial_ch4.pdf
    I extended PickMouseBehavior and used PickCanvas, but I was doing something completely different, so you'll probably want to ignore that.
    I doubt this has been helpful
    J.

  • Pick in 3djava

    Hi guys I am working on an application in 3D
    i want to get the values x , y , z for mouse clicked
    i implemented a pick class
    package game_3d_31_03_08;
    import javax.vecmath.*;
    import javax.media.j3d.*;
    import com.sun.j3d.utils.picking.*;import com.sun.j3d.utils.picking.behaviors.PickMouseBehavior;
    public class Pick extends PickMouseBehavior
        public Pick(Canvas3D canvas, BranchGroup bg, Bounds bounds)
            super(canvas, bg, bounds);
            pickCanvas.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
        public void updateScene(int xpos, int ypos)
            pickCanvas.setShapeLocation(xpos, ypos);
            Point3d eyePos = pickCanvas.getStartPosition();
            PickResult pickresult = null;
            pickresult = pickCanvas.pickClosest();
            if(pickresult != null)
                PickIntersection pi = pickresult.getClosestIntersection(eyePos);
                Point3d intercept = pi.getPointCoordinatesVW();
                System.out.println(xpos+"   "+ypos);
    } below there is is the main class of the project
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import javax.swing.*;
    import java.awt.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.behaviors.vp.*;
    // import com.tornadolabs.j3dtree.*;    // for displaying the scene graph
    import java.awt.event.ActionListener;
    import java.awt.event.KeyListener;
    public class WrapCheckers3D extends JPanel
            // Holds the 3D canvas where the loaded image is displayed
      private static final int PWIDTH = java.awt.Toolkit.getDefaultToolkit().getScreenSize().width-150;   // size of panel
      private static final int PHEIGHT = 400;
      private static final int BOUNDSIZE = 1100;  // larger than world
      private static final Point3d USERPOSN = new Point3d(0,5,20);
        // initial user position
      private SimpleUniverse su;
      private BranchGroup sceneBG;
      private BoundingSphere bounds;   // for environment nodes
      private float xP = 1;
      private float yP = 5;
      private float zP = 1;
      private Timer timer;
      Menu myMenu;
      MyFrame myFrame;
    private boolean initMV;
      private boolean starting = MyFrame.checkStarting();
      public WrapCheckers3D()
      // A panel holding a 3D canvas: the usual way of linking Java 3D to Swing
        setLayout( new BorderLayout() );
        setOpaque( false );
        setPreferredSize( new Dimension(PWIDTH, PHEIGHT));
        GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
        Canvas3D canvas3D = new Canvas3D(config);
        add("Center", canvas3D);
        canvas3D.setFocusable(true);     // give focus to the canvas
        canvas3D.requestFocus();
        su = new SimpleUniverse(canvas3D);
        // j3dTree = new Java3dTree();   // create a display tree for the SG
        createSceneGraph(canvas3D);
        initUserPosition();        // set user's viewpoint
        orbitControls(canvas3D);   // controls for moving the viewpoint
        su.addBranchGraph( sceneBG );
      } // end of WrapCheckers3D()
      private void createSceneGraph(Canvas3D canvas3D)
      // initilise the scene
        sceneBG = new BranchGroup();
      // used for picking debugging
        sceneBG.setUserData("the sceneBG node");
        sceneBG.setCapability(BranchGroup.ENABLE_PICK_REPORTING);   
        bounds = new BoundingSphere(new Point3d(0,0,0), BOUNDSIZE);  
        lightScene();         // add the lights
        addBackground();      // add the sky
        sceneBG.addChild( new Floor().getBG() );  // add the floor
      //  sceneBG.addChild(new PhyBox().getBoxBG());
        floatingSphere(canvas3D);
      } // end of createSceneGraph()
      private void lightScene()
      /* One ambient light, 2 directional lights */
        Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
        // Set up the ambient light
        AmbientLight ambientLightNode = new AmbientLight(white);
        ambientLightNode.setInfluencingBounds(bounds);
        sceneBG.addChild(ambientLightNode);
        // Set up the directional lights
        Vector3f light1Direction  = new Vector3f(-1.0f, -1.0f, -1.0f);
           // left, down, backwards
        Vector3f light2Direction  = new Vector3f(1.0f, -1.0f, 1.0f);
           // right, down, forwards
        DirectionalLight light1 =
                new DirectionalLight(white, light1Direction);
        light1.setInfluencingBounds(bounds);
        sceneBG.addChild(light1);
        DirectionalLight light2 =
            new DirectionalLight(white, light2Direction);
        light2.setInfluencingBounds(bounds);
        sceneBG.addChild(light2);
      }  // end of lightScene()
      private void addBackground()
      // A blue sky
      { Background back = new Background();
        back.setApplicationBounds( bounds );
        back.setColor(0.17f, 0.65f, 0.92f);    // sky colour
        sceneBG.addChild( back );
      }  // end of addBackground()
      private void initUserPosition()
      // Set the user's initial viewpoint using lookAt()
        ViewingPlatform vp = su.getViewingPlatform();
        TransformGroup steerTG = vp.getViewPlatformTransform();
        Transform3D t3d = new Transform3D();
        steerTG.getTransform(t3d);
        // args are: viewer posn, where looking, up direction
        t3d.lookAt( USERPOSN, new Point3d(0,0,0), new Vector3d(0,1,0));
        t3d.invert();
        steerTG.setTransform(t3d);
      }  // end of initUserPosition()
      // ---------------------- floating sphere -----------------
      private void floatingSphere(Canvas3D canvas3D)
      // A shiny blue sphere located at (0,4,0)
        // Create the blue appearance node
        Color3f black = new Color3f(0.0f, 0.0f, 0.0f);
        Color3f blue = new Color3f(0.3f, 0.3f, 0.8f);
        Color3f specular = new Color3f(0.9f, 0.9f, 0.9f);
        Material blueMat= new Material(blue, black, blue, specular, 25.0f);
           // sets ambient, emissive, diffuse, specular, shininess
        blueMat.setLightingEnable(true);
        Appearance blueApp = new Appearance();
        blueApp.setMaterial(blueMat);
        // position the sphere
        Transform3D t3d = new Transform3D();
        t3d.set( new Vector3f(xP,zP,yP));
        TransformGroup tg = new TransformGroup(t3d);
        tg.addChild(new Sphere(0.50f, blueApp));   // set its radius and appearance
        sceneBG.addChild(tg);
         Pick shootBeh =        new Pick(canvas3D, sceneBG, bounds );
        sceneBG.addChild(shootBeh);
      }  // end of floatingSphere()
      private void makeBox(float width, float height, float depth)
      /* A transparent box resting on the floor
        float xDim = width/2.0f;
        float yDim = height/2.0f;
        float zDim = depth/2.0f;
        Appearance app = new Appearance();
        // switch off face culling
        PolygonAttributes pa = new PolygonAttributes();
        pa.setCullFace(PolygonAttributes.CULL_NONE);
        app.setPolygonAttributes(pa);
        // semi-transparent appearance
        TransparencyAttributes ta = new TransparencyAttributes();
        ta.setTransparencyMode( TransparencyAttributes.BLENDED );
        ta.setTransparency(0.7f);     // 1.0f is totally transparent
        app.setTransparencyAttributes(ta);
        // position the box: centered, resting on the XZ plane
        Transform3D t3d = new Transform3D();
        t3d.set( new Vector3f(0, yDim+0.01f,0)); 
          /* the box is a bit above the floor, so it doesn't visual
             interact with the floor. */
        TransformGroup boxTG = new TransformGroup(t3d);
        boxTG.addChild( new com.sun.j3d.utils.geometry.Box(xDim, yDim, zDim, app));  
                 // set the box's dimensions and appearance
        Shape3D edgesShape =  makeBoxEdges(xDim, height, zDim);  // box edges
        // collect the box and edges together under a single BranchGroup
      }  // end of makeBox()
      private Shape3D makeBoxEdges(float x, float y, float z)
      /* Only 8 edges are needed, since the four edges
         of the box resting on the floor are not highlighted.
         8 edges are 8 lines, requiring 16 points in a LineArray.
        LineArray edges = new LineArray(16, LineArray.COORDINATES |
                                            LineArray.COLOR_3);
        Point3f pts[] = new Point3f[16];
        // front edges
        pts[0] = new Point3f(-x, 0, z);   // edge 1 (left)
        pts[1] = new Point3f(-x, y, z);
        pts[2] = new Point3f(-x, y, z);   // edge 2 (top)
        pts[3] = new Point3f( x, y, z);
        pts[4] = new Point3f( x, y, z);   // edge 3 (right)
        pts[5] = new Point3f( x, 0, z);
        // back edges
        pts[6] = new Point3f(-x, 0,-z);   // edge 4 (left)
        pts[7] = new Point3f(-x, y,-z);
        pts[8] = new Point3f(-x, y,-z);   // edge 5 (top)
        pts[9] = new Point3f( x, y,-z);
        pts[10] = new Point3f( x, y,-z);   // edge 6 (right)
        pts[11] = new Point3f( x, 0,-z);
        // top edges, running front to back
        pts[12] = new Point3f(-x, y, z);   // edge 7 (left)
        pts[13] = new Point3f(-x, y,-z);
        pts[14] = new Point3f( x, y, z);   // edge 8 (right)
        pts[15] = new Point3f( x, y,-z);
        edges.setCoordinates(0, pts);
        // set the edges colour to yellow
        for(int i = 0; i < 16; i++)
          edges.setColor(i, new Color3f(1, 1, 0));
        Shape3D edgesShape = new Shape3D(edges);
        // make the edges (lines) thicker
        Appearance app = new Appearance();
        LineAttributes la = new LineAttributes();
        la.setLineWidth(4);
        app.setLineAttributes(la);
        edgesShape.setAppearance(app);
        return edgesShape;
      }  // end of makeBoxEdges()
    private void orbitControls(Canvas3D c)
      /* OrbitBehaviour allows the user to rotate around the scene, and to
         zoom in and out.  */
        OrbitBehavior orbit =
              new OrbitBehavior(c, OrbitBehavior.REVERSE_ALL);
        orbit.setSchedulingBounds(bounds);
        ViewingPlatform vp = su.getViewingPlatform();
        vp.setViewPlatformBehavior(orbit);        
      }  // end of orbitControls()
    } but it doesn t work
    why ?
    i do not understand
    moreover any useful example the one that i found are helpless

    Your class is referencing missing classes, so it cannot be compiled for testing.

  • Placing class files for servlets in j2ee

    i am new to java servlets. i recently installed j2ee v1.4 sdk. i have gotten my first file that imports packages to compile. i now need a path to place .class files and .jar files. everyone says web-inf/classes and web/lib. due to the directory structure paths are so long. can someone give me the right path in j2ee v1.4 (C:\Sun\Appserver) to place these .class files and .jar files. if there is anything else i need to do before i can run a servlet, please inform me. i just want to run this silly helloWorld servlet. any suggestions would be greatly appreciated.

    Hi rickjamesb_tch,
    What you have heard is correct - you need to place your class files in the WEB-INF's classes directory (or jar files in the lib directory).
    To give you a little background, J2EE servers use custom ClassLoaders (a set of Java Classes that actually load the class into the JVM). The top-level class loaders has classes that are accessible through the JVM (and are usually picked up from the classpath).
    The other class loaders load classes that are only accessible within a particular web (or enterprise) application. These classloaders pick classes from the WEB-INF directory. These classloaders also have the capability of dynamically re-loading classes (eg when you change your .jsp file). Finally, the classes loaded are only visible within the web-application so that they do not pollute the global namespace.
    Hope that helps.
    Of course, the J2EE specification goes into a lot of depth about class loading, but unless you are designing an application server, you need not understand those details and specifics - just understanding where to place your classes is enough.

  • Issue in ATG component broswer in Eclipse

    I sucessfully installed the eclipse plugin. but there are two issues i encountered.
    1) I created a new module named "DXH" in ATG root direcotry. after I create the properties file in the config diretory. I can not find the item in ATG componement broswer -- the folder is ok, but the component can not be found.
    2) when I right click in ATG component broser and choose New Component. It told "invaild class name" even I input the sample class name "atg.nucleus.InitalService".
    who can help me? many thanks in advance.

    Hi,
    I also get this error on Production frequently and this increased log file size to huge. Is there any permanent solution to this error? Please let me know ASAP.
    Thanks

  • Can't load class: _dasadmin_3._index - Unable to Start Dyn Admin

    16:22:03,248 ERROR [STDERR] java.lang.UnsupportedClassVersionError: Bad version number in .class file
    16:22:03,248 ERROR [STDERR]      at java.lang.ClassLoader.defineClass1(Native Method)
    16:22:03,248 ERROR [STDERR]      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.ReusableClassLoader.findClass(ReusableClassLoader.java:274)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.ReusableClassLoader.findClass(ReusableClassLoader.java:231)
    16:22:03,248 ERROR [STDERR]      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.ReusableClassLoader.loadClass(ReusableClassLoader.java:526)
    16:22:03,248 ERROR [STDERR]      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.PageProcessor.loadClass(PageProcessor.java:2678)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.PageProcessor.loadClass(PageProcessor.java:2579)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.PageProcessor.compilePageClass(PageProcessor.java:2453)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.PageProcessor.getPageInfo(PageProcessor.java:1764)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.jsp12.Jsp12PageProcessor.getPageInfo(Jsp12PageProcessor.java:302)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.minimal.MinimalServletContainer.compileServlet(MinimalServletContainer.java:131)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pagecompile.PageCompileServlet.service(PageCompileServlet.java:280)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.DynamoServlet.service(DynamoServlet.java:123)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:119)
    16:22:03,248 ERROR [STDERR]      at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:565)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:226)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:185)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:206)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.FileFinderPipelineServlet.service(FileFinderPipelineServlet.java:707)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:202)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.ServletPathPipelineServlet.service(ServletPathPipelineServlet.java:186)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.security.ExpiredPasswordAdminServlet.service(ExpiredPasswordAdminServlet.java:290)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.BasicAuthenticationPipelineServlet.service(BasicAuthenticationPipelineServlet.java:491)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:227)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1100)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:782)
    16:22:03,248 ERROR [STDERR]      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:231)
    16:22:03,264 ERROR [STDERR]      at atg.nucleus.servlet.NucleusProxyServlet.service(NucleusProxyServlet.java:215)
    16:22:03,264 ERROR [STDERR]      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    16:22:03,264 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    16:22:03,264 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
    16:22:03,264 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    16:22:03,264 ERROR [STDERR]      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    16:22:03,264 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
    16:22:03,264 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    16:22:03,264 ERROR [STDERR]      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
    16:22:03,264 ERROR [STDERR]      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    16:22:03,264 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:595)
    16:22:03,295 INFO [STDOUT] /atg/dynamo/servlet/pagecompile/PageCompileServlet
    16:22:03,295 INFO [STDOUT]      
    16:22:03,295 INFO [STDOUT] Error compiling page: /index.jhtml : can't load class: dasadmin3._index
    16:22:03,295 INFO [STDOUT]      
    16:22:03,295 INFO [STDOUT] atg.servlet.pagecompile.PageCompileException: can't load class: dasadmin3._index
         at atg.servlet.pagecompile.PageProcessor.compilePageClass(PageProcessor.java:2456)
         at atg.servlet.pagecompile.PageProcessor.getPageInfo(PageProcessor.java:1764)
         at atg.servlet.pagecompile.jsp12.Jsp12PageProcessor.getPageInfo(Jsp12PageProcessor.java:302)
         at atg.servlet.minimal.MinimalServletContainer.compileServlet(MinimalServletContainer.java:131)
         at atg.servlet.pagecompile.PageCompileServlet.service(PageCompileServlet.java:280)
         at atg.servlet.DynamoServlet.service(DynamoServlet.java:123)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:119)
         at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:565)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:226)
    ....stack trace CROPPED after 10 lines.
    Caused by :java.lang.ClassNotFoundException: Can't read class file: dasadmin3\_index.class
         at atg.servlet.pagecompile.ReusableClassLoader.findClass(ReusableClassLoader.java:309)
         at atg.servlet.pagecompile.ReusableClassLoader.findClass(ReusableClassLoader.java:231)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at atg.servlet.pagecompile.ReusableClassLoader.loadClass(ReusableClassLoader.java:526)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at atg.servlet.pagecompile.PageProcessor.loadClass(PageProcessor.java:2678)
         at atg.servlet.pagecompile.PageProcessor.loadClass(PageProcessor.java:2579)
         at atg.servlet.pagecompile.PageProcessor.compilePageClass(PageProcessor.java:2453)
         at atg.servlet.pagecompile.PageProcessor.getPageInfo(PageProcessor.java:1764)
    ....stack trace CROPPED after 10 lines.

    Can you verify if you are using correct jdk supported version?
    Try deleting C:\ATG\ATG9.1\home\pagebuild directory and restart the server.
    Peace
    Shaik

  • How to use JNDI lookup

    Hi ,
    I am creating a POC for my project.Its using ATG and spring frameworks using RAD 6.first I have created ATG sample project in that same EAR file i created sample Spring project.Both are running in the same EAR.
    I want to use spring classes from ATG components to use those methods.that is i should pass parameters to spring project methods and i should get the return value after executing those methods.
    I heard that using JNDI look up I can get spring project class objects using that I can invoke spring project methods.
    My requirement is two projects will be running in the same EAR.But one project will not be having information about other projects.both are independent from other.Using JNDI look up i need to invoke Spring project methods.
    Please anyone help me how to do this.
    I used java:comp/env/com/dao/EmpDAO to get instance of my class EmpDAO.But i am getting naming exception.Can anyone help me how to do this
    Thanks in advance.

    If Tomcat is your servlet/JSP engine, they have a nice bit about how to do it:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
    MOD

  • How can I deploy only one package out of a big project?

    Does any one know how can I only deploy one package out of a big project?
    We have a project which includes about 12 differenct packages. Is there a way in Jdeveloper for me to create a deploy profile to only deploy one package to a *.jar file?
    Do I have to re-create a new project ( that's what I am doing currently) simply for deployment purpose?
    By the way, click and pick class from more than 100 classes is too much of work. In addition, you don't really know exactly which class you are picking if two classes (in different packages) have the same name.
    Thanks a lot.

    Rename your LCA file extention into .ZIP
    Open the ZIP file in any of the compressing utility (e.g. WinZip, WinRar etc.)
    Extract the desired process and deploy it manually to your server.
    Nith

  • Weblogic 8.1SP2 throws noclassdeffounderror for ActionServlet

    Hi All,
              My application(struts based) works fine in weblogic7 and the same is deployed sucesfully in weblogic8.1 SP2 but on starting the weblogic server the following error is thrown
              ******************error starts here*******************
              <Jul 9, 2004 3:45:43 PM GMT+05:30> <Error> <HTTP> <BEA-101250> <[ServletContext(id=18734604,name=gsrs_admin,context-path
              =/gsrs_admin)]: Servlet class com.jpmorgan.grc.gsr.admin.AdminToolActionServlet for servlet admintool could not be loade
              d because a class on which it depends was not found in the classpath C:\bea8.2\weblogic81\server\bin\myserver\.wlnotdele
              te\gsrs\gsrs_admin.war;C:\bea8.2\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_gsrs_gsrs_admin\jarfiles
              \WEB-INF\lib\jstl31232.jar;C:\bea8.2\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_gsrs_gsrs_admin\jarf
              iles\WEB-INF\lib\standard31233.jar;C:\bea8.2\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_gsrs_gsrs_ad
              min\jarfiles\WEB-INF\lib\struts31234.jar.
              java.lang.NoClassDefFoundError: org/apache/struts/action/ActionServlet.>
              <Jul 9, 2004 3:45:43 PM GMT+05:30> <Error> <HTTP> <BEA-101216> <Servlet: "admintool" failed to preload on startup in Web
              application: "gsrs_admin".
              javax.servlet.ServletException: [HTTP:101250][ServletContext(id=18734604,name=gsrs_admin,context-path=/gsrs_admin)]: Ser
              vlet class com.jpmorgan.grc.gsr.admin.AdminToolActionServlet for servlet admintool could not be loaded because a class o
              n which it depends was not found in the classpath C:\bea8.2\weblogic81\server\bin\myserver\.wlnotdelete\gsrs\gsrs_admin.
              war;C:\bea8.2\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_gsrs_gsrs_admin\jarfiles\WEB-INF\lib\jstl31
              232.jar;C:\bea8.2\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_gsrs_gsrs_admin\jarfiles\WEB-INF\lib\st
              andard31233.jar;C:\bea8.2\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_gsrs_gsrs_admin\jarfiles\WEB-IN
              F\lib\struts31234.jar.
              java.lang.NoClassDefFoundError: org/apache/struts/action/ActionServlet.
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:805)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3252)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3209)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3195)
              at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3174)
              at weblogic.servlet.internal.HttpServer.preloadResources(HttpServer.java:688)
              at weblogic.servlet.internal.WebService.preloadResources(WebService.java:483)
              at weblogic.servlet.internal.ServletInitService.resume(ServletInitService.java:30)
              at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359)
              at weblogic.Server.main(Server.java:32)
              >
              ***************error ends here*********************
              any help is appreciated
              rgrds and thx
              gnana

    Hi All,
              <br>
              <br>
              My application was working fine on weblogic7. Recently i have installed weblogic8.1 SP4. We are using managed weblogic servers. I got noclassdeffounderror for a class on the deployment of the application or on the start one of the servers.
              <br>
              <br>
              <b>Strange thing is that the class it is complaining is there in the jar and the jar is there in the classpath which it displays along with the error.</b>
              <br>
              <br>
              I dont know why its not picking up that class. I verifed the classpath by setting it on command line and then tried to use that particular class and it was working.
              <br>
              <br>
              I also tried to put the particular class in web-inf/classes directory and to my surprise it is also not working. still it is giving the same error. Then I tried to put the jar in the web-inf/lib but even in this case also i got the same error.
              <br>
              <br>
              Is there something wrong in the setup/configuration of the server?? or is it anyway related to the environment(like xp,2000,environment variables etc) where the server is installed?? or is weblogic8.1 has some problem in picking classes form classpath or web-inf/classes/ for some particular cases??
              <br>
              <br>
              Anybody has any idea why weblogic8.1 is behaving this way??
              <br>

  • Confuse..where are the java files(bean) related to JSP in Portal??

    Hi..
    Can anybody plz help me..
    I already deploy the new JPDK Jan 2003.
    It's works fine in the Portal.
    Just, i don't understand, where they put the java files(bean) related?
    For example..the Lottery (lotto.jsp)
    it called this bean..
    "<jsp:usebean id = "picker" class = "oracle.portal.sample.devguide.lottery.LottoPicker" scope = "page" />"
    but, when i searched in the Server, i cannot find this LottoPicker.java.....
    Pls help me, it is urgent..

    Hi,
    All the bean files are in samplev2.jar at %OC4J_HOME%/j2ee/home/applications/jpdk/jpdk/WEB-INF/lib. If you extract the zip you will see all the class files for samples in JPDK.
    btw, as per J2EE container specification, the default location for any java class file (i.e. '.class' files) is WEB-INF/lib (packaged as a jar) or inside WEB-INF/classes as individial class files (with their complete package structure)
    Regards,
    Abhinav

  • JVM not allowing a jDialog to pop up?

    I wrote a date picker class that extends JDialog using Eclipse: VE. everything works fine in eclipse when I run the code, but when I export the project to a .jar file the date picker will not pop up. I assume this is a safety feature of the JVM not popping up an extension of JDialog. Has anyone heard of this happening or know how to get around it.

    well, it was a problem with how it accessed images... I figured it out.

  • Multiple File Links

    I understand how to make links to files through various means--text, buttons, etc.
    But how might I manage a growing catalog of files to be downloaded. For example, each week of a semester a teacher has a new handout for the class. Each week the teacher adds that handout and some study guides to the web site.
    After a while, there would be a lot of links to a lot of files. Now I suppose you could just have a new page for each set of files and branch off that way. But that seems kind of hard or too much work. Is there someway to create like a drop down menu to select categories and then files. For example and using a teacher again, a drop down box to pick classes the teacher teaches, you select the class then you get the files. And/or you could have another drop down menu for selecting which year's classes and study guides.
    So basically, any good solutions for multiple/many file management?
    Also along those lines, I'm guessing with so many files it would be best to have them on a central server with folders that never change or are moved for the sake of iWeb never losing the correct file link? Because I'm also guessing you can't upload linked files to your Mobile Me account so that they are stored there, rather than locally on your computer?
    Thanks

    For those files you can drag them onto the iWeb page and resize. Then get converted to a png file that way but can be downloaded for printing as an image file. If the pdf is too large for one page and you want scrolling add it like in this demo page: Scrolling Text Box. With that method all you would need to do is replace the linked to file with the one you want to use. You can place the file any where on the server and link to it. Replacing it with a new file but with the same name will automatically update the website.
    When you drag the pdf onto the web page as in the first suggestion iWeb will automatically upload it along with the rest of the site's files. No worry about where to keep it on the HD.
    Are you using MobileMe as the hosting server?

  • Password Rules for BCC

    Hi All,
    I need to setup password rules for BCC login, create users in BCC, ACL for different users, prompting to change password automatically in 2 months.
    Please some one throw light on this configuration.
    Regards,
    DKAP
    Edited by: DKAP on Feb 19, 2013 6:30 PM

    For setting up password rules for BCC login -
    In your Merchandising module there is a component - config\atg\userprofiling\passwordchecker\InternalPasswordRuleChecker , enable it and it could be configured to add OOB rules and your own custom rules
    # Enable/Disable the strong password rule checking functionality
    enabled=true
    rules=/atg/userprofiling/passwordchecker/PasswordMinLengthRule,\
         /atg/userprofiling/passwordchecker/PasswordMustIncludeNumberRule,\
         /atg/userprofiling/passwordchecker/PasswordNotInPreviousNRule,\
    /atg/userprofiling/passwordchecker/MyProjectPasswordRule
    Create users in BCC -
    This is easily done via BCC under InternalUsers tab, where the internal users can be created or edited
    ACL for different users -
    you can always do it by assigning different roles to different internal users depending upon what screen access you want to give to internal users. New roles can also be created
    Prompting to change password automatically in 2 months -
    There is a component (\config\atg\userprofiling\InternalProfileFormHandler) that handles the account related functionalities such as login, change password etc for internal users, so override this component as follow,
    $class=yourPackage.InternalProfileFormHandler (extending the ATG ProfileFormHandler class)
    profileTools=/atg/userprofiling/InternalProfileTools
    Now there is a property in userProfile named lastPasswordUpdate , so you can override the handleLogin method in your class and check for the lastPasswordUpdate property, if password is more than 2 months old then you can redirect internal user to the change password jsp.

  • Advantage of model relations?

    Hi,
    we are using Java Bean models for our web dynpro project. Therefore we generated a model of type "Java Bean model". In the import dialog of the model generation we detected the possibility to define model relations according to the relations used in our java beans. We ended up with a huge model with several model classes. Everything looks fine but I'm seriously asking myself what the big advantage of this approach is. Asuming that the Java bean model will change sometimes I have to reimport the model and have to define all these relations by hand again! So I don't really see an advantage but I guess that I have lost sight of advantages.
    I really would appreciate any replies showing me the advantages. Maybe there are also helpful documents.
    Regards,
    Marc

    Hi
    JavaBean model allows us to introduce an additional layer of abstraction that has some great benefits like hiding the underlying service, improves availability and performance
    Advantages :
    1 . Its a Structured and Standard way of coding.
    2 . Its Easy for coding and maintaining and enhancements.
    As heavy calculations are involved with your application from a long time view its better you go for using seperate bean for this case
    1 . /message/1308247#1308247 [original link is broken]
    <b>Compact and Easy</b>JavaBeans components are simple to create and easy to use. This is an important goal of the JavaBeans architecture. It doesn't take very much to write a simple Bean, and such a Bean is lightweight&#63719;it doesn't have to carry around a lot of inherited baggage just to support the Beans environment. If a Bean does not require the advanced features of the architecture, it doesn't get them, nor does it get the code that goes with them. This is an important concept. The JavaBeans architecture scales upward in complexity, not downward like other component models. This means it really is easy to create a simple Bean. (The previous example shows just how simple a Bean can be.)
    <b>Portable</b>
    Since JavaBeans components are built purely in Java, they are fully portable to any platform that supports the Java run-time environment. All platform specifics, as well as support for JavaBeans, are implemented by the Java virtual machine. You can be sure that when you develop a component using JavaBeans it will be usable on all of the platforms that support Java (version 1.1 and beyond). These range from workstation applications and web browsers to servers, and even to devices such as PDAs and set-top boxes.
    <b>Leverages the Strengths of the Java Platform</b>
    JavaBeans uses the existing Java class discovery mechanism. This means that there isn't some new complicated mechanism for registering components with the run-time system.
    As shown in the earlier code example, Beans are lightweight components that are easy to understand. Building a Bean doesn't require the use of complex extensions to the environment. Many of the Java supporting classes are Beans, such as the windowing components found in java.awt.
    The Java class libraries provide a rich set of default behaviors for components. Use of Java Object Serialization is one example&#63719;a component can support the persistence model by implementing the java.io.Serializable interface. By conforming to a simple set of design patterns (discussed later in this chapter), you can expose properties without doing anything more than coding them in a particular style.
    <b>Flexible Build-Time Component Editors</b>
    Developers are free to create their own custom property sheets and editors for use with their components if the defaults aren't appropriate for a particular component. It's possible to create elaborate property editors for changing the value of specific properties, as well as create sophisticated property sheets to house those editors.
    Imagine that you have created a Sound class that is capable of playing various sound format files. You could create a custom property editor for this class that listed all of the known system sounds in a list. If you have created a specialized color type called PrimaryColor, you could create a color picker class to be used as the property editor for PrimaryColor that presented only primary colors as choices.
    The JavaBeans architecture also allows you to associate a custom editor with your component. If the task of setting the property values and behaviors of your component is complicated, it may be useful to create a component wizard that guides the user through the steps. The size and complexity of your component editor is entirely up to you.
    Regards
    Abhijith YS

Maybe you are looking for

  • BUG FOUND!! in Airport Disk programming

    I'm betting this is having a bigger issue then most poeple realize as it effects reconnecting to the Airport disk. Ok after lots of testing I've figured out a major bug in the Airport Disk Programming for Security. This has only been verified with th

  • Laser Jet 3050 not printing receipt

    Sending a fax, does not print a receipt so I know it went through. Checked the manual but no obvious answer. Went through all the menu items but no luck. Anyone have an idea?

  • HT2311 Can't update iTunes 10.6

    When I try to update iTunes I'm getting error: iTunes can't be installed in this disk. A new version already installed. Actual version is corrupted (doesn't run) and file info shows 10.6.1

  • Firefox protocol not working on new version of firefox

    Hello, I had working a firefor protocol named "teamspeak" until last actualization of the system. I am on UBUNTU 11.04 64-bits platform and after upgrade to this from 9.04 (and over the intermediate 9.10, 10.04 and 10.10) the protocol stop to working

  • Obtaining References of Controls Inside of Tab Controls

    Does anyone have a way to detemine the id/index number of a control on a tabbed front panel? If there is no front panel I can use the menus: Edit, Set tabbing order. Then I can use this index in the block diagram of a sub-vi to update the control on