Problems compiling jsps using WLS6.1sp3 as Win2k service

Two related issues:
Issue #1:
I'm encountering an error where the javac compiler cannot be found (when
trying to compile jsps) when running as a Windows Service. JAVA_HOME is set
in the profile and I'm passing in E:\bea\jdk131\bin in the extrapath
parameter of beasvc.exe. The error I get is a file permission exception -
unable to access (read) C:\WINNT\System32\javac. Question is - why is it
looking there and not in JAVA_HOME? To try and isolate this, I've removed
everything from the PATH and CLASSPATH environment variables except for
E:\bea\jdk131\bin but to no avail.
Issue #2:
I've also tried hard-coding the location E:\bea\jdk131\bin\javac.exe into
the config.xml and weblogic.xml. The error is then a file permission
exception - unable to access (read) .\E:\bea\jdk131\bin\javac. Note the
initial dot-slash... however, the weblogic.policy file is set to allow
read,execute access for all files and directories below E:\bea (I've even
tried to grant a permission to .\E:\....... but that didn't work either)
Hope someone can help - it's been driving me nuts for a week now! What do I
need to do to get Weblogic to find javac when running as a Windows Service?

Hi Sudha
Plese see the error in the starting post. Do u agree with me now? The server is looking for org.apache.jsp.techSupport_jsp class.
Generated servlet error:
[javac] Compiling 1 source file
D:\MANTRA\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\work\M
inEngine\localhost\JSPTechSupport\techSupport_jsp.java:
2: cannot resolve symbol
symbol : class TechSupportBean
location: class org.apache.jsp.techSupport_jsp
TechSupportBean techSupportBean = null;
^
An error occurred at line: 2 in the jsp file:
/techSupport.jsp
Generated servlet error:
D:\MANTRA\jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\work\M
inEngine\localhost\JSPTechSupport\techSupport_jsp.java:
4: cannot resolve symbol
symbol : class TechSupportBean
location: class org.apache.jsp.techSupport_jsp
techSupportBean = (TechSupportBean)
rtBean) pageContext.getAttribute("techSupportBean",
PageContext.APPLICATION_SCOPE);
^Take care.
Hafizur Rahman
SCJP

Similar Messages

  • Weblogic.jspc outofmemory error while compiling jsps using ant in eclipse

    Hi all,
    I am trying to execute this target in my ant build:
         <target name="jspc">
              <java classname="weblogic.jspc" fork="yes">
                   <arg line="-verbose -verboseJavac -compileAll -webapp ${project.jsp.dir} -d ${project.jsp.class.dir}" />
                   <classpath>
                        <pathelement path="${classpath}" />
                   </classpath>
         </java>
         </target>
    I am getting the following error:
    [java] Error: [jspc]: 0 file(s) failed:
    [java] [Compilation errors : ]
    [java] The system is out of resources.
    [java] Consult the following stack trace for details.
    [java] java.lang.OutOfMemoryError
    [java] at weblogic.jspc.doCompile(jspc.java:861)
    [java] at weblogic.jspc.runJspc(jspc.java:654)
    [java] at weblogic.jspc.runBodyInternal(jspc.java:412)
    [java] at weblogic.jspc.runBody(jspc.java:319)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
    I am using weblogic 8.1, eclipse3.1, java1.4.1.
    Can some one please help me with this issue?
    thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • Problem with JSP using bean packaged in jar file

    Hi,
              I am trying to use a java bean in a jsp file. The java bean is packaged
              into a jar file. I am getting class not found compilation error. If the
              bean remains to be a seperated class file, everything work well.
              Does anyone know how I can use bean in a jar file within jsp , i.e. to
              allow the bean to be found during compilation ?
              Thanks,
              Terence.
              [email protected]
              

    Jacek,
              Thanks for replying.
              My JSP's are just files in my document root . However, I found a solution to
              my
              problem. That is to have the jar file defined in my weblogic.class.path. I may
              have missed some files in my original jar file which causes my problem.
              Mayby I should package everything into a web application for deployment. That
              will be my next step.
              Thanks anyway.
              Terence.
              Jacek Laskowski wrote:
              > Terence Lai wrote:
              > >
              > > Hi,
              > >
              > > I am trying to use a java bean in a jsp file. The java bean is packaged
              > > into a jar file. I am getting class not found compilation error. If the
              > > bean remains to be a seperated class file, everything work well.
              >
              > How do you use the JSP file ? Is it a part of web application ? If so,
              > the bean jar package should be located in WEB-INF/lib directory. It's
              > also recommended to put the bean class into a package, so it's not in
              > 'unnamed' package, and <jsp:useBean> can find it.
              >
              > >
              > > Does anyone know how I can use bean in a jar file within jsp , i.e. to
              > > allow the bean to be found during compilation ?
              >
              > see above.
              >
              > > Terence.
              >
              > Jacek Laskowski
              > HP Consulting
              

  • The deployment problem in JSP using JavaBean

    Hi there,
    I followed the descriptions in Writing Enterprise Applications with
    Java 2 SDK, Enterprise Edition tutorial to build a set of programs to run JSP with JavaBean, and I also followed the steps in creating new WAR file, but some how it wouldn't work after I deployed them. I run the JSP in IE and got a message like this:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 20 in the jsp file: /1bonus.jsp
    Generated servlet error:
    c:\j2sdkee1.3.1\repository\orbit\web\JSPRoot\$1bonus$jsp.java:63: Class org.apache.jsp.JBonusBean not found.
    JBonusBean jbonus = null;
    ^
    I used the deploytool to create the WAR file, and after I added the 1bonus.jsp, I also added JBonusBean into the WAR file. I found 1bonus.jsp was added into the WAR file, but there's no JBonusBean appeared under the WAR file.
    Could you please tell me is there anything wrong?
    Thanks for your time.
    Regards,
    Eric

    I think you have not imported 'BonusBean' in your jsp. Code this line in your jsp at the top.
    <%@page import="BonusBean" %>
    Sudha

  • Problems compiling jsp on Tomcat

    I am getting an error message when I try to run jsp files on the Tomcat server. It runs the txt files fine. Using the 8080 port. Any suggestions about what is going wrong? This is my first time to run jsp or Tomcat on this computer. Thank you. Sorry for the long error message.
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    error: Invalid class file format in C:\Program Files\Java\jre1.5.0_04\lib\rt.jar(java/lang/Object.class).
    The major.minor version '49.0' is too recent for this tool to understand.
    C:\Program Files\Apache Tomcat 4.0\work\localhost\myapp\project3a$jsp.java:0: Class java.lang.
    Object not found in class javax.servlet.GenericServlet.
    package org.apache.jsp;
    ^
    2 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Unknown Source)

    It looks like it is running multiple versions of Java.
    It looks like you are trying to run with java 1.5
    Check what your JAVA_HOME variable is set to
    Do you have any other versions of java installed on the machine?

  • Problem compiling jsp file

    I am using ant to precompile my jsp files which contains struts taglibs but it is giving an error
    [jasperc] error:org.apache.jasper.JasperException: Error compiling \attendance\AllPendingAuthentication.jsp
    [jasperc] at org.apache.jasper.JspC.processFile(JspC.java:543)
    [jasperc] at org.apache.jasper.JspC.execute(JspC.java:748)
    [jasperc] at org.apache.jasper.JspC.main(JspC.java:770)
    what i need to do to come out of this??

    You can load the JSP in the browser and add a jsp_precompile parameter, something like:
    http://yourwebsite.com/yourwebpage.jsp?jsp_precompile
    Any mistakes will end up being displayed in the browser, but the JSP will never get executed should it contain no programming mistakes.

  • Problem compiling JSP

    I tried one example from the tutorial for developing in J2EE, well I have this JSP page with this code:
    <%@ page import="Converter,ConverterHome,javax.ejb.*, java.math.*, javax.naming.*, javax.rmi.PortableRemoteObject, java.rmi.RemoteException" %>
    <%!
    private Converter converter = null;
    public void jspInit() {
    try {
    InitialContext ic = new InitialContext();
    Object objRef = ic.lookup("java:comp/env/ejb/TheConverter");
    ConverterHome home = (ConverterHome)PortableRemoteObject.narrow(objRef, ConverterHome.class);
    converter = home.create();
    } catch (RemoteException ex) {
    System.out.println("Couldn't create converter bean."+ ex.getMessage());
    } catch (CreateException ex) {
    System.out.println("Couldn't create converter bean."+ ex.getMessage());
    } catch (NamingException ex) {
    System.out.println("Unable to lookup home: "+ "TheConverter "+ ex.getMessage());
    public void jspDestroy() {   
    converter = null;
    %>
    <html>
    <head>
    <title>Converter</title>
    </head>
    <body bgcolor="white">
    <h1><b><center>Converter</center></b></h1>
    <hr>
    <p>Enter an amount to convert:</p>
    <form method="get">
    <input type="text" name="amount" size="25">
    <br>
    <p>
    <input type="submit" value="Submit">
    <input type="reset" value="Reset">
    </form>
    <%
    String amount = request.getParameter("amount");
    if ( amount != null && amount.length() > 0 ) {
    BigDecimal d = new BigDecimal (amount);
    %>
    <p>
    <%= amount %> dollars are <%= converter.dollarToYen(d) %> Yen.
    <p>
    <%= amount %> Yen are <%= converter.yenToEuro(d) %> Euro.
    <%
    %>
    </body>
    </html>
    and I deployed this application, but when I started server gets this message:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] D:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\ConverterApp\war-ic_war\org\apache\jsp\index_jsp.java:6: '.' expected
    [javac] import Converter;
    [javac] ^
    Generated servlet error:
    [javac] D:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\ConverterApp\war-ic_war\org\apache\jsp\index_jsp.java:7: '.' expected
    [javac] import ConverterHome;
    [javac] ^
    [javac] 2 errors
    This is very strange it looks like it doesn't recognize classes to import
    Thanx in forward.

    Probably you are looking at some older example code.
    As of Java 1.4, it is no longer possible for Tomcat to find classes that are not in a package. ALL java classes should be in a package in order to work with Tomcat.
    This change to the JDK broke a lot of simple example/tutorial code which didn't use packages.
    Solution:
    Modify the classes Converter.java and ConverterHome.java to be in a package
    eg
    package com.mypackage
    public class Converter
    -> /WEB-INF/classes/com/mypackage/Converter.class
    Alternative solution: find a newer tutorial which doesn't provide examples where classes are not in packages.

  • Paging Problem in JSP using request.

    Dear Friends,
    I have an issue in JSP paging using request. In my action servelet my code is set as follows.
    request.setAttribute("clients", clients);
    In JSP I have
    <%ClientDataBean[] clients = (ClientDataBean[]) request.getAttribute("clients");
    If I navigate to another page it becomes null. I could make through session. If there any way to handle request param while navigating between pages.
    Thanks,

    public class PagingBean{
       private int pageSize;
       private int pagePointer;
       private int pages;
       private int startPage;
       private int lastPage;
       private List dataList;
       private List resultantList;
       //respective getters and setters
       // write getResultantList() method in such a way that it gives the resultantList which is to be displayed as per persisted   values of all other properties in Bean and use it for displaying on your view.
    }write your backing bean / Action Class to manage the respective persisted values according to the actions done.
    Or if you are not intrested in re-inventing the wheel please go ahead and use custom built solutions.
    please google for finding such.
    could startup with the one below
    http://java-source.net/open-source/jsp-tag-libraries
    REGARDS,
    RaHuL

  • Problems with JSP - using tag library with Weblogic 8.1

    I am getting the following error when I try to run a web application called "regain":
    /searchinput.jsp(2): Error in using tag library uri='regain-search.tld' prefix='search': cannot find tag class: 'net.sf.regain.ui.server.taglib.MsgTag'
    probably occurred due to an error in /searchinput.jsp line 2:
    <%@taglib uri="regain-search.tld" prefix="search" %>
    The classes that the .tld file points to are in the web applications WEB-INF/classes directory and I have put this path into my classpath environment variable (running Windows 2000 Server).
    This application runs fine on Tomcat.
    I can't not figure out whether is error is masking another error or what. I've tried using JDK and Jrockit for my web app - no luck.
    Please help! Thanks!

    anyone? :/

  • Problem compiling assembler using as

    I am attempting to learn how to program in assembler for my intel mac mini. I wrote a hello world in C and ran gcc with the -S option to have a look.
    gcc hello_world.c -o hello_world.s -S
    Then, I tried to use as to assemble this file.
    as hello_world.s -o hello_world
    When I attempted to run the file, I was told I didn't have the correct permissions so I chmoded the file.
    chmod 755 hello_world
    Now, when I try to run the executable, it comes up the with message:
    -bash: ./hello_world: Bad executable (or shared library)
    Looking at the file information for hello_world, it says:
    Kind: Unix Executable (Intel) - which I would assume should run?
    If someone could tell what I'm doing wrong it would be greatly appreciated.
    Intel Mac mini   Mac OS X (10.4.6)  

    Hi--
    Welcome to the Apple Discussions.
    You're missing a step (or steps). What as does is compile an object code library. You need to link it to the system libaries in order to make an executable.
    So your steps should look like this:
    <pre class="command">gcc hello_world.c -o hello_world.s -S
    as hello_world.s -o hello_world.o
    gcc hello_world.o -o hello_world</pre>Now you should be able to run the program:
    <pre class="command">./hello_world</pre>
    Notice that we create an object file (".o") in the second step to be used in the third one. You might be able to figure out how to use ld directly if you add -v to get more information on what it's up to in the last step:
    <pre class="command">gcc -v hello_world.o -o hello_world</pre>Good luck,
    charlie

  • Re: Problem Compiling JSP

    in your login.jsp change this line
    <%@ page import="DBConnect" %>
    to this
    <%@ page import="DBConnect.*" %>

    Hi Khalidali63
    thanks for your help, but I tried
    <%@page import="DBConnect.*" > and still received the same errors. I did manage to resolve the errors by adding my class DBConnect to a package DVD and then I used the directive <%@page import="DVD.DBConnect" > and it WORKED!!!
    thanks again
    christine

  • Problem Compiling JSP files

    I am unable to compile my jsp file whan they are kept in public_html?I have javac in d:\jdk1.2\bin.I installed my weblogic in d:\weblogic.Any help in this regard is very highly apriciated.I really need it very badly.
              

    add C:\Tomcat\webapps\examples\WEB-INF\classes to your classpath.
    You can do this through the control panel or by:
    set CLASSPATH=%CLASSPATH%;C:\Tomcat\webapps\examples\WEB-INF\classes

  • Remote debugging JSPs using Forte and Weblogic

    I am compiling JSPs using a build script (ANT) and deploying it to weblogic server instance running on unix. when i mount the JSPs and my classes to Forte and connect to weblogic instance, I can debug the java files. But the JSPs i can't debug. I can put the break points in JSPs but the debugger is not stopping at that breakpoint when i run my application in the browser.

    I guess I can answer the question myself...
    Turns out that there was a problem in 1.3.0. BugParade #4342974.

  • Compile JSP in Oracle BPM 10g

    Hi Everyone,
    Could you let me know how to compile jsp using Oracle BPM 10gR3 studio.
    Thanks in adavance...

    I use JSPs in my projects since it gives me alot more freedom.
    For example, I would like to use JSF tags, or use Javascript libraries to make AJAX calls, and always I want the JSP to have the look and feel of the brand of the company.
    There are challenges in using the JSPs however. The documentation for the JSP Tag Library doesn't have good examples, so you might have to figure stuff out on your own.
    I don't use WTP, although I've been meaning to install it. I've been using a text editor (notepad++) for the development of my JSPs.

  • JavaService - can install java program into win2k service, but cannot run

    i have a JavaService problem: i can install java program into win2k service, but cannot run
    the version of javaservice is 2.0.7.0
    the following is the message:
    C:\DailyUpdate\dist>JavaService.exe -install DailyUpdate C:\Program Files\Java\j
    dk1.5.0_05\jre\bin\client\jvm.dll -Djava.class.path=C:\DailyUpdate\dist\ftpbean.
    jar;C:\DailyUpdate\dist\mysql-connector-java-3.0.10-stable-bin.jar;C:\DailyUpdat
    e\dist\DailyUpdater.jar -Xms16M -Xmx64M -start DailyUpdateHandler -params C:\Dai
    lyUpdate\dist -out C:\DailyUpdate\dist\logs\out.log -err C:\DailyUpdate\dist\lo
    gs\err.log
    The DailyUpdate automatic service was successfully installed
    The DailyUpdate service is starting.
    The DailyUpdate service could not be started.
    The service did not report an error.
    More help is available by typing NET HELPMSG 3534.

    I might be doing some programming for my company soon
    which will require a program to monitor a database
    and whenever there is a change to certain fields, it
    must copy certain fields into another database. When I see "whenever thiere is a change to certain fields" I tend to think "triggers" - but maybe this won't work for you 'cause of the "another database" part. And the fact that triggers are inherently evil.
    [snip]
    Is it possible to run a Java program as a windows
    service? And if so then how would you go about it? I'd hit Google - there're a couple ways to do this.
    [snip]
    Also,...if I were to use one of those programs which
    can make an .exe of a Java program, then do you still
    require the JRE to be on the machine? It depends on how you did the conversion. If you compile to native then no, if you just wrap up a JRE then yes.
    Why I ask is
    that I occasionally get asked to do small development
    projects for my company, but we are a microsoft
    partner and therefore do all the development in C#
    and the like. So I would like to just implement as
    many things in Java as I can, just to show everyone
    that Java can do exactly what C# can do. But its
    difficult to convince people of this since I always
    require the JRE and they dont. Of course, they require the .NET framework and you don't. And last I looked that thing was around 23 Meg.

Maybe you are looking for

  • Kernel Panic lion 10.7.2 - Macbook pro 8,2 early 2011

    Hello I got alot kernel panic , i think is the automatic swtiching graphic cards doing this, when i run on power supply i only use AMD graphic card and no kernel panics , when im on battery if i use a program who make auto switch from intel to amd ca

  • Need Urgent Clarification

    Hi Friends,        I need to know the advantages and Disadv..in a scenerio, where I have got an Extract Structure in that I have some fields .      Now I have 3 tables , say T1, T2 & T3 and I need a field from each of these tables to get the result v

  • /usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc_s.so: undefined reference to `d

    I was installing Oracle application using rapid install on a Dell pweredge830 server with linux 4.1. During the database binary linking process I get the following error message /usr/lib/gcc/i386-redhat-linux/3.4.3/libgcc_s.so: undefined reference to

  • Install PHP 5.2.5 on my macbook

    Hi, Anyone installed php on their mac? Could anyone show me the easiest way to install PHP 5.2.5 so i can make my webpage Thx, Dave

  • I Forgot Answer for a Security question, what can I do?

    I RECENTLY BOUGHT CREDIT IN THE APP STORE, AND AS I TRIED TO USE IT, IT DOES NOT ALLOW ME, AND REJECTS THE ANSWERS TO MY SECURITY QUESTIONS; IT HAS BEEN A LONG TIME SINCE I SET UP THE ACCOUNT, AND DID NOT WRITE DOWN THE ANSWERS (DUH). WHAT CAN BE DON