facebook

Assertion-Error

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #239128 Reply

    noob83
    Member

    Hello!

    I tried to include a jsp in another jsp. I used jsp:include page=”another.jsp”. But now I get the following message:
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Assertion-Fehler

    Somebody told me to deactivate assertions but I don’t know where to do it in MyEclipse.

    Can you help me?

    Thanks

    #239171

    Riyad Kalla
    Member

    Please paste the contents of both JSP pages.

    #239211

    noob83
    Member

    Home.jsp:

    <%@ page language=”java” %>
    <%@ taglib uri=”http://java.sun.com/jsf/html&#8221; prefix=”h” %>
    <%@ taglib uri=”http://java.sun.com/jsf/core&#8221; prefix=”f” %>
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>

    <html>
    <head>
    <title>Task DB bearbeiten</title>
    </head>

    <body>

    <f:view>
    <f:subview id=”Links”>
    <h:form id=”Links”>
    <jsp:include page=”Links.jsp” />
    </h:form>

    </f:subview>

    <h:form id=”Welcome”>
    <h:outputText value=”Herzlich Willkommen!”/>
    <h:outputText value=”Bitte wählen sie einen Link aus.”/>

    </h:form>

    </f:view>
    </body>
    </html>

    Links.jsp:

    <%@ page language=”java” %>
    <%@ taglib uri=”http://java.sun.com/jsf/html&#8221; prefix=”h” %>
    <%@ taglib uri=”http://java.sun.com/jsf/core&#8221; prefix=”f” %>
    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>

    <html>
    <body bgcolor=”#00FF80″ text=”#000000″ link=”#A00000″ vlink=”#600000″ alink=”#A00000″>

    <f:view>

    <h:form id=”Links”>
    <f:verbatim><br></f:verbatim>
    <h:outputText value=”Bitte wählen Sie einen Link:”/>
    <f:verbatim><br></f:verbatim>
    <f:verbatim><br></f:verbatim>
    <h:commandLink action=”newTask” value=”Task anlegen” />
    <f:verbatim><br></f:verbatim>
    <h:commandLink action=”deleteTask” value=”Task löschen” />
    <f:verbatim><br></f:verbatim>
    <h:commandLink action=”newLocation” value=”Location anlegen” />
    <f:verbatim><br></f:verbatim>
    <h:commandLink action=”deleteLocation” value=”Location löschen” />
    <f:verbatim><br></f:verbatim>

    </h:form>
    </f:view>

    </body>
    </html>

    #239243

    Riyad Kalla
    Member

    I was unable to reproduce this problem, can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #239302

    noob83
    Member

    Thank you very much for your help!

    I hope this is everything you need:

    What operating system and version are you running?:
    Windows XP

    What Eclipse version and build id are you using?
    Eclipse SDK
    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse was freshly installed. Then I tried to install sysdeo Tomcat Plugin but it didn’t work. So I decided to install myEclipse.

    How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*?
    Two:
    org.eclipse.pde.
    org.eclipse.pde.source

    What MyEclipse version are you using? Version: 4.0.0
    Build id: 20050829-4.0.0-GA
    (30-day trail version)

    JDK version:
    jdk1.5.0_04

    What application server are you using?
    Tomcat 5.5.11

    Are there any exceptions in the Eclipse log file?
    Parts of the log file:

    !SESSION 2005-10-13 07:17:17.449 ———————————————–
    eclipse.buildId=I20050627-1435
    java.version=1.5.0_04
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_DE
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.update.configurator 2005-10-13 07:54:25.643
    !MESSAGE Can’t find bundle for base name feature, locale en_DE

    !ENTRY org.eclipse.update.configurator 2005-10-13 07:54:25.684
    !MESSAGE Can’t find bundle for base name feature, locale en_DE

    !ENTRY org.eclipse.ui 4 0 2005-10-13 07:59:45.543
    !MESSAGE Warning: Detected recursive attempt by part com.genuitec.eclipse.webdesigner.jsp to create itself (this is probably, but not necessarily, a bug)
    !STACK 1
    org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part com.genuitec.eclipse.webdesigner.jsp to create itself (this is probably, but not necessarily, a bug)

    !SUBENTRY 1 org.eclipse.ui 4 0 2005-10-13 07:59:45.543
    !MESSAGE Warning: Detected recursive attempt by part com.genuitec.eclipse.webdesigner.jsp to create itself (this is probably, but not necessarily, a bug)

    !ENTRY com.genuitec.eclipse.core 1 0 2005-10-13 07:59:48.678
    !MESSAGE Unable to locate .myeclipse.properties file

    !ENTRY com.genuitec.eclipse.wdt.jsp.debug 1 1 2005-10-13 08:01:40.739
    !MESSAGE
    Oct 13, 2005 8:01:40 AM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Javac exception
    Error running javac.exe compiler
    at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:473)

    Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
    — Nested Exception —
    java.io.IOException: CreateProcess: javac.exe -classpath
    Oct 13, 2005 8:01:40 AM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Env: Compile: javaFileName=/C:/DOKUME~1/Missy/LOKALE~1/Temp/myeclipse-jspcc//org/apache/jsp\index_jsp.java

    I hope this is enough information for you.

    #239319

    Riyad Kalla
    Member

    Caused by: java.io.IOException: CreateProcess: javac.exe -classpath
    — Nested Exception —
    java.io.IOException: CreateProcess: javac.exe -classpath
    Oct 13, 2005 8:01:40 AM com.genuitec.eclipse.wdt.jsp.jasper.compiler.Compiler ?
    SEVERE: Env: Compile: javaFileName=/C:/DOKUME~1/Missy/LOKALE~1/Temp/myeclipse-jspcc//org/apache/jsp\index_jsp.java

    First things first, to fix this you need to add javac.exe to your System PATH, then restart MyEclipse.

    How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*?
    Two:
    org.eclipse.pde.
    org.eclipse.pde.source

    This is odd, you should see 4… did you use the Eclipse SDK (110mb or so) or the PDE install?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Assertion-Error

You must be logged in to post in the forum log in