SS12.2 unable to compile a scientific lib (works with g++)

Hi,
I would like to compile the palabos library (Parallel Lattice Boltzmann Solver). I've got thos erreurs with solstudio 12.2 (Sun X4600 with linux CentOS 5.5) :
CC -o cylinder2d.o -c -library=stlport4 -features=tmplife -features=tmplrefstatic -O3 -DPLB_USE_POSIX -I/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src -I/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/externalLibraries cylinder2d.cpp
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/core/blockIdentifiers.h", line 119: Warning: Identifier expected instead of "}".
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/core/dynamicsIdentifiers.hh", line 123: Error: A previously specified default argument value cannot be changed.
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/externalLibraries/Eigen/src/Core/CacheFriendlyProduct.h", line 41: Error: Eigen::ei_cache_friendly_product<Eigen::Scalar>(int, int, int, bool, const Eigen::Scalar*, int, bool, const Eigen::Scalar*, int, bool, Eigen::Scalar*, int) was previously declared "extern", not "static".
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/multiBlock/multiBlockGenerator2D.hh", line 79: Error: A previously specified default argument value cannot be changed.
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/multiBlock/multiBlockGenerator2D.hh", line 309: Error: A previously specified default argument value cannot be changed.
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/multiBlock/multiBlockGenerator2D.hh", line 543: Error: A previously specified default argument value cannot be changed.
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/dataProcessors/metaStuffFunctional2D.hh", line 156: Warning (Anachronism): Type names qualified by template parameters require "typename".
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/core/dynamics.h", line 588: Warning: plb::BounceBack<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>::rescale hides the virtual function plb::Dynamics<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>::rescale(int, int).
"cylinder2d.cpp", line 164:     Where: While specializing "plb::BounceBack<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>".
"cylinder2d.cpp", line 164:     Where: Specialized in non-template code.
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/basicDynamics/isoThermalDynamics.h", line 102: Warning: plb::IsoThermalBulkDynamics<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>::rescale hides the virtual function plb::Dynamics<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>::rescale(int, int).
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/basicDynamics/isoThermalDynamics.h", line 106:     Where: While specializing "plb::IsoThermalBulkDynamics<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>".
"/home/jobic/projet/Portflo/palablos/palabos-v0.7r2/src/basicDynamics/isoThermalDynamics.h", line 106:     Where: Specialized in plb::BGKdynamics<double, plb::descriptors::D2Q9Descriptor<plb::descriptors::T>>.
"cylinder2d.cpp", line 207:     Where: Specialized in non-template code.
5 Error(s) and 4 Warning(s) detected.As you can see, i used thoses options :
-library=stlport4 -features=tmplife -features=tmplrefstatic
Anybody has ever seen this kind of problm ?
It's working fine with g++, but i would like to use solstudio.
Is there a workaround ?
Thanks in advance for help,

Here is the prototype :
template<typename T, template<typename U> class Descriptor>
std::string constructIdNameChain(std::vector<int> const& ids, std::string separator=".");And the function itself :
template<typename T, template<typename U> class Descriptor>
std::string constructIdNameChain(std::vector<int> const& ids, std::string separator=".")
   std::string nameChain;
   if (ids.size()>0 && ids[0]>=0) {
       nameChain += dynamicsRegistration<T,Descriptor>().
                        getName(ids[0]);
   for (pluint i=1; i<ids.size(); ++i) {
       if (ids>=0) {
nameChain += separator;
nameChain += dynamicsRegistration<T,Descriptor>().
getName(ids[i]);
return nameChain;
it seems a different case.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Unable to make Port Replicator 43R8770 work with T400

    I have a relatively new (four months old) T400 ThinkPad running on Windows XP SP3, and I have been unable to get the Port Replicator to work at all with it.  I am attempting to simply mirror my notebook display on a larger monitor, and have installed the latest driver for the replicator from the Lenovo website.  The system tray icon for the replicator never appears, even after installing and uninstalling the driver, and so I am unable to get the two monitors to mirror each other. 
    The only indication I have that something is wrong is during the driver install I receive an "Application Error" message for some file labeled ed_16208.exe.  I know that the Port Replicator works fine, as I have been using it for the last four months with an older T42 notebook running on XP SP2.
    The Lenovo phone rep was completely unable to help me.  His only suggestion was that it must be that the replicator doesn't work with SP3, since it worked with SP2 on the older model, and that I shouldn't have had Windows automatic updates turned on.  (I'm serious.)  I reminded him that Lenovo shipped the new T400 to me with SP3 installed, and his response was that it was therefore a Microsoft problem and that I should try to roll the notebook back to SP2.  At that point I told him I might as well just use the replicator as a door stop.
    I am completely frustrated.

    An update.  I was able to get the Lenovo Display Adapter system tray icon to appear.  However, I can't adjust the settings on it to get it to mirror, and when I attempt to do so there is an error message on the icon for the Lenovo Display Adapter that states "Change Display Settings Failed: Bad mode while setting \\.  \DISPLAYV1 enabled in registry"
    Does anyone have any ideas?

  • Unable to compile module for Intel VTUNE with 3.16.4-1 kernel

    I am currently running  3.16.4-1-ARCH #1 and I tried to compile the kernel module for Intel Vtune XE 2013 (r17).
    Unluckily, GCC stops reporting the following errors:
    /opt/intel/vtune_amplifier_xe_2013/sepdk/src/vtsspp/collector.c: In function ‘vtss_target_new’:
    /opt/intel/vtune_amplifier_xe_2013/sepdk/src/vtsspp/collector.c:985:35: error: ‘VSYSCALL_START’ undeclared (first use in this function)
    addr = (unsigned long)VSYSCALL_START;
    ^
    /opt/intel/vtune_amplifier_xe_2013/sepdk/src/vtsspp/collector.c:985:35: note: each undeclared identifier is reported only once for each function it appears in
    /opt/intel/vtune_amplifier_xe_2013/sepdk/src/vtsspp/collector.c:986:36: error: ‘VSYSCALL_MAPPED_PAGES’ undeclared (first use in this function)
    size = (unsigned long)(VSYSCALL_MAPPED_PAGES * PAGE_SIZE)
    As the source code points out:
    #include <asm/fixmap.h> /* VSYSCALL_START */
    The missing symbols are expected to be found under /usr/lib/modules/3.16.4-1-ARCH/build/arch/x86/include/asm/fixmap.h, but it seems that they are not present anymore.
    Grepping the headers could not help at all.
    What am I missing here ?

    It looks like the macros:
    VSYSCALL_START
    VSYSCALL_SIZE
    VSYSCALL_END
    VSYSCALL_MAPPED_PAGES
    got dropped after v3.15
    I wonder if I need to downgrade.

  • Unable to get Bluetooth Headset Profile working with mic on Toshiba BT Stac

    Hi.
    I am having problems using my Motorola HT-820 Stereo headset, with the Toshiba Bluetooth Stack installed on Vista Home Premium 32bit laptop.
    I am unable to get the mic to function at all, so cannot use it for Skype / VOIP calls etc. Features such as the A2DP and AVRCP work fine, and I can listen to music via media player without issues.
    I have read in a FAQ on this site, to make sure I use the Custom Setup option rather than Express Setup when adding the device, but it doesnt seem to make any difference, am I missing a step here?
    In the Windows Recording device properties, I can see the option listed for Bluetooth Mic, but even setting it as the default device doesnt work.
    I know from connecting my headset to my Desktop PC which uses the Widdcom bluetooth stack, that i can use the Headset/mic function, but this stack seems to work differently, as in I can select the headset option within the bluetooth settings, but I cannot see such an option withing the Toshiba stack - and i think this is where the problem is.
    I have updated to the latest Toshiba stack from this web site, but this has not helped any.
    Any help here would be appreciated.
    Regards
    Matt
    Message was edited by: Toxyturvy - Bad spelling

    Hello Matt
    Unfortunately I can not help you with this but if I am remembering well here on BT section someone already asked something similar. Please take a little bit time and check BT section on this forum.
    You can also visit FAQ section on http://aps2.toshiba-tro.de/bluetooth/
    Maybe will find something there.
    Good luck!

  • Unable to get my webcam to work with Skype

    Bought a Logitech webcam chat and downloaded the driver from macam - it works fine (at least I can see myself in my monitor!), but cannot get it to work with Skype. In the Skype prefs there is no camera listed, and it shows a black screen.
    I have been in contact with Skype techs, and have had several goes at fixing the problem. The latest, and what prompted the request for help regarding library folders, was the suggestion to delete all Skype files and download the latest version and do a clean install. This was when I found out all the duplication of files in the various folders. I am the only user of this computer - do I really need this folder, the one that looks like a house titled with my name? BTW, desktop folder in my hard drive is empty - the desktop folder in the house has the desktop files!
    I'm confused
    Thanks for any advise

    Hi again, Dodger. YES, you certainly do need your Home folder! NEVER delete that! It contains everything that your computer knows about your user account. Without it, you would have no access to the computer or any of your music, pictures, movies, documents, passwords, etc.,
    You really need to stop looking for parts of OS X to do away with. OS X isn't like OS 9: you can't expect to understand what each of its hundreds of thousands of parts is for. If your hard drive is too small and you're trying to make more space on it, get a bigger drive instead.
    Sorry I can't help you with the main question — I know nothing about Skype or webcams.

  • Unable to hear ringer.  Does work with headphones.

    I have the iPhone 5.  All of a sudden, I cannot hear the phone ring.  I can only hear it when I plug in the headphones.  I have checked all the sound settings, vibrate, etc.  Nothing seems to be getting it to work.  The odd thing is that the speaker works fine when I play music. 
    Please tell me what I can try, thanks.

    After posting this I felt really silly.  Yes, the silent switch was enabled. 
    Grrrr.   Thanks. 

  • Unable to compile servlet files in javac

    i am unable to compile servlet *.java files in javac.as far as i can see my path is correct.
    Kindly provide a solution as soon as possible.
    My jdk1.3 is in my c drive and my tomcat in my d drive.
    if you are able to compile kindly let me know your path.
    it says symbol not resolved.i think that it is unable to import from javax

    Assuming that your jdk is in c drive as c:\jdk1.3 set the path and the classpath like as shown below. Remember that you have to set the classpath for the classes in the javax.servlet and javax.servlet.http packages. I know how to do it for JavaWebServer. JavaWebServer has a jar called servlet.jar that contains all these classes. What you need to do is to put this jar file in your classpath. There will be a similar jar file for Tomcat server also. You need to refer the Tomcat server documentation for that.
    The path and the classpath have to be set like this...
    d:\>path=%path%;.;c:\jdk1.3\bin;
    d:\>set classpath=%classpath%;.;c:\jdk1.3\lib;c:\JavaWebServer2.0\lib\servlet.jar;
    assuming tht JWS is installed in c:\JavaWebServer2.0
    Also note that there should be no spaces in between while setting the classpath. In your case you have to change the last part of the classpath to customize your requirement.
    Hope that will help.
    Regards
    Jaydeep

  • Unable to compile class for JSP. apache-tomcat-6. What could be wrong?

    Hello, I am new to JSP and I am trying a very basic jsp and class file on Windows XP. I get the Unable to compile class for JSP.
    Steps that I have done:
    javac ch06_01.java , placed the ch06_01.class under
    C:\Apps\apache-tomcat-6.0.16\webapps\ch06\WEB-INF\classes
    Then grabbed the ch06_02.jsp and placed it under
    C:\Apps\apache-tomcat-6.0.16\webapps\ch06\
    When I run it (by placing this into Explorer or Firefox URL
    http://localhost:8080/ch06/ch06_02.jsp) I get the error further
    below. Things I have done and made sure they are in place are:
    set up JAVA_HOME to C:\Apps\jdk1.6.0_06
    Using CATALINA_BASE: C:\Apps\apache-tomcat-6.0.16
    Using CATALINA_HOME: C:\Apps\apache-tomcat-6.0.16
    Using CATALINA_TMPDIR: C:\Apps\apache-tomcat-6.0.16\temp
    Using JRE_HOME: C:\Apps\jre1.6.0_06
    I did a google on the error and I found people saying to place the
    tools.jar from the jsk into the lib directory under CATALINA_HOME. But
    the examples still don't work. What step could I be missing? Your help is greatly
    appreciated.
    This is the simple jsp file:
    <%@ page import="ch06_01" %>
    <HTML>
    <HEAD>
    <TITLE>Using a JavaBean</TITLE>
    </HEAD>
    <BODY>
    <H1>Using a JavaBean</H1>
    <% ch06_01 messager = new ch06_01(); %>
    The message is: <%= messager.msg() %>
    </BODY>
    </HTML>
    this is the simple ch6_01 java file:
    public class ch06_01
    public ch06_01()
    public String msg()
    return "Hello from JSP!";
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented
    it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    The import ch06_01 cannot be resolved
    An error occurred at line: 9 in the jsp file: /ch06_02.jsp
    ch06_01 cannot be resolved to a type
    6: <BODY>
    7: <H1>Using a JavaBean</H1>
    8:
    9: <% ch06_01 messager = new ch06_01(); %>
    10:
    11: The message is: <%= messager.msg() %>
    12:
    An error occurred at line: 9 in the jsp file: /ch06_02.jsp
    ch06_01 cannot be resolved to a type
    6: <BODY>
    7: <H1>Using a JavaBean</H1>
    8:
    9: <% ch06_01 messager = new ch06_01(); %>
    10:
    11: The message is: <%= messager.msg() %>
    12:
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:316)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Edited by: indikon1 on Jun 12, 2008 1:18 PM
    I just updated the directories of the variables to reflect the current status of my system.

    What is wrong is that you are using an "old" jsp tutorial :-)
    Since Java 1.4, JSPs have been unable to access classes in the "default" package.
    What you need to do:
    Put the java class ch06_01 in a package.
    Steps to do this
    - Edit ch06_01 and add the following to the very top of the file (without the quotes): "package mypackage;"
    - create a folder "mypackage"
    - move ch06_01.java into that folder
    - compile that class (now in the mypackage package)
    - place ch06_01.class under C:\Apps\apache-tomcat-6.0.16\webapps\ch06\WEB-INF\classes\mypackage
    In your jsp:
    <%@ page import="mypackage.ch06_01" %>
    I would suggest using a more up-to-date tutorial that uses JSTL.
    Take a look at this [Apache Tomcat tutorial|http://www.coreservlets.com/Apache-Tomcat-Tutorial/index.html]

  • Unable to compile Pro C file in windows

    Hi
    I have installed oracle 11g rel1 in windows XP. But the problem is i am unable to compile Pro C file to produce executable. It is able to convert pro c file to .c file. But not able to produce any executable. My installation did not installed pro c GUI either. nor any demo file of pro c is available under precomp/ folder. Has this installation gone wrong or how can i produce executable?
    Thanks
    Sas

    y dont u try this...i m not sure if its a right way to do things, but seems like it can work
    $ORACLE_HOME/bin/proc test.pc
    cc -I${ORACLE_HOME}/precomp/public -c test.c
    do : find /cisa -name "*clntsh*" -print
    say u get sumthing lyk this
    $ORACLE_HOME/lib32/libclntsh.so.10.1
    // instead of this:
    cc -o test test.c -L $ORACLE_HOME/lib -lclntsh
    write:
    cc -o test test.c -L $ORACLE_HOME/lib $ORACLE_HOME/lib32/libclntsh.so.10.1
    so u r directly refering to the library while linking

  • Org.apache.jasper.JasperException: Unable to compile class...

    Dear all,
    I've used java.util.List in my jsp, but when I import the package into the jsp, the following error occurs, please help:
    Type: Exception Report
    Message: Internal Server Error
    Exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\Sun\AppServer7\domains\domain1\server1\generated\jsp\j2ee-modules\EmailTracker2\_jasper\_index_jsp.java:14: class jasper.index_jsp must be declared abstract. It does not define java.util.List getIncludes() from class org.apache.jasper.runtime.HttpJspBase.
    public class indexjsp extends HttpJspBase {
    ^
    1 error, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:641)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:501)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:322)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

    Hi,
    I am using J2EE SDK 1.4 Server and deployed a Stateless Session Bean and used a JSP page as Web Deployment component. When I deploy the application no error is given but when I access application using the given web context name the following error is displayed on the browser.
    type Exception report
    message
    description The server encountered an internal error () that prevented
    it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually
    $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and
    access path.
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
    org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    Can anyone tell me why this error could be generated? I've given the JAVA_HOME environment variable value as C:\Sun\AppServer\jdk and J2EE_HOME variable value as C:\Sun\AppServer.

  • Unable to compile JSP in Java Server

    Hi:
    I have installed Java Application Server Platform Edition 8 locally and attempting to run an application with a JSP. However, when it attempts to compile the JSP, I get the following message:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    I thought that Tomcat came with the implementation of the JAVA server. If so, why am I getting this message? Do I have to also install Tomcat separately? If yes, is there anything I need to know about port conflicts? Java Server is currently using 8080 for HTTP. Please advise as to how I can resolve this problem.

    Hi,
    You may want to search this forum using the search term "Unable to compile class for JSP" you will get many hits and some suggestions on what may be the issue.
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=J2EE+Software+Development+Kit+%28J2EE+SDK%29&qp=forum%3A136&qt=Unable+to+compile+class+for+JSP

  • Unable to compile class for JSP.       package not found

    Hello folks,
    I was trying to build a simple web application using Eclipse IDE, tomcat 5.x server and ant to build and deploy the application.
    I referenced the following tutorial:
    http://www.onjava.com/pub/a/onjava/2003/01/08/tomcat4.html
    I was able to create a war file, deploy it in tomcat. When i invoke a simple jsp it works fine. However if I try to import any source pkg into jsp it throws error. Below is stack trace.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    C:\tomcat\work\Catalina\localhost\aweb\org\apache\jsp\web\Home_jsp.java:6:
    package com.ak.test does not exist
    import com.ak.test.*;
    ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
         org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
         org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994)
         org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:343)
         org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:553)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:211)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Any clue what is the issue?

    Additional Info:
    Location of files
    ==================
    My jsp file is located at:
    C:\eclipse\workspace\aweb\web\Home.jsp
    my class is located in:
    C:\eclipse\workspace\aweb\WEB-INF\classes\com\ak\test
    Webapplication Dir Structure:C:\eclipse\workspace:
    aweb(webapplication name)
    +web
    -----+Home.jsp
    +src
    ------+com.ak.test.MyJava.java
    +WEB-INF
    ------+Classes
    --------+com.ak.test.MyJava.class
    ------+lib
    ----------struts.jar
    ------+web.xml
    ------+struts-config.xml
    -aweb.war(build.xml creates war file as per WAR format)
    Ant task which installs the webapplication in Tomcat:
    <target name="install" description="Installs the Web Application" depends="package">
    <echo message="Installing ${app.name} ..."/>
    <install url="${manager.url}" username="${username}" password="${password}" path="/${app.name}"
    config="file:${basedir}/war/META-INF/context.xml" war="file:${basedir}/${app.name}.war"/>
    </target>
    build.properties file
    app.name=aweb
    manager.url=http://localhost:8080/manager
    tomcat.home=C:/tomcat
    username=user
    password=user
    Contents of the jsp file
    =======================
    <%@ page import="com.ak.test.MyJava" %>
    <html>
    <head>
    <title>Home Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    </body>
    </html>

  • Suddenly unable to compile glib2 for mingw32

    I maintain the mingw32-glib2-* packages in AUR and after modifying the PKGBUILD for mingw32-glib2 (conforming to MinGW PKGBUILD guidelines and properly quoting URLs/paths), I find myself unable to compile it fully, with the following error:
    Traceback (most recent call last):
    File "../../../gio/gdbus-2.0/codegen/gdbus-codegen", line 41, in <module>
    sys.exit(codegen_main.codegen_main())
    File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/codegen_main.py", line 171, in codegen_main
    parsed_ifaces = parser.parse_dbus_xml(xml_data)
    File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/parser.py", line 289, in parse_dbus_xml
    parser = DBusXMLParser(xml_data)
    File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/parser.py", line 57, in __init__
    self._parser.Parse(xml_data)
    File "/home/christian/Downloads/mingw32-glib2/src/glib-2.30.2/gio/gdbus-2.0/codegen/parser.py", line 155, in handle_start_element
    if attrs.has_key('name') and self.doc_comment_last_symbol == attrs['name']:
    AttributeError: 'dict' object has no attribute 'has_key'
    make[6]: *** [gdbus-example-objectmanager-generated.h] Error 1
    Here is the current PKGBUILD (unsubmitted):
    pkgname=mingw32-glib2
    pkgver=2.30.2
    pkgrel=4
    arch=(any)
    pkgdesc="Common C routines used by GTK+ 2.4 and other libs (mingw32)"
    depends=(mingw32-runtime mingw32-gettext mingw32-zlib mingw32-libffi)
    makedepends=(mingw32-gcc python2)
    license=(LGPL)
    options=(!strip)
    url="http://www.gtk.org/"
    source=("http://ftp.gnome.org/pub/GNOME/sources/glib/2.30/glib-$pkgver.tar.xz")
    sha256sums=('f0e91e6333321ddb48fa12b5c66f56c3d5f05325748c66dd2e9016c278ff8e82')
    build()
    cd "$srcdir/glib-$pkgver"
    cat > win32.cache << EOF
    glib_cv_long_long_format=I64
    glib_cv_stack_grows=no
    EOF
    export CFLAGS="-O2 -pipe -march=i686 -mms-bitfields"
    export CPPFLAGS="-D_REENTRANT"
    export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig"
    unset PKG_CONFIG_PATH
    unset LDFLAGS
    PYTHON="/usr/bin/python2"
    ./configure \
    --prefix=/usr/i486-mingw32 \
    --host=i486-mingw32 \
    --cache-file=win32.cache \
    --with-threads=win32
    make
    package() {
    cd "$srcdir/glib-$pkgver"
    make DESTDIR="$pkgdir" install
    cd ${pkgdir}
    rm -rf usr/i486-mingw32/{share/{gtk-doc,man},lib/charset.alias}
    rm $pkgdir/usr/i486-mingw32/lib/*.def
    i486-mingw32-strip $pkgdir/usr/i486-mingw32/bin/*.exe
    i486-mingw32-strip -x $pkgdir/usr/i486-mingw32/bin/*.dll
    i486-mingw32-strip -g $pkgdir/usr/i486-mingw32/lib/*.a
    I appreciate any help I can get. Thanks!
    EDIT: Fixed!
    Last edited by Schala (2012-03-12 08:40:18)

    I don't know if it is the same probleme you had but may be it will help you.
    You need to add a path and a classpath to variables and class you are using (for example sevlet.*) in autoexec.bat or in environment variables if you are using NT or Windows 2000.

  • Unable to compile class for JSP: import ...

    Hi everybody!
    I've tried to change from Servlet to JSP. The Servlet used a package und compiled fine under NB 4.1.
    When the JSP is compiled on the Server (Sun Java System Application Server Platform Edition 8 2004Q4 Beta) the following error occurs:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    [javac] D:\Programme\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules\NR_Java4Web1\org\apache\jsp\DisplayingDatabaseRecords_jsp.java:44: illegal start of expression
    [javac] import de.conus.util.DBUtil.*
    [javac] ^
    Do I have to place the classfile manually on the server?
    Thanks for your help,
    Michael

    All import-statements where of the same kind. I had to place trhe classfiles
    at the application server under lib\classes. Now it works
    Thanks

  • Unable to compile servlets

    I am unable to compile a java servlet program.
    the message thrown ou by the compiler is
    "Class java.servlet not found in import"

    You need to find where the servlet.jar file is on your system. For example i'm running tomcat on a linux machine, this is what i type to compile servlets.
    javac -classpath /var/tomcat4/common/lib/servlet.jar yourFile.java

Maybe you are looking for

  • Is a cracked imac screen fixable?

    My kids knocked over a heavy picture frame off a shelf above where my imac sits.  it now has damage to about a 1/4" space right on the top, middle, near the camera.  The camera still works but the glass is chipping and I'm worried it'll chip further

  • Upgrade of CS3-CS5 from old Macs to new Macs...

    Hi there, We currently have four Macs all running CS3. We are looking to buy two new machines to replace two of these (for the faster operators). I want to hold on a bit for CS5 to be released and then upgrade. How do i go about the changeover? Do i

  • Can't sync photos from iPhone to PC

    About two weeks ago my iPhone stopped syncing pictures to my PC. I've tried deleting the iPod photo cache, restarting, and restoring. Nothing. Any ides?

  • Unmarshal Exception problem

    I am working on a system in which a web server calls methods via RMI to a mini-application server. When we try to call the RMI method, we get this exception: Exception at time Tue Oct 28 12:29:42 EST 2003 java.rmi.ServerException: RemoteException occ

  • Macbook, no screen activity.

    I just got back and switched my Macbook on, and there is no screen activity. The laptop was working fine last night, but now nothing. When i put the charger in. It goes like it usually does, green for a few seconds and then orange to show that it is