Re: URGENT HELP NEEDED: Error message

From: Giovanni Azua <bravegag_at_hotmail.com>
Date: Sat, 8 Jun 2002 00:08:21 +0300
Message-ID: <adrb8h$1o122$1_at_ID-114658.news.dfncis.de>


Ahh ;-)

Just to add, visit
http://www.oracle.com/forums/forum.jspid=315684&pgm=otn&uid=1023486622935

to get further assiance, there is a forum dedicated to JDeveloper with great feedback.

Best Regards,
Giovanni

"Michael Klemm" <simiklem_at_cip.informatik.uni-erlangen.de> wrote in message news:3CFF8181.6010904_at_cip.informatik.uni-erlangen.de...
> Hi there,
>
> I'm writing a web application with JDeveloper 9i and Oracle 9iAS R2.
> Everythings fine: I wrote one servlet which which runs with out
> problems. JSPs is also fine. Now I have some EJB (a session bean). If I
> use the OJSP tag EJB:useBean in one of my JSPs I get the follwing error
> message from JDeveloper:
>
> Error(16): oracle.xml.parser.v2.XMLParseException: Invalid element
> 'servlet-mapping' in content of 'web-app', expected elements
> '[mime-mapping, welcome-file-list, error-page, taglib, resource-ref,
> security-constraint, login-config, security-role, env-entry, ejb-ref]'
>
> Here's my web-app.xml which is OK if I do not use the EJB:useBean tag:
>
> <?xml version = '1.0' encoding = 'ISO-8859-1'?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
> <description>Empty web.xml file for Web Application</description>
> <servlet>
> <servlet-name>Dispatch</servlet-name>
>
> <servlet-class>de.fau.cs.immd6.sa.klemm.servlets.Dispatch</servlet-class>
> </servlet>
> <session-config>
> <session-timeout>30</session-timeout>
> </session-config>
> <servlet-mapping>
> <servlet-name>Dispatch</servlet-name>
> <url-pattern>/Dispatch</url-pattern>
> </servlet-mapping>
> <mime-mapping>
> <extension>html</extension>
> <mime-type>text/html</mime-type>
> </mime-mapping>
> <mime-mapping>
> <extension>txt</extension>
> <mime-type>text/plain</mime-type>
> </mime-mapping>
> <welcome-file-list>
> <welcome-file>index.jsp</welcome-file>
> <welcome-file>index.html</welcome-file>
> </welcome-file-list>
> <taglib>
>
> <taglib-uri>http://xmlns.oracle.com/jsp/taglibs/ejbtaglib.tld</taglib-uri>
> <taglib-location>/WEB-INF/lib/ejbtaglib.jar</taglib-location>
> </taglib>
> <ejb-ref>
> <ejb-ref-name>Registrator</ejb-ref-name>
> <ejb-ref-type>Session</ejb-ref-type>
> <home>de.fau.cs.immd6.sa.klemm.ejb.session.home.Registrator</home>
>
> <remote>de.fau.cs.immd6.sa.klemm.ejb.session.remote.Registrator</remote>
> </ejb-ref>
> </web-app>
>
> If I delete the sections before <ejb-ref>...</ejb-ref> everything is
> fine except an error message that the bean is not found.
>
> Can any body help me?
>
> Thanks a lot!
>
> Regards
> -michael
>
Received on Fri Jun 07 2002 - 23:08:21 CEST

Original text of this message