Re: URGENT HELP NEEDED: Error message

From: Michael Klemm <simiklem_at_cip.informatik.uni-erlangen.de>
Date: Sat, 08 Jun 2002 00:35:26 +0200
Message-ID: <3D01352E.8080605_at_cip.informatik.uni-erlangen.de>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Thanks a lot for your assistance! I will try your suggestion tomorrow since I do not have access to the machine right now.

Regards

        -michael

Giovanni Azua wrote:
| Hello Michael,
|
| I have had a similar problem but mine was because of
| a tag library I implemented, adding an URI in
| the JSP "taglib" which is defined as a mapping in the
| web.xml gets exactly the same error you are
| getting.
|
| Ignoring of the error I packed the whole ear thing
| and worked properly in both embedded and standalone
| OC4J servers, my guess is that JDeveloper doesn't do
| a smart job finding URI's mapped in the web.xml.
|
| I even tried defining the taglib in the JSPs components
| palette but the compilation error remained the same.
| To try it goto Tools->Configure Palette->Add Page
| and finally "Add Component" selecting the just created
| page. There you should be able to add your bean and
| make it available to your project JSPs, even though I
| don't have too much hope this will help, give it a shot
| anyway.
|
| Package and try to run it,
| Good luck,
| 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
|>
|
|
|

  • -- Es gibt zwei Grundsätze für Erfolg und Glück: 1. Erzähle anderen nicht alles, was du weißt.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9ATUuGawbKfMwXV0RAhVCAJ94ty5uJBgkm4CBugKPWirTVMQ+CwCfRG/o rnS9UoQyTQFl0f+TuLDqEPo=
=NgOT
-----END PGP SIGNATURE----- Received on Sat Jun 08 2002 - 00:35:26 CEST

Original text of this message