Simple JSP - error INOXQE6301

Application Version: 4.1.1.4
Tamino Version : 4.1.4.1
Platform : WinXP
WebContainer : Tomcat 4.1.30
JDK Version : 1.4.2

Hi,

I am experiencing problems trying to use a simple JSP files:
running the following JSP file, the following error occurs,
I really don’t understand its meaning as the same
XQuery works in active interface.
Can someone give me a clue, I am really a newbie on this :wink:
I am sure I do something wrong.
I am just trying to have a list off all my database record.

Error Message
-------------

Error message: StoreException occurred: read failed: for $x in input() return $x: NestedException:Tamino access failure (INOXQE6301, Runtime type exception)
Help message: An administrator should have a look to the stack trace to analyze the error.
Exception id: 161
Exception Type: MajorEnvironmentException
Stacktrace:


XException: id = 215 arg[0] = com.softwareag.xtools.xapplication.plugin.StandardWorkspacePlugin.readDocument arg[1] = read
Nested Exception (com.softwareag.tamino.db.api.common.TAccessFailureException, tag: Name: JavaTaminoAPI_4_1_2_41 ) stacktrace:



JSP file
--------


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>

<%@ page language=“java” contentType=“text/html; charset=UTF-8” errorPage=“Error.jsp”%>
<%@ taglib uri=“http://www.softwareag.com/xtools/xapplication” prefix=“xapp” %>


Title of your page




xapp:module
<xapp:form document=“Auteurs”>
<xapp:directcommand type=‘read’ collection=“auteurs” document=“Auteurs” arg=‘for $x in input() return $x’/>

</xapp:form>
</xapp:module>




Schema
------

<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition” xmlns:xs = “http://www.w3.org/2001/XMLSchema”>
xs:annotation
xs:appinfo
<tsd:schemaInfo name = “Auteur_schema”>
<tsd:collection name = “auteur”></tsd:collection>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = “Auteurs”>
xs:complexType
<xs:attribute name = “IdAuteur” type = “xs:integer” use = “required”></xs:attribute>
<xs:attribute name = “NomAuteur” type = “xs:string” use = “required”></xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

Hi!

Our error message is not very useful …

I’d first like to see if X-Application is installed properly: Can you run X-Application’s JSP example on your machine? If not, please send the full error message you get.

If the JSP examples work: is it possible to send your schema and jsp files? I’d try to reproduce the problem …

IMPORTANT: please post your reply to the X-Application Assistance forum.

Michael

Software AG Germany, Darmstadt