Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
2 replies Latest Post - ‏2007-08-24T19:45:39Z by SystemAdmin
SystemAdmin
SystemAdmin
28 Posts
ACCEPTED ANSWER

Pinned topic Publish critical public warnings on the Web

‏2007-08-23T16:20:54Z |
Very interesting article.
But ...

The example code, doesn't run ...
I downloaded and use with Eclipse 3.3.0 and get some compiler errors about classes that not found.
For example, when try to run Test class, got Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/serialize/Serializer
SO, the Apache Xerces is not in dependency lib ... and so on.

I deploy the WAR in Apache TOmcat 5.5.17 .. and point th browser to http://localhost:8080/capserver/xxxx
and get error 404

SO, I get confused ... could you write a Tutorial instead ?

Regards

Jin
Updated on 2007-08-24T19:45:39Z at 2007-08-24T19:45:39Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    28 Posts
    ACCEPTED ANSWER

    Re: Publish critical public warnings on the Web

    ‏2007-08-24T15:29:51Z  in response to SystemAdmin
    Hi again
    Let's go ahead ... I'm persistent ... :-)
    Today, I have more time to investigate the issues ...

    First, the main class com.ibm.developerworks.cap.test.Test must have to be refactor: you must import
    org.apache.abdera.protocol.client.Client;
    org.apache.abdera.protocol.client.CommonsClient;

    instead of import org.apache.abdera.protocol.client.AbderaClient; This class doesn't exist.

    Second, when create the client, you must use:
    Client abderaClient = new CommonsClient(abdera);
    instead of
    AbderaClient abderaClient = new AbderaClient(abdera);

    I was reading your previous article about "Introducing the Apache Abdera project" and this changes comes from it.

    At this point, the main class compiles and runs fine. So, I'll try to solve other issues ( I've) on the server side.

    Best regards

    Jin
    • SystemAdmin
      SystemAdmin
      28 Posts
      ACCEPTED ANSWER

      Re: Publish critical public warnings on the Web

      ‏2007-08-24T19:45:39Z  in response to SystemAdmin
      Well

      After lunch, finally I can start the Hadoop in Linux and deploy the war in Tomcat 5.5.17.
      I note that the war file lacks of :
      xmlsec-1.4.1.jar
      serializar.jar
      xercesImpl.jar

      After re-package it, the main Test class can call the application.
      But ...
      I got an error now at the tomcat output log:

      24/08/2007 02:38:32 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Despliegue del archivo capserver.war de la aplicación web
      org.apache.abdera.security.SecurityException: java.lang.RuntimeException: org.ap
      ache.xml.security.signature.XMLSignatureException: object not initialized for si
      gnature or verification
      Original Exception was java.security.SignatureException: object not initialized
      for signature or verification
      at org.apache.abdera.security.xmlsec.XmlSignature.sign(XmlSignature.java
      :118)
      at com.snellspace.cap.server.CapStore.signDoc(CapStore.java:502)
      at com.snellspace.cap.server.CapProvider.getFeed(CapProvider.java:191)
      at org.apache.abdera.protocol.server.servlet.DefaultRequestHandler.proce
      ss(DefaultRequestHandler.java:43)
      at org.apache.abdera.protocol.server.servlet.AbstractRequestHandler.proc
      ess(AbstractRequestHandler.java:59)