Can't compile JSPs with Forte 4

I upgraded to forte 4 CE. Now I cannot compile my JSP's because they are not finding my class files.
They all worked in Forte 3 ce.
If I have class MyClass()
and try to create an instance in my JSP
MyClass mc = new MyClass()
It gives the 'cannot resolve symbol' error on MyClass object.
What happened? I haven't changed anything. I have about 10 jsps and a bunch of Classes that all worked and now don't.
I checked the product support for Forte and couldn't find anything.
If anybody else had this problem and figured it out please post your solution.
Thanks.
-chiranjp

i am having the same problem using my "homemade" class with forte.
I have all of the .java and .class files and even have a .jar file but it still cannot find them
could you please give me more details on how you reached your solution?
where did you place the files so that forte found them?
any and all help is greatly appreciated.
thanks
-j

Similar Messages

  • Can I compiler servlet with java compiler?

    Can I compiler servlet with java compiler?
    Here is an example of it:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet
              protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException , IOException
                        response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        StringBuffer sb = new StringBuffer();
                        sb.append("<html><body><h1>");
                        sb.append("Hello World");
                        sb.append("</h1></body></html>");
                        out.print(sb.toString());
                        out.close();
         }

    Can I compiler servlet with java compiler?
    yes.
    just include the correct jarfiles in your classpath.

  • Compiled JSPs With Jasper - Now Includes don't work

    I am using a template page (index.jsp) that includes other jsp pages to fill the body of the page. Previously, I had my index.jsp page as the root document and the other jsp's in a 'jsp' subfolder. To include the other jsp's, I was using hyperlinks like this:
    where 'XXXX' is the name of the jsp page without the '.jsp' extension.
    So, in the index.jsp page, I had the following line of code that included the jsp pages:
    <%
    pageContext.include("/jsp/" + include + ".jsp"); // include is the 'page' request parameter.
    %>
    This has worked flawlessly up to this point. However, now I want to precompile all JSP pages using Ant and Jasper as this is a distributed app and I don't want to ship jsp pages. I compiled the pages and updated the web.xml file with the new mappings. Now the index.jsp page (servlet) displays but does not include the compiled jsp pages. Will the same link to a jsp page use the servlet mappings in the web.xml file to map to the new servlet?
    I also tried the following with the same result:
    request.getRequestDispatcher("/jsp/" + include + ".jsp").include(request,response);
    Can someone suggest a solution? How can I get the compiled jsp's (servlets) to be included and displayed in the same way they were when used as jsp pages?

    Well, good news and bad news....
    I got the includes to work by changing my index.jsp page to use the following:
    <jsp:include page="<%=includePage%>" flush="true"/>
    instead of:
    pageContext.include("/jsp/" + include + ".jsp");
    This seems to work.
    However, this has uncovered another issue. Now none of the graphics for the page display. So I am left with a page that has broken images links all over it. Does anyone know how to get around this? All my links follow the format:
    <img src="/images/...
    so they should resolve to the base directory, then 'images' right? When I look at the properties for each broken image, they have the correct path... does anyone know why they wouldn't display? What do I need to do to allow the servlets to display the images properly like the jsp pages did?
    Thanks in advance...

  • Problem while compiling JSP in FORTE

    Hello Friends,
    I am using Fore for Java 4 Community Edition, I have created a web module. I am using internal tomcat 4.0 server. When I request for a JSP which has a bean or a class file stored in the WEB-INF\classes folder either using useBean tag or if try to create an object of that class, I get compilation error as forte is not including those classes in its classpath. But when I deploy the same application on external tomcat, it works fine. Even after I mount the classes folder in the project, it doesn't solve the purpose. Please help me to get rid of this problem. My directory structure is as follows.
    root - jsp and html files
    root\WEB-INF\web.xml
    root\WEB-INF\classes - all class files
    root\WEB-INF\lib - lib jars

    I am also working on Forte. Forte has an inbuilt Tomcat. You dont need to copy any files to any where in the file mount system. You need to specify the External / Internal Browser settings, So that when you try to execute it, the .jsp file can be displayed in the browser. I havent faced any problem as you said.
    Uma
    http://www.javagalaxy.com

  • Can not compile php with "-with-oracle=/usr/local/oracle"

    I work on Linux engine with a x86_64 architecture and use Oracle 10g 10.2.0.1 client for x86_64 linux
    so - when i try to compile php with the oracle argument (-with-oracle=/usr/local/oracle) i get everytime the same error:
    checking Oracle version... configure: error: Oracle needed libraries not found
    I think, maybe i have a problem because configure not found my "64 bit libraries"...
    Can someone help me? I am realy helpless...
    thx

    Did you really want the obsolete "oracle" driver - why not use --with-oci8?
    The user comments in http://www.php.net/oci8 have some good info on 64bit configuration.

  • Compiling JSPs with -g

    Hello,
              how can I get WLS to compile my JSPs (deployed in a .war-file) with
              debugging info (i.e. the javac "-g" Flag)? I tried to set the
              "compileCommand" property in weblogic.properties, but it's being
              ignored. Here's what I did:
              weblogic.httpd.initArgs.*.jsp=\
              pageCheckSeconds=1,\
              compileCommand=/path/to/wls/javacg.sh,\
              workingDir=/path/to/wls/myserver/classfiles,\
              verbose=true
              javacg.sh is a shell script that calls javac with the -g flag, like
              this:
              #!/bin/sh
              javac -g $*
              I also tried to set the "compileCommand" to "javac -g" directly.
              But on startup, WLS keeps telling me that:
              <WebAppServletContext-appcontext> *.jsp: param compileCommand initialized to: javac
              The string "javac" doesn't appear anywhere in weblogic.properties
              except for the abovementioned property definition.
              Do the above properties apply to JSPs deployed in WAR-files at all? If
              not, where can I set them?
              I also tried to compile my JSPs manually with weblogic.jspc -g , but
              WLS would always re-compile the JSPs upon their first invocation.
              Any hints?
              TIA,
              Olaf
              Olaf Klischat | Fraunhofer ISST
              Oberfeldstrasse 132 | Mollstrasse 1
              12683 Berlin, Germany | 10178 Berlin, Germany
              phone: +49 30 54986231 | mail: [email protected]
              

    Hi,
              I think that for web applications (i.e. war files) the options to the
              JSP servlet (which is the one doing the compilation) must be in the
              web.xml file (deployment descriptor). Most options in the
              weblogic.properties file do not apply for a war file, they have to be
              specified in the web.xml.
              Mathieu
              Olaf Klischat wrote:
              >
              > Hello,
              >
              > how can I get WLS to compile my JSPs (deployed in a .war-file) with
              > debugging info (i.e. the javac "-g" Flag)? I tried to set the
              > "compileCommand" property in weblogic.properties, but it's being
              > ignored. Here's what I did:
              >
              > weblogic.httpd.initArgs.*.jsp=\
              > pageCheckSeconds=1,\
              > compileCommand=/path/to/wls/javacg.sh,\
              > workingDir=/path/to/wls/myserver/classfiles,\
              > verbose=true
              >
              > javacg.sh is a shell script that calls javac with the -g flag, like
              > this:
              >
              > #!/bin/sh
              >
              > javac -g $*
              >
              > I also tried to set the "compileCommand" to "javac -g" directly.
              >
              > But on startup, WLS keeps telling me that:
              >
              > <WebAppServletContext-appcontext> *.jsp: param compileCommand initialized to: javac
              >
              > The string "javac" doesn't appear anywhere in weblogic.properties
              > except for the abovementioned property definition.
              >
              > Do the above properties apply to JSPs deployed in WAR-files at all? If
              > not, where can I set them?
              >
              > I also tried to compile my JSPs manually with weblogic.jspc -g , but
              > WLS would always re-compile the JSPs upon their first invocation.
              >
              > Any hints?
              >
              > TIA,
              > Olaf
              > --
              > Olaf Klischat | Fraunhofer ISST
              > Oberfeldstrasse 132 | Mollstrasse 1
              > 12683 Berlin, Germany | 10178 Berlin, Germany
              > phone: +49 30 54986231 | mail: [email protected]
              

  • Standalone OC4J can't compile JSPs?

    I've been following this tutorial: http://www.eclipse.org/webtools/community/tutorials/OracleServerAdapter/OracleServerAdapter.html
    in order to get my Eclipse working with my 10.1.3 standalone OC4J server.
    However, every time I try to run the index.jsp page, I get the following error:
    J2EE JSP0008 Unable to dispatch JSP Page : Exception:oracle.jsp.provider.JspCompileException: <H3>Errors compiling:C:\ORACLE\oc4j\j2ee\home\application-deployments\DemoOC4J\DemoOC4J\persistence\_pages\\_index.java</H3><pre></pre>
    I imagine that there's some sort of java path error of some sort but I can't seem to figure out what it would be. I have my JAVA_HOME set to my JDK 1.5 . ( \jdk1.5.0_11 ). Any ideas or pointers as to what I need to do to get this thing going?
    Thanks

    After digging for days, I found this thread:
    OC4J Preview - JSP not problem
    Turns out that Eclipse set it's Java library defaults to the JRE directory and not the JDK. After changing it to the JDK, I've got JSP compilation success!

  • Embedded Tomcat Can't Compile JSP from JAR

    I've got a problem that I can't seem to figure out. I hope someone might shed some light on this.
    I have a desktop java application that has Tomcat embedded in it. I'm creating a jar file of just myapp's *.class files and I specify the main-class and classpath in the manifest file. If I execute the jar the following way, it works fine:
    set CLASS_PATH=.;.\myapp.jar;.........all of the required Tomcat classes....;.\lib\anotherLib.jar
    javaw -ea -classpath  %CLASS_PATH%  com.myapp.Application
    But if I try to execute it this way, it runs and starts Tomcat. However, when Tomcat tries to compile a JSP, it can't find packages such as javax.servlet, javax.servlet.jsp, org.apache.jasper.runtime, and so forth.
    I believe It has something to do with the classpath. Does anybody have any ideas?

    i guess it is not the too lengthy classpath...
    just chek that when u run the application from eclipse.. r u seting the classpath.. and that classpath should not have any spaces in it..
    for ex: a directory like c:\program files \ should be as c:\progra~1\..
    ot any jar file in the classpath has spaces...
    this may be one of the reason that the classpath gets truncated...

  • Tomcat can't compile JSP

    Hi,
    I'm using Ecliple 2.1 with JBOSS 3.2.2 and Tomcat 4.1.24 on XP
    I can separately run JBOSS+Tomcat from command prompt, but when i start them from Eclipse, Tomcat fails to compile very first JSP. (Internal error). From examining error stack trace i see that tomcat tries to create process "javac.exe" with too lengthy classpath. It seems that the classpath is getting truncated.
    Has anybody had similar problem?
    Thanks in advance,
    Leonid.

    i guess it is not the too lengthy classpath...
    just chek that when u run the application from eclipse.. r u seting the classpath.. and that classpath should not have any spaces in it..
    for ex: a directory like c:\program files \ should be as c:\progra~1\..
    ot any jar file in the classpath has spaces...
    this may be one of the reason that the classpath gets truncated...

  • Compiler JSP with comment

    Hi,
    I want the comment ine the source Java while the line number of JSP page.
    I use Jasper for compiling the JSP pages.
    Why the compiler Jspc > v4.0 don't add this comment in the source code JAVA ?
    It is possible add this comment in the source ? with option (command line or call java) or do you know an another compiler free which add this comment.
    Thanks !

    I'm not exactly sure what you want to do, but it sound like you just want a comment in your jsp to show up in the generated source file.
    There are 3 kinds of comments you can use in your jsp. Firstly you have jsp comments (<%-- ... --%>) which only shows in the jsp. Secondly you have java comments (<% // ... %> or <% /* ... */ %>) which will show in the jsp and the generated source. And lastly you have html comments (<!-- ... -->) which will show in the jsp, source, and the response to the client.
    Hope this helps.

  • Compiling jsp with tomcat 4

    HTTP 500 server error as follows:
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 2 in the jsp file: /listStore.jsp
    *line#2 is the usebean statement in the jsp...
    NOTE: new machine, new configuration... this same servelt/jsp/bean work great on another machine with tomcat 3...
    so this will have something to do with tomcat configuation... believe that the configuration is set to not compile with deprecation.. would like to know where to change that...

    I guess the problem comes from jdk 1.4 ...deprecation of sun.tools.javac.Main prevents compilation in jasper...

  • Pre-compiled JSPs with main_mode = recompile

    I would like to precompile JSPs and allow changes to be recompiled after an application has been deployed. In other words, I want to use ojspc to precompile my JSPs and set main_mode to recompile in web.xml. In such a scenario, I would like changes to JSPs in the web folder to be reflected. Otherwise, it should just take the precompiled JSP. Does anyone know if that is possible?
    I have tried it out and this is what I have found. If I set main_mode to recompile in the web.xml and include the jar of precompiled JSPs in the WEB-INF/lib folder then it never recompiles any changes to JSPs in the web application. Is that the way it is supposed to behave or should it be recompiling the changed JSP?

              Yes it is possible to do this; you can package up the classes and WebLogic will
              attempt to load them - if the class load works, no recompile is needed.
              But there's a bug in weblogic.servlet.jsp.Precompiler.java - it's looking for
              a classname with a single leading underscore (e.g. myjsp.class), but ejbc outputs
              classes with a double leading underscore (e.g. __my_jsp.class).
              I've done a patch for Precompiler.java, and now it all works as it ought to.
              simon.
              

  • Compiler error with forte 6.2 - assertion failed in sp_interface.cc

    I have a compilation error when compiling on my Ultra 10
    using Forte 6.2 C compiler (5.3). Here's the line:
    teds@enigma[195]% cc -xtarget=ultra3 -xarch=v8plusb -dalign -fns -fsimple=2 -ftrap=%none -xlibmil !!
    cc -xtarget=ultra3 -xarch=v8plusb -dalign -fns -fsimple=2 -ftrap=%none -xlibmil -xO4 -DCMO_DEBUG_DETAIL -DUSE_DATACONN -c cmoisubs.c -o cmoisubs.o
    cg: assertion failed in file ../src/ms_pipe/sp_interface.cc at line 689
    cg: Internal error: constval annotation set on reg with multiple defs
    cg: 1 errors
    cc: cg failed for cmoisubs.c
    teds@enigma[196]%
    Does anyone have any ideas?
    Thanks,
    Ted

    Hi There,
    Form the error message it seems like a bug in cg.
    Try the follwoing option and see if the bug goes away.
    -Qoption cg -O0 or use -Qms_pipe-off.
    Please refer C user's guide for usage.
    ....jagruti
    Developers Technical Support
    Sun Microsystems, http://www.sun.com/developers/support

  • Register 12 VerifyError exception when compiling jsp with that jsp tag!

              Hi everybody,
              We implemented a tag which is charged with a simple task like just "out.println"s,
              on production with WL5.1 SP11,jdk1.2.
              Then we got java.lang.VerifyError exception which is also denoted at Giuseppe Madonna's
              mail on ( http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6834&utag=
              ) that "java.lang.VerifyError: Register 12 contains wrong type"
              To be able to find the inconsistency in class files denoted at VerifyError exception,
              we delete the tmp dir. of web app resides in a war.
              Also the related java beans used in jsp tag and related jsp, are in a jar on our
              classpath and .tld file resides in the .war file of our web application.
              But also, I must define that it is our first tag implemented after we migrate to
              the .war file after the web application directory structure of same application(that
              old dir. also deleted), I know it is silly but, is it possible that WL can now refer
              to something related our previous directory structure of our app. like that old .tld
              file or classes?
              Or may it be related with the difference between jdk versions on the test and the
              production server?
              Any help will be really appreciated..
              Many thanks,
              Banu
              

              Start up weblogic with -
              java -noverify ....
              Mike
              "banu" <[email protected]> wrote:
              >
              >Hi everybody,
              >We implemented a tag which is charged with a simple task like just "out.println"s,
              >on production with WL5.1 SP11,jdk1.2.
              >
              >Then we got java.lang.VerifyError exception which is also denoted at Giuseppe
              >Madonna's
              >mail on ( http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6834&utag=
              >) that "java.lang.VerifyError: Register 12 contains wrong type"
              >
              >To be able to find the inconsistency in class files denoted at VerifyError
              >exception,
              >we delete the tmp dir. of web app resides in a war.
              >
              >Also the related java beans used in jsp tag and related jsp, are in a jar
              >on our
              >classpath and .tld file resides in the .war file of our web application.
              >
              >But also, I must define that it is our first tag implemented after we migrate
              >to
              >the .war file after the web application directory structure of same application(that
              >old dir. also deleted), I know it is silly but, is it possible that WL can
              >now refer
              >to something related our previous directory structure of our app. like that
              >old .tld
              >file or classes?
              >
              >Or may it be related with the difference between jdk versions on the test
              >and the
              >production server?
              >
              >
              >Any help will be really appreciated..
              >Many thanks,
              >Banu
              >
              

  • Can't compile client with client.jar

    I am unable to compile a static client using the standard client.jar produced by
    Weblogic. I am trying to do this in a minimal DOS environment as shown below:
    set PATH=d:\jdk1.3.1\bin
    set classpath=.;client.jar
    javac OssNodeWeblogicClient.java
    The compiler gives me the following error:
    client.jar(com/nyiso/oss/ossnode/OssNode.java):2:
    class OssNode is public, should be declared in a file named ossNode.java
    (source unavailable)
    1 error
    I was surprised to find two java files in client.jar (OssNode.java and OssNodeFactory.java).
    These files seem to confuse javac. If I remove these files from client.jar, the
    compilation completes without errors and the client runs without any problems.
    Has anyone seen this problem?

    Naresh,
    Just a quick follow-up. I used the -verbose option with
    javac and saw that when my compile failed, and I saw the same
    error message that you saw, javac was pulling the .java file
    from the jar file and trying to compile it. In the example I
    did that worked, the javac compiler was pulling the .class file
    from the jar file instead.
    Basically the javac compiler will fail trying to compile
    the .java file located in a jar file, probably because it can't
    write the .class file to the same (compressed) location. The
    reason that the javac compiler is trying to recompile the .java
    file, even though the .class file is also in the jar file, is
    that it has determined that the .java file is more up to date.
    So two questions for WebLogic:
    1) Why does WebLogic include the .java files in the jar
    file?
    2) Why doesn't the .java file match with the .class file?
    I'll let you know if/when I hear more. Rob
    "Naresh Bhatia" <[email protected]> wrote:
    >
    I am unable to compile a static client using the standard client.jar
    produced by
    Weblogic. I am trying to do this in a minimal DOS environment as shown
    below:
    set PATH=d:\jdk1.3.1\bin
    set classpath=.;client.jar
    javac OssNodeWeblogicClient.java
    The compiler gives me the following error:
    client.jar(com/nyiso/oss/ossnode/OssNode.java):2:
    class OssNode is public, should be declared in a file named ossNode.java
    (source unavailable)
    1 error
    I was surprised to find two java files in client.jar (OssNode.java and
    OssNodeFactory.java).
    These files seem to confuse javac. If I remove these files from client.jar,
    the
    compilation completes without errors and the client runs without any
    problems.
    Has anyone seen this problem?

Maybe you are looking for

  • ORA-32162: Read/Write SQL method not registered-for OTT

    I am trying this-- env = Environment::createEnvironment (Environment::OBJECT); RegisterClasses(env); conn = env->createConnection (user, passwd, db); RegisterClasses is my mapping function; But still I am getting this error at-- stmt->registerOutPara

  • 808 Belle FP2 gallery missing features

    Nokia 808 Belle FP2's gallery is still crippled. There is no way to organize photos into folders or tag them in any useful manner. And there no possibility to select multiple items for sharing etc. Gallery cannot zoom images that are downloaded to th

  • Apple sync notifie.exe entry point not found

    when boot pc or log in as one of my many users on the PC i get an error message: apple sync notifier.exe entry point not found the procedure point xml Text Reader Comst name coul dnot be located in the dynamic link library libxm12.dll

  • How to find if COLUMN DEFAULT VALUE is stored as metadata?

    Hello, I'm using Oracle 11g enhanced ADD COLUMN Functionality. Adding new columns with DEFAULT values and NOT NULL constraint no longer requires the default value to be stored in all existing records. Sometimes we change DB columns from NOT NULL with

  • Keynote iPad paper size change?

    I created a presentation in Keynote for iPad. When I print as PDF it is not 8.5x11. Is there a way to change this?