_jsp.class

Hi Guys,
I download helpdesk from internet and all coding in jsp. firstly they create the jar file. when i open jar files inside many files and every files have anyname_jsp.class
This is my first time i open the jsp files because i dont know any thing so please help me how i solve my problem

i download helpdesk from internet side I have no idea what this is or how to use it.
but this is
free version. Inside all package in jarSo?
file but when
extract Why did you unpack the jar files?
i saw many files and every files with any
name and extension is _jar.class. Do you mean _jsp.class?
So what?
JSP files are compiled into .java files, which are in turn compiled into Java classes. If you want to learn about JSP, google for jsp tutorial, or get a book.
from one file i want to enable the save button and as
well as change the colors. but when i open file from
notepad so all code is not showing well. tell me how
i run these file or what can i do?Learn how JSPs work.

Similar Messages

  • Understanding class unloading

    Hi All,
    We are using weblogic 7 in our production server and we see lots of _jsp unloadings happening in our servers. This means that, JVM internally unloads these classes so that it can have some room to load some other class.
    In our design we use lot of class level variables. Now here are my questions.
    1. If JVM has to load the _jsp class again, it has to read 100k of data back (provided the class file is 100k in size).
    2. If we use lot of class level variables (static variables), then it will be stored in some part of the heap. If they are primitive types they might get stored in the method area. But if they are objects like hashmaps they will be in some area in the heap and a reference will be there in the method area. If the class is referencing these objects, they will not be GCed.
    3. So probably because of this, it is trying to unload the jsp classes?. Is my assumption on point number 2 correct?
    4. If it is correct, then probably we may need to reduce the static class variables used in the project.
    ~Rajesh.B

    Hi All,
    We are using weblogic 7 in our production server and
    d we see lots of _jsp unloadings happening in our
    servers. This means that, JVM internally unloads these
    classes so that it can have some room to load some
    other class.
    In our design we use lot of class level variables.
    . Now here are my questions.
    1. If JVM has to load the _jsp class again, it has to
    read 100k of data back (provided the class file is
    100k in size).
    Loading a class, requires reading the class.
    2. If we use lot of class level variables (static
    variables), then it will be stored in some part of the
    heap. If they are primitive types they might get
    stored in the method area. But if they are objects
    like hashmaps they will be in some area in the heap
    and a reference will be there in the method area. If
    the class is referencing these objects, they will not
    be GCed.
    If an instance of an object does not have a reference then it is collected. If the java.lang.Class instance is collected then the statics will also be collected.
    3. So probably because of this, it is trying to unload
    the jsp classes?. Is my assumption on point number 2
    correct?
    Huh? Classes are collected when the class loader is collected. It doesn't have anything to do with statics.
    4. If it is correct, then probably we may need to
    reduce the static class variables used in the
    project.
    No, it isn't correct.

  • JSP compiled into servlet

    Whenver u compile a JSP page it is internally converted into servlet.Where will this servlet be stored and by what name?

    <tomcat_home>\work\Catalina\localhost\<Context Name>\org\apache\jsp
    You can find below files in above directory of your PC.
    <jsp file name>_jsp.java
    <jsp file name>_jsp.class
    Example:
    index_jsp.java
    index_jsp.class

  • Error while defining class: com.crystaldecisions.data.xml.CRDB_XMLImpl This error indicates that the class: OCA.OCAdbdll.DbDLLOperations could not be located while defining the class: com.crystaldecisions.data.xml.CR...

    Post Author: lkamesam
    CA Forum: Integrated Solutions
    Hi,
            I am running Crystal Reports version 10 from IBM Rational 6.0.1  build 20050725_1800 XML data source. When I try to run the report under WAS 6.0.1 I get the following error:
    Does any body have any clue how to resolve my problem? Thanks
    Error 500: Error while defining class: com.crystaldecisions.data.xml.CRDB_XMLImpl This error indicates that the class: OCA.OCAdbdll.DbDLLOperations could not be located while defining the class: com.crystaldecisions.data.xml.CRDB_XMLImpl This is often caused by having the class at a higher point in the classloader hierarchy Dumping the current context classloader hierarchy: ==> indicates defining classloader *** indicates classloader where the missing class could have been found ==>&#91;0&#93; com.ibm.ws.classloader.CompoundClassLoader@163dd786 Local ClassPath: C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\classes;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\bobj_platform_jsf.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cecore.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\celib.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\ceplugins.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cereports.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cesession.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\clientlogic.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\Concurrent.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CorbaIDL.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CRDBXMLExternal.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CRDBXMLServer.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalCharting.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalCommon.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalContentModels.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalExporters.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalExportingBase.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalFormulas.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalQueryEngine.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalReportEngine.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalReportingCommon.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\ebus405.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\icu4j.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\jrcerom.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\jsf_common.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\keycodeDecoder.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\log4j.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\MetafileRenderer.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rasapp.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rascore.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rpoifs.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\serialization.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\URIUtil.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\webreporting-jsf.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\webreporting.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\xercesImpl.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\xmlParserAPIs.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent; Delegation Mode: PARENT_FIRST &#91;1&#93; com.ibm.ws.classloader.JarClassLoader@338761606 Local Classpath: Delegation mode: PARENT_FIRST &#91;2&#93; com.ibm.ws.classloader.ProtectionClassLoader@38e75786 &#91;3&#93; com.ibm.ws.bootstrap.ExtClassLoader@7e475784 &#91;4&#93; sun.misc.Launcher$AppClassLoader@7e5a5784 &#91;5&#93; sun.misc.Launcher$ExtClassLoader@7e565784 -Original exception- java.lang.NoClassDefFoundError: OCA/OCAdbdll/DbDLLOperations at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at com.crystaldecisions.reports.queryengine.driver.i.<init>(Unknown Source) at com.crystaldecisions.reports.queryengine.driver.i.case(Unknown Source) at com.crystaldecisions.reports.queryengine.av.ak(Unknown Source) at com.crystaldecisions.reports.queryengine.av.else(Unknown Source) at com.crystaldecisions.reports.queryengine.av.byte(Unknown Source) at com.crystaldecisions.reports.queryengine.av.do(Unknown Source) at com.crystaldecisions.reports.queryengine.as.new(Unknown Source) at com.crystaldecisions.reports.queryengine.at.long(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source) at com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source) at com.crystaldecisions.reports.common.ab.a(Unknown Source) at com.crystaldecisions.reports.common.ab.if(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source) at com.crystaldecisions.report.web.a.a.K(Unknown Source) at com.crystaldecisions.report.web.event.aa.a(Unknown Source) at com.crystaldecisions.report.web.event.aa.a(Unknown Source) at com.crystaldecisions.report.web.event.bx.a(Unknown Source) at com.crystaldecisions.report.web.event.b1.broadcast(Unknown Source) at com.crystaldecisions.report.web.event.as.a(Unknown Source) at com.crystaldecisions.report.web.WorkflowController.if(Unknown Source) at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source) at com.crystaldecisions.report.web.ServerControl.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source) at com.ibm._jsp._sample._jspx_meth_crviewer_viewer_0(_sample.java:135) at com.ibm._jsp._sample._jspService(_sample.java:77) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) at

    For those who would have the same problem, here is how I could eventually fix it.
    Since the Flex Test Drive is sometimes out of sync with flash builder 4, I recreated a project using other help pages on Adobe site :
    Entry point :
    http://help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08- 7ffd.html
    As suggested, I used the New Project wizard to create a new project, with :
    Application server type : J2EE
    Check the radio button "Use remote object access service : BlazeDS"
    Then, as indicated in following pages (section "Accessing BlazeDS")... :
    file:///C:/Mes%20documents%20C/Commun/Developpement/Documentation/HT-Tracks/AccessingData/ help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08-7ffe.ht ml#WSbde04e3d3e6474c4-19a3f0e0122be55e1b7-8000
    ...I selected the "Data / Connect to Data/Services..." menu option, which started the Data/service connection wizard.
    There, I selected a BlazeDS (and not Web Services) service type, and everything went fine.
    Suggestion to adobe staff : maybe it would be useful to update the Flex Test Drive to reflect Flash Builder 4 ?
    Very nice product anyway, so far, congratulations...
    Rgds
    Marc.

  • JSTL class not found in EAR

    Hi,
    I have an EAR file that works fine in jboss 4.2.3 but i'm experiencing the following when trying to access the web app in Weblogic 10.3.2 (also on 10.0):
    Caused by: org.apache.tiles.util.TilesIOException: ServletException including path '/jsp/layouts/ModulesGeneralLayout.jsp'.
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.wrapServletException(ServletTilesRequestContext.java:298)
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:200)
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:179)
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.buildView(JspTilesTwoViewHandlerImpl.java:450)
         at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.buildTilesViewLikeContainer(JspTilesTwoViewHandlerImpl.java:354)
         ... 37 more
    Caused by: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
         at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:108)
         at jsp_servlet._jsp._layouts.__modulesgenerallayout._jspService(__modulesgenerallayout.java:146)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:198)
         ... 40 more
    Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.Config
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
         ... 52 more
    EAR contains a web application that uses myfaces (1.2) and tiles (2.0).
    Tried to use with jstl 1.2 / jsf 1.2 deployed as shared library and to reference it from EAR/web-app but
    getting the same exception.
    When trying to add the jstl jar manually to the classpath I'm getting a ClassCastException : java.lang.String
    originating from the jsp file.
    Any ideas ??

    Tried adding the following to weblogic-application.xml
         <library-ref>
              <library-name>jstl</library-name>
              <specification-version>1.2</specification-version>
              <exact-match>true</exact-match>
         </library-ref>
         <library-ref>
              <library-name>jsf</library-name>
              <specification-version>1.2</specification-version>
              <exact-match>true</exact-match>
         </library-ref>
         <prefer-application-packages>
              <package-name>javax.faces.*</package-name>
              <package-name>org.apache.myfaces.*</package-name>
         </prefer-application-packages>
    and to weblogic.xml
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    but still getting the same
    java.lang.ClassNotFoundException - javax.servlet.jsp.jstl.core.Config.

  • Problem when using a new class "File" in JSP

    I'm using Weblogic 4.52sp2 under Solaris 2.6 with JDK 1.2.1_04. I've got a problem with a JSP that uses a commercial bean which contains a specific "File" class. This class has its own package: com.jspsmart.upload.File. While compiling, Weblogic raises an exception:
              Fri Mar 09 14:41:38 CET 2001:<I> <ServletContext-Servlets> weblogic.servlet.JSPServlet: Generated java file: /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java
              Fri Mar 09 14:41:43 CET 2001:<E> <ServletContext-Servlets> weblogic.servlet.JSPServlet: Compilation of /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java failed:
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java:46: Ambiguous class: java.io.File and com.jspsmart.upload.File
              f = new File("/data/html/jspsmartupload/jsp/sample2.jsp");
              I looked at the .java generated file but it seems that everything is OK: f is a java.io.File
              public class _sample1 extends weblogic.servlet.jsp.JspBase implements weblogic.servlet.jsp.StaleIndicator {
              // StaleIndicator interface
              public boolean _isStale() {
              java.io.File f = null; long lastModWhenBuilt = 0L, lastMod = 0L;
              f = new File("/data/html/jspsmartupload/jsp/sample1.jsp");
              lastModWhenBuilt = 984144952000L;
              lastMod = f.lastModified();
              if (!f.exists() || lastMod > lastModWhenBuilt) return true;
              return false;
              We can't neither change the bean (no sources) nor Weblogic JSP engine (of course). Has anyone a solution ?
              [att1.html]
              

    i think you should try this
              f = new java.io.File("/data/html/jspsmartupload/jsp/sample1.jsp");
              "Laurent PAILLARD" <[email protected]> wrote in message
              news:[email protected]...
              I'm using Weblogic 4.52sp2 under Solaris 2.6 with JDK 1.2.1_04. I've got a
              problem with a JSP that uses a commercial bean which contains a specific
              "File" class. This class has its own package: com.jspsmart.upload.File.
              While compiling, Weblogic raises an exception:
              Fri Mar 09 14:41:38 CET 2001:<I> <ServletContext-Servlets>
              weblogic.servlet.JSPServlet: Generated java file:
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java
              Fri Mar 09 14:41:43 CET 2001:<E> <ServletContext-Servlets>
              weblogic.servlet.JSPServlet: Compilation of
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java failed:
              /data/html/compiledJSP/_jspsmartupload/_jsp/_sample2.java:46: Ambiguous
              class: java.io.File and com.jspsmart.upload.File
              f = new File("/data/html/jspsmartupload/jsp/sample2.jsp");
              I looked at the .java generated file but it seems that everything is OK: f
              is a java.io.File
              public class _sample1 extends weblogic.servlet.jsp.JspBase implements
              weblogic.servlet.jsp.StaleIndicator {
              // StaleIndicator interface
              public boolean _isStale() {
              java.io.File f = null; long lastModWhenBuilt = 0L, lastMod = 0L;
              f = new File("/data/html/jspsmartupload/jsp/sample1.jsp");
              lastModWhenBuilt = 984144952000L;
              lastMod = f.lastModified();
              if (!f.exists() || lastMod > lastModWhenBuilt) return true;
              return false;
              We can't neither change the bean (no sources) nor Weblogic JSP engine (of
              course). Has anyone a solution ?
              

  • Class loading problem with websphere 6.1

    Hello
    We have a jsf application that works fine with tomcat as well as jboss. Now we need to deploy on websphere 6.1 and encounter some problem.
    We followed the specifications of this link [regarding jsf and Weblogic|http://www-01.ibm.com/support/docview.wss?uid=swg21243668] , i.e. made the myfaces jars a shared library (left tomahawk libs in webapp though).
    Now i get java.lang.ClassCastException: javax.faces.component.UIViewRoot incompatible with com.opentext.docviewer.ui.component.toolbar.Toolbar
         at com.opentext.docviewer.ui.component.toolbar.ToolbarTag.setProperties(ToolbarTag.java:66)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:536)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:312)
         at com.ibm._jsp._toolbar._jspx_meth_dv_toolBar_0(_toolbar.java:183)
         at com.ibm._jsp._toolbar._jspService(_toolbar.java:87)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)I wrote a small jsp page that showed me the clasloader order of the class javax.faces.component.UIViewRoot and got this:
    System path
    Webapp path
    * bundleresource://31/javax/faces/component/UIViewRoot.class
    * wsjar:file:/E:/shared/myfaces/myfaces-api-1.1.4.jar!/javax/faces/component/UIViewRoot.class
    So somehow there is a "bundleresource"?
    I changed the classloading mechanisms accoording to the link mentioned above, but now i run out of ideas :-(
    Regards
    Edited by: mark1971 on Sep 10, 2008 2:21 AM

    Hi Per,
    Is this a reproducible exception? Looking at the source code, it comes from an impossible place:
    try
        // commit logic
    catch (RuntimeException e)
        log("CoherenceRA: Commit failed:\n" + getStackTrace(e));
        rollback();
        LocalTransactionException lte = new LocalTransactionException(e.toString()); // line 37!!!
        lte.setLinkedException(e);
        throw lte;
        }As you can see, the NPE on line 37 could only come as a result of the "e == null" condition, which would be against the "catch" contract.
    I wonder if you run any profiling, debugging tool or AOP framework that "instruments" the resource adapter code and causes an NPE in a place that cannot throw it?
    Regards,
    Gene

  • For WebLogic 5.1, where should I put my class files for my JavaBeans?

    With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.
    Now I am moving this application to WegLogic 5.1. I have encountered a problem with WebLogic 5.1
    and do not know where I should place my JavaBean class files --
    Originally, the JSP files for my application are in package path-- ..onlinetrade\jsp
    and the class files for my beans are in the package path -- ..onlinetrade\jsp\bean\*.class
    Now, with WebLogic 5.1,
    1) I have put my JSP files in
    C:\weblogic\myserver\public_html\onlinetrade\jsp
    2) I have created subdirectory and put my bean class files in
    C:\weblogic\myserver\classfiles\onlinetrade\jsp\bean
    When I started weblogic and the first page - login.jsp page can be up and accessed. But when I login and forward to another JSP page called 'controller.jsp', where a bean is instantiated, I got the following error
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java:210: cannot access jsp_servlet._onlinetrade._jsp.registerBean
    probably occurred due to an error in /onlinetrade/jsp/controller.jsp line 53:
    registerBean registerBeanInstance = new registerBean();
    I know the javac is working, and a java file is created upon the JSP page, but the problem is -- the bean class files cannot be found!!!
    Where should I create the package path and put my bean class file so that my JSP pages can pick them up?
    Any help is greatly appreciated!
    Thanks.
    --Tim

    I have mine in WEB-INF/classes

  • Import user defined class in JSP page

    In my test.jsp page, I tried to display the user name using the value returned from a class UserInfo's static function getUsername(), like this:
    <%@page import="toystore.view.UserInfo" %>
    <html:text property="username" value="<%= UserInfo.getUsername()%>"
    Is this allowed? I tried to run it but failed, it complained:
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:D:\java\bc4jtoystore\ToyStoreController\classes\.jsps\_web_2d_inf\_jsp\_signin.java
    Line # Error
    0 cannot access class toystore.view.UserInfo; file toystore\view\UserInfo.class not found
    64 variable UserInfo not found in class web2d_inf._jsp._signin
    If it is allowed, what is the correct way to do it?
    Thanks.
    P.S. UserInfo is compiled in toystore.view package.

    check your classpath. it looke like the compilers complaining that it can't locate your toy store package location not that there is a problem with your jsp. Hope this helps

  • Jsp to class files

    All,
    I am pretty new with jsp and java. I want to know if how do I deploy a jsp application as class files instead of sources. Can someone give me how do I get start with this? Many thanks.

    You can do this:
    1. Install Jakarta Ant
    2. Create a file called jsp.xml that contains
    <?xml version="1.0"?>
    <project name="jspc-test" default="main" basedir=".">
    <target name="main" depends="myjsp">
    </target>
    <target name="init">
    <property name="uriroot.dir" location="."/>
    <property name="jsp.dir" location="<your jsp directory>"/>
    <property name="jsp.output.dir" location="<your output directory>"/>
    <property name="jsp.verbosity" value="3"/>
    <mkdir dir="${jsp.output.dir}"/>
    </target>
    <target name="myjsp" depends="init">
    <jspc
    destdir="${jsp.output.dir}"
         uriroot="${uriroot.dir}"
    srcdir="${jsp.dir}"
    verbose="${jsp.verbosity}">
    <include
    name="<your jsp file name>.jsp"/>
    </jspc>
    </target>
    </project>
    3. Run a batch file that looks like this:
    set CLASSPATH=<path to your jar>;<path to your jar>
    <full path>\java -Dant.home="<full path>\ant" org.apache.tools.ant.Main -f "<full path>\jspc.xml"
    This will create a <your jsp file name>_jsp.java
    4. Compile the resultant java file
    Or if you want this done automated, then use this tool
    http://download.com.com/3000-2417-10227362.html
    Write your .jsp file. Compile. You can find the .java and the .class file in \workarea

  • What is correct row bean property class?

    I'm trying to extend the WL9.0 administrative console
              and I'm tryign to use the templates provided for viewing
              table form content there. The problem is as follows:
              I define a JSP that shows a table, each row showing data
              from my own bean class 'SponsorListItem'
              --->JSP snippet
              <%@ page language="java" %>
              <%@ taglib uri="/WEB-INF/console-html.tld" prefix="wl" %>
              <%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt" %>
              <%@ taglib uri="/WEB-INF/beehive-netui-tags-template.tld" prefix="beehive-template" %>
              <fmt:setBundle basename="mgmtconsole" var="current_bundle" scope="page"/>
              <beehive-template:template templatePage="/layouts/tableBaseLayout_netui.jsp">
              <beehive-template:section name="configAreaIntroduction">
              <fmt:message key="mysoftware.mgmtconsole.sponsorlist.title" bundle="${current_bundle}"/>
              </beehive-template:section>
              <beehive-template:section name="table">
              <wl:table
              name="sponsorListForm"
              property="sponsors"
              showcheckboxes="false"
              captionEnabled="true"
              controlsEnabled="false"
              bundle="mgmtconsole"
              formEnabled="true"
              showheadings="true"
              singlechange="false">
              <wl:caption>
              <fmt:message key="mysoftware.mgmtconsole.sponsorlist.caption" bundle="${current_bundle}"/>
              </wl:caption>
              <wl:column property="sponsorName" label="mysoftware.mgmtconsole.sponsorlist.sponsorname"/>
              <wl:column property="sponsorCode" label="mysoftware.mgmtconsole.sponsorlist.sponsorcode"/>
              <wl:column property="sponsorId" label="mysoftware.mgmtconsole.sponsorlist.sponsorid"/>
              </wl:table>
              </beehive-template:section>
              </beehive-template:template>
              -->end clip
              My form bean (SponsorListForm) has function
              --->clip
              public SponsorListItem[] getSponsors() { return fArray; }
              <--end clip
              My row bean (SponsorListItem) has the following getters
              -->clip
              public String getSponsorName() { return fName; }
              public String getSponsorCode() { return fCode; }
              public String getSponsorId() { return fId; }
              public String getHandle() { return fId; }
              <--end clip
              So far so good, when I try to view the JSP in the
              mgmt console snippet I get an error:
              java.lang.ClassCastException: java.lang.String
              at com.bea.console.taglib.html.renderer.DefaultCellRenderer.doRender(DefaultCellRenderer.java:36)
              at com.bea.console.taglib.html.TableTag.printTableRows(TableTag.java:749)
              at com.bea.console.taglib.html.TableTag.printTable(TableTag.java:594)
              at com.bea.console.taglib.html.TableTag.doEndTag(TableTag.java:359)
              at jsp_servlet._mgmtconsole._jsp.__mgmtconsole2._jspService(__mgmtconsole2.java:337)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
              at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:214)
              at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:120)
              If I set the getters from SponsorListItem to return null I do not get the error - instead I get the correct number of rows with empty content (naturally as I did not give any content, just nulls). So it seems that the cell renderer assumes that the property is of some class other than java.lang.String but I cannot find from the documentation what is the class it wants. If I had the source of the renderer I could go and have a look at there but naturally I do not have that...
              So, what is the correct class to return for a row bean property?

    It appears the assumed class for getHandle() in the row item bean is com.bea.console.handles.Handle which can be found from the console.jar in the server/lib/consoleapp/webapp/WEB-INF/lib.
              If I subclass this item and then make my row bean return instances of these for the getHandle() then I do not get class cast exception.

  • JSP classes warning:

    I have a webroot/WEB-INF/jsp directory with my jsps. When I compile I get the following warning for all my jsps:
    Warning: package name web2d_inf._jsps does not match source file name C:\CVSHome\Orion\jdev\registration\regView\classes\.jsps\_WEB_2d_INF\_jsps\_testname.java
    I am using JDev 9.03x

    I've had the same problem. I'm interested in this on too.

  • Automatic copying of class file problem

    I am using Weblogic 4.5.1 server on NT.
              I have a JSP "main.jsp" in which I am importing a user defined class
              "com.vt.Attribute".
              The Jsp is getting compiled into a servlet in
              "weblogic\myserver\classfiles\jsp_servlet\_jsp" directory. Also the file
              "Attribute.class" is getting placed automatically in directory
              "weblogic\myserver\classfiles\com\vt". Because of this, I am getting a
              ClassCastException, since the serial ids of the two class files will be
              different.
              How can I prevent the automatic copying of the "Attribute.class" into
              "weblogic\myserver\classfiles\com\vt" directory.
              Regards.
              

    Remove the package statement in your source code.
              I think this could be the cause.
              Chandra
              "Raghav" <[email protected]> wrote in message
              news:[email protected]..
              > I am using Weblogic 4.5.1 server on NT.
              > I have a JSP "main.jsp" in which I am importing a user defined class
              > "com.vt.Attribute".
              >
              > The Jsp is getting compiled into a servlet in
              > "weblogic\myserver\classfiles\jsp_servlet\_jsp" directory. Also the file
              > "Attribute.class" is getting placed automatically in directory
              > "weblogic\myserver\classfiles\com\vt". Because of this, I am getting a
              > ClassCastException, since the serial ids of the two class files will be
              > different.
              >
              > How can I prevent the automatic copying of the "Attribute.class" into
              > "weblogic\myserver\classfiles\com\vt" directory.
              >
              > Regards.
              >
              >
              

  • Class not found - JSP

     

    So, you have your NewLoginValidator class under:
              \weblogic\myserver\servletclasses\example\input\validate\NewLoginValidator.c
              lass
              Right?
              Try giving the full package name of the class. If it still doesn't find it,
              then it's clearly not in that package and does not exist. Make sure that you
              have "\weblogic\myserver\servletclasses" in your weblogic.class.path command
              line env variable.
              "Mark Sellers" <[email protected]> wrote in message
              news:[email protected]...
              > I tried it and still get the error. Any other ideas?
              >
              > Thx,
              > Mark
              >
              > "Wei Guan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Put your support class under c:\weblogic\myserver\serverclasses and give
              a
              > > try.
              > >
              > > --
              > > Cheers - Wei
              > > Mark Sellers <[email protected]> wrote in message
              > > news:[email protected]...
              > > > I'm trying to get this JSP page to work, it references multiple
              > JavaBeans.
              > > > The JSP looks like this:
              > > > <%@ page import="example.input.*, example.input.validate.*" %>
              > > > <%@ page import "com.onvia.sitemap.*" %>
              > > >
              > > > <jsp:useBean id="newLogin" scope="page"
              class="example.input.NewLogin"/>
              > > > <jsp:setProperty name="newLogin" property="*"/>
              > > >
              > > > <%
              > > > NewLoginValidator validator = new NewLoginValidator();
              > > >
              > > > try {
              > > > validator.validate(newLogin);
              > > > } catch(InputValidationException e) {
              > > > out.println("<html><pre>EXCEPTION:\n" + e.getMessage() +
              > > > "</pre></html>");
              > > > return;
              > > > }
              > > >
              > > > %>
              > > >
              > > > <html>
              > > > <body>
              > > > Account for <%= newLogin.getUserName() %> created.
              > > > </body>
              > > > </html>
              > > >
              > > > I've got the classes in a folder structure that matches the package:
              > > > example/input/validate under the c:\weblogic\myserver\classfiles\
              > folder.
              > > >
              > > > When I try and run the JSP page, I get:
              > > > Compilation of
              > > > 'C:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_newlogin.java'
              > failed:
              > > >
              > >
              >
              > --------------------------------------------------------------------------
              > > --
              > > > ----
              > > >
              > > > C:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_newlogin.java:118:
              > Class
              > > > jsp_servlet._jsp.NewLoginValidator not found.
              > > > probably occurred due to an error in /jsp/NewLogin.jsp line 9:
              > > > NewLoginValidator validator = new NewLoginValidator();
              > > >
              > > > C:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_newlogin.java:118:
              > Class
              > > > jsp_servlet._jsp.NewLoginValidator not found.
              > > > probably occurred due to an error in /jsp/NewLogin.jsp line 9:
              > > > NewLoginValidator validator = new NewLoginValidator();
              > > >
              > > > C:\weblogic\myserver\classfiles\jsp_servlet\_jsp\_newlogin.java:122:
              > Class
              > > > jsp_servlet._jsp.InputValidationException not found.
              > > > probably occurred due to an error in /jsp/NewLogin.jsp line 13:
              > > > } catch(InputValidationException e) {
              > > >
              > > > What am I missing/doing wrong? I can get a simple JSP page with one
              > > > JavaBean to work, but not this!?!
              > > >
              > > > TIA,
              > > > Mark Sellers
              > > >
              > > >
              > >
              > >
              >
              >
              

  • Error in Iplanet : "Unable to compile class for JSPNote: "

    Hi,
    I deployed a web application called FlightSchedule on iplanet 6.
    It retrieves some data from an oracle database and creates an xml page. The methods to create XML is called using test.jsp page. This application works well on Apache Tomcat server. But it gives the following error when deployed on iplanet6. Pl help.
    [30/Jan/2006:09:52:00] info ( 2177): Successfully initialized web application environment (web-apps.xml) for virtual server (https-ULCMBIPTDMZ04)
    [30/Jan/2006:09:52:21] info ( 2177): Internal Info: loading servlet /FlightSchedule/jsp/test.jsp
    [30/Jan/2006:09:52:24] info ( 2177): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    /usr/iplanet/servers/https-ULCMBIPTDMZ04/config/../ClassCache/_jsps/_FlightSchedule/_jsp/_test_jsp.java:15: Class com.sla.fs.scheduleCreator not found in import.
    import com.sla.fs.scheduleCreator;
    ^
    1 error, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
         at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
         at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:410)
    [30/Jan/2006:09:52:24] warning ( 2177): Internal error: Failed to get GenericServlet. (uri=/FlightSchedule/jsp/test.jsp,SCRIPT_NAME=/FlightSchedule/jsp/test.jsp)

    AppServer 6.0 is old and is no longer supported. Try our latest version - AS8.2 at http://java.sun.com/j2ee/1.4/download.html

Maybe you are looking for

  • Error in invoking target 'install' after extproc32 in x86_64 installation

    Hi I am trying to install patch p4547809 (9.2.0.8) however when it gets to 99% of the installation I get this error: Error in invoking target 'install' of makefile '/u01/oracle/9ir2db/rdbms/lib/ins_rdbms.mk' According to the log file the error is as

  • Open parameters for pdf in XI

    I am working on Acrobat XI Pro and Word 2013, previously when using Pro 9 and Word 2007 I could create a url link and add the open parameter #page=3 and then the link would open the pdf document on the specified page.  See example http://wyp-infoshar

  • FPGA output different to emulator

    I've written a simple vi that outputs a sine wave using the FPGA sine generator. This passes through a half-wave rectifier setup (via a SCB-68 connector block) and back into the FPGA. When I set the execution target to the FPGA emulator the vi works

  • Clustered session state replication

              We are new to WebLogic, vrs 8.1 server, and are trying to get session states to           replicate within a cluster. We believe everything is set up per the Bea docs but           in the end "the state" on the secondary does not seem to ex

  • For STO with Doc. Type UB, shipping instruction not picking automatically..

    Dear All, For STO with Doc. Type UB, shipping instruction not picking automatically.. Please advise. Regards