You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Ehms, Jürgen" <jg...@msc-ge.com> on 2002/04/11 16:20:40 UTC
[Problem]sendmail - reference to Session is ambiguous
Hallo
I also like to use sendmail in my XSP but if I put only in my Head
<xsp:page language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:esql="http://apache.org/cocoon/SQL/v2"
xmlns:xsp-session="http://apache.org/xsp/session/2.0"
xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0">
I got always the error:
reference to Session is ambiguous, both class javax.mail.Session in package
javax.mail and interface org.apache.cocoon.environment.Session in package
org.apache.cocoon.environment
XSP-Gererator automaticly generates:
/**
* Generate XML data.
*/
public void generate() throws SAXException, IOException,
ProcessingException {
Session session = request.getSession(true);
and not
org.apache.cocoon.environment.Session session =
request.getSession(true);
How can I resolve this Problem in this Packages.
regards
Juergen
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: [Problem]sendmail - reference to Session is ambiguous
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Ehms, Jьrgen [mailto:jge@msc-ge.com]
>
> Hallo
>
> I also like to use sendmail in my XSP but if I put only in my Head
>
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp"
> xmlns:esql="http://apache.org/cocoon/SQL/v2"
> xmlns:xsp-session="http://apache.org/xsp/session/2.0"
> xmlns:sendmail="http://apache.org/cocoon/sendmail/1.0">
>
> I got always the error:
>
> reference to Session is ambiguous, both class javax.mail.Session in
package
> javax.mail and interface org.apache.cocoon.environment.Session in
package
> org.apache.cocoon.environment
>
> XSP-Gererator automaticly generates:
>
> /**
> * Generate XML data.
> */
> public void generate() throws SAXException, IOException,
> ProcessingException {
>
>
> Session session = request.getSession(true);
>
> and not
>
> org.apache.cocoon.environment.Session session =
> request.getSession(true);
>
>
>
> How can I resolve this Problem in this Packages.
This seems like a bug in the sendmail logicsheet. Change sendmail
logicsheet so it does not imports JavaMail session, but uses fully
qualified name.
PS You could send a patch when/if you fix
Vadim
>
> regards
>
> Juergen
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>