cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom.klaa...@the-ecorp.com
Subject RE: cocoon 2 building ...
Date Fri, 15 Jun 2001 12:01:20 GMT
Seems like you need the JNDI package (which is packaged with jdk1.3, but not
with 1.2)

See http://java.sun.com/products/jndi/index.html

good luck
tomK

-----Original Message-----
From: Sylvain PERROT [mailto:syp@grotte.org]
Sent: vrijdag 15 juni 2001 11:19
To: cocoon-users@xml.apache.org
Subject: cocoon 2 building ...


Hi all cocooners ...

I have 2 quick questions about cocoon 2 building ...

1) When I try to build cocoon 2 using the jdk1.3.1 .... and I only get an
error message :

# ./build.sh  -Dinclude.webapp.libs=yes webap
p

Apache Cocoon 2 Build System
----------------------------
Buildfile: build.xml
/root/jakarta/xml-cocoon2/bin/ant: line 107:  1546 Segmentation fault
$JAVACMD -classpath "$LOCALCLASSPATH" -            Dant.home="${ANT_HOME}"
$ANT_OPTS org.apache.tools.ant.Main "$@"


Can cocoon be builed with jdk1.3.1 ?
if yes ... how ?


2) When I try to build cocoon 2 using the jdk1.2.2 ... it starts compiling
... but it fails very quickly ...

# ./build.sh  -Dinclude.webapp.libs=yes webapp

Apache Cocoon 2 Build System
----------------------------
Buildfile: build.xml

init:
------------------- Apache Cocoon 2.1-dev [1999-2001] ----------------

compile:
Compiling 1 source file to /root/jakarta/xml-cocoon2/build/cocoon/classes
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:10: Class javax.naming.Context not found in import.
import javax.naming.Context;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:11: Class javax.naming.directory.Attribute not found in
import.
import javax.naming.directory.Attribute;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:12: Class javax.naming.directory.BasicAttribute not
found in import.
import javax.naming.directory.BasicAttribute;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:13: Class javax.naming.directory.DirContext not found
in import.
import javax.naming.directory.DirContext;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:14: Class javax.naming.directory.InitialDirContext not
found in import.
import javax.naming.directory.InitialDirContext;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:15: Class javax.naming.directory.ModificationItem not
found in import.
import javax.naming.directory.ModificationItem;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:16: Class javax.naming.directory.SearchControls not
found in import.
import javax.naming.directory.SearchControls;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:17: Class javax.naming.directory.SearchResult not found
in import.
import javax.naming.directory.SearchResult;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:18: Class javax.naming.NamingEnumeration not found in
import.
import javax.naming.NamingEnumeration;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:19: Class javax.naming.NamingException not found in
import.
import javax.naming.NamingException;
       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1129: Class javax.naming.directory.DirContext not
found.
    protected DirContext ctx;
                            ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1204: Class javax.naming.NamingException not found in
throws.
    protected void execute() throws Exception, NamingException {
                                               ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
found.
        SearchControls constraints = new SearchControls();
        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1210: Class javax.naming.directory.SearchControls not
found.
        SearchControls constraints = new SearchControls();
                                         ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1213: Class javax.naming.NamingException not found in
try.
        try {
        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1225: Variable constraints may not have been
initialized.
                                constraints.setTimeLimit(time_limit);
                                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1231: Class javax.naming.NamingEnumeration not found.
                                NamingEnumeration ldapresults =
ctx.search(searchbase, filter, constraints);
                                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1231: Variable constraints may not have been
initialized.
                                NamingEnumeration ldapresults =
ctx.search(searchbase, filter, constraints);

^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1237: Variable ldapresults may not have been
initialized.
                                while (ldapresults != null &&
ldapresults.hasMore()) {
                                       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1241: Class javax.naming.directory.SearchResult not
found.
                                        SearchResult si =
(SearchResult)ldapresults.next();
                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1241: Class javax.naming.directory.SearchResult not
found.
                                        SearchResult si =
(SearchResult)ldapresults.next();
                                                           ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1241: Variable ldapresults may not have been
initialized.
                                        SearchResult si =
(SearchResult)ldapresults.next();
                                                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1242: Class javax.naming.directory.Attributes not
found.
                                        javax.naming.directory.Attributes
attrs = si.getAttributes();
                                                              ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1244: Class javax.naming.NamingEnumeration not found.
                                                NamingEnumeration ae =
attrs.getAll();
                                                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1246: Class javax.naming.directory.Attribute not found.
                                                        Attribute at =
(Attribute)ae.next();
                                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1246: Class javax.naming.directory.Attribute not found.
                                                        Attribute at =
(Attribute)ae.next();
                                                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1299: Variable constraints may not have been
initialized.
                                constraints.setTimeLimit(time_limit);
                                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1308: Class javax.naming.NamingEnumeration not found.
                                        NamingEnumeration ldapresults =
ctx.search(searchbase, filter, constraints);
                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1311: Class javax.naming.directory.SearchResult not
found.
                                        SearchResult si = null;
                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1313: Class javax.naming.directory.SearchResult not
found.
                                                si =
(SearchResult)ldapresults.next();
                                                      ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1314: Class javax.naming.directory.Attributes not
found.

javax.naming.directory.Attributes attrs = si.getAttributes();
                                                                      ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1316: Class javax.naming.NamingEnumeration not found.
                                                        NamingEnumeration ae
= attrs.getAll();
                                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1318: Class javax.naming.directory.Attribute not found.
                                                                Attribute at
= (Attribute)ae.next();
                                                                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1318: Class javax.naming.directory.Attribute not found.
                                                                Attribute at
= (Attribute)ae.next();

^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1327: Class javax.naming.directory.ModificationItem not
found.
                                        ModificationItem[] mods = new
ModificationItem[1];
                                        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1327: Class javax.naming.directory.ModificationItem not
found.
                                        ModificationItem[] mods = new
ModificationItem[1];
                                                                      ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1329: Class javax.naming.directory.ModificationItem not
found.
                                        mods[0] = new
ModificationItem(DirContext.REPLACE_ATTRIBUTE,
                                                      ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1347: Class javax.naming.NamingException not found.
        } catch (NamingException e) {
                 ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1349: Class javax.naming.NamingException not found.
                    throw new NamingException ("[LDAPTransformer] Failed
ldap-connection to directory service: " + e.toString());
                              ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1357: Class javax.naming.NamingException not found in
try.
        try {
        ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1359: Class javax.naming.NamingException not found.
        } catch (NamingException e) {
                 ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1361: Class javax.naming.NamingException not found.
                throw new NamingException ("[LDAPTransformer] Failed
ldap-disconnection from directory service: " + e.toString());
                          ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1375: Class javax.naming.NamingException not found in
throws.
    protected void connect() throws NamingException {
                                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1377: Class javax.naming.Context not found.
            env.put(Context.SECURITY_AUTHENTICATION, authentication);
                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1377: Undefined variable or class name: Context
            env.put(Context.SECURITY_AUTHENTICATION, authentication);
                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1378: Class javax.naming.Context not found.
            env.put(Context.SECURITY_PRINCIPAL, root_dn);
                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1378: Undefined variable or class name: Context
            env.put(Context.SECURITY_PRINCIPAL, root_dn);
                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1379: Class javax.naming.Context not found.
            env.put(Context.SECURITY_CREDENTIALS, password);
                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1379: Undefined variable or class name: Context
            env.put(Context.SECURITY_CREDENTIALS, password);
                    ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1383: Class javax.naming.Context not found.
        env.put(Context.INITIAL_CONTEXT_FACTORY, initializer);
                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1383: Undefined variable or class name: Context
        env.put(Context.INITIAL_CONTEXT_FACTORY, initializer);
                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1384: Class javax.naming.Context not found.
        env.put(Context.PROVIDER_URL, serverurl + ":" + port);
                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1384: Undefined variable or class name: Context
        env.put(Context.PROVIDER_URL, serverurl + ":" + port);
                ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1387: Class javax.naming.directory.InitialDirContext
not found.
            ctx = new InitialDirContext(env);
                      ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1388: Class javax.naming.NamingException not found.
        } catch (NamingException e) {
                 ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1390: Class javax.naming.NamingException not found.
                throw new NamingException (e.toString());
                          ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1394: Class javax.naming.NamingException not found in
throws.
    protected void disconnect() throws NamingException {
                                       ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1396: Class javax.naming.directory.DirContext not found
in void disconnect().
            if (ctx != null) ctx.close();
                                      ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1397: Class javax.naming.NamingException not found.
        } catch (NamingException e) {
                 ^
/root/jakarta/xml-cocoon2/build/cocoon/src/org/apache/cocoon/transformation/
LDAPTransformer.java:1400: Class javax.naming.NamingException not found.
                throw new NamingException (e.toString());
                          ^
60 errors

BUILD FAILED
/root/jakarta/xml-cocoon2/build.xml:324: Compile failed, messages should
have been provided.

Total time: 27 seconds

It seems some classes are missing ... but how to get them ?
or what to do to make cocoon 2 compiling properly ?



For Information, I am using a Slackware distribution, I installed
successfully cocoon 1
I am using tomcat 4.0 b5

Thanks for help ...

Sylvain



---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message