Re: problems with default build

Shash Chatterjee <[email protected]>
Newsgroups gmane.comp.java.keel.devel
Message-ID <[email protected]>
Warren,

The default project.xml wasn't quite up to date.  Try the attached one.

- Copy it to your project's project.xml
- Remove project.bak/project.edited
- maven keel:maven
- maven war

HTH,
Shash

Warren Hedges wrote:

> Hi all -  hope someone can help.
>
> I was successful building the default project using plug-in 1.2.9 but 
> am now having problems building the default project using version  
> 1.2.12.
>
> The following outlines the steps I've taken and the outcomes / system 
> responses.
> Perhaps someone can see where I've gone wrong? (my apologies for the 
> novel)
>
> Started with clean system
>    - deleted existing plug-in from maven plug-in directory
>    - deleted the keel-build directory (including repository)
>    - >maven clean
>
> >maven -DartifactId=maven-keel-plugin -DgroupId=keel -Dversion=1.2.12 
> plugin:download
>    - the plug-in was downloaded - along with several jars as per normal
>    - directory structure was created and populated in keel-build
>    - build successful
>
> copied files in keel-build/example-projects/default to newly created 
> directory /keel_default
> >cd /keel_default
> >maven keel:install
>    - required jars were downloaded to repository
>    - project.xml was changed - original changed to project.bak
>    - build successful
>
> >maven war
>    - more jars were downloaded
>    - directory structure was created and populated
>    - multiple warnings of duplicates (no errors)
>    - build successful
>
> deployed the resultant default.war into tomcat
> >http://localhost:8080/default/
>    - the keel welcome screen is displayed
> >http://localhost:8080/default/model.do?model=createdb
>    - results in exception report
>    - root cause =
>        org.keel.services.model.ModelException: [KeelStarter] :Channel 
> timed out waiting for response
>             keelserver.log reports -
>    org.apache.avalon.fortress.InitializationException: Cannot set up 
> Container. Startup lifecycle failure
>    at 
> org.apache.avalon.fortress.impl.DefaultContainerManager.createContainer(DefaultContainerManager.java:182) 
>
>    at 
> org.apache.avalon.fortress.impl.DefaultContainerManager.initializeContainer(DefaultContainerManager.java:119) 
>
>    at 
> org.apache.avalon.fortress.impl.DefaultContainerManager.initialize(DefaultContainerManager.java:112) 
>
>    at 
> org.keel.core.container.KeelContainerFactory.getContainerManager(KeelContainerFactory.java:231) 
>
>    at 
> org.keel.core.container.KeelContainerFactory.createContainer(KeelContainerFactory.java:624) 
>
>    at 
> org.keel.core.container.KeelContainerFactory.createContainer(KeelContainerFactory.java:607) 
>
>    at 
> org.keel.servers.KeelAbstractServer.initialize(KeelAbstractServer.java:132) 
>
>    at 
> org.keel.servers.KeelAbstractServer.getContainer(KeelAbstractServer.java:112) 
>
>    at 
> org.keel.servers.direct.KeelDirectServer.run(KeelDirectServer.java:61)
> Caused by: 
> org.apache.avalon.framework.configuration.ConfigurationException: No 
> class found matching configuration name [name: des, location: null:7:38]
>    at 
> org.apache.avalon.fortress.impl.DefaultContainer.getClassname(DefaultContainer.java:174) 
>
>    at 
> org.apache.avalon.fortress.impl.DefaultContainer.configure(DefaultContainer.java:108) 
>
>    at 
> org.keel.core.container.KeelContainer.configure(KeelContainer.java:196)
>    at 
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240) 
>
>    at 
> org.apache.avalon.fortress.impl.DefaultContainerManager.createContainer(DefaultContainerManager.java:167) 
>
>    ... 8 more
>
> the web.xml file includes the lines ...
>  <context-param>
>       <param-name>keel.config.dir</param-name>
>       <param-value>WEB-INF/keel/server/conf</param-value>
>  </context-param>
>
> however the directory WEB-INF/keel/server/ does not exist 
> (WEB-INF/keel/ does not exist)
>
>
> Is this something I've done wrong or is there something wrong elsewhere?
>
>       ------------------------
>
> I've also noticed there is no project.xml in the nojms-cocoon example 
> project (and no clnt-cocoon.jar in the maven/keel/jars dir).
> Is it still possible to use cocoon as a front end as I was quite 
> impressed with the simplicity of using keel with cocoon?
>
> thanks ,
>
> Warren
> http://keelframework.org/documentation.shtml
> Keelgroup mailing list
> [email protected]
> http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com
project.xml (text/xml, 5.2 KB)
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <pomVersion>3</pomVersion>
  <name>Keel Example Project - Default</name>
  <id>default</id>
  <groupId>keel</groupId>
  <currentVersion>1.0</currentVersion>
  <description>
This example project builds a Keel deployment in a "single-webapp" style - the simplest Keel environment for web deployment. It uses Struts as the UI,
and includes several of the basic Keel applications, including Registration/Login and Poll.
  </description>
  <shortDescription>Default</shortDescription>
  <dependencies>
    <!--
        Our own applications
    -->
    <!--
        Keel Applications
    -->
    <dependency>
      <groupId>keel</groupId>
      <artifactId>app-crud</artifactId>
      <version>2.1</version>
      <properties>
        <keel.client>true</keel.client>
      </properties>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>app-navigate</artifactId>
      <version>2.1</version>
      <properties>
        <keel.client>true</keel.client>
      </properties>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>app-poll</artifactId>
      <version>2.0</version>
      <properties>
        <keel.client>true</keel.client>
      </properties>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>app-register</artifactId>
      <version>2.1</version>
      <properties>
        <keel.client>true</keel.client>
      </properties>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>app-util</artifactId>
      <version>1.01</version>
      <properties>
        <keel.client>true</keel.client>
      </properties>
    </dependency>
    <!--
        Keel Services
    -->
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-authentication-persist</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-authorization-persist</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-cache-excalibur</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-crypto-base64</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-crypto-des</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-domain-config</artifactId>
      <version>1.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-event-defaultevent</artifactId>
      <version>2.2</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-filter-filters</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-httpunit</artifactId>
      <version>2.01</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-mail-javamail</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-model-defaultmodel</artifactId>
      <version>2.01</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-password-jpassgen</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-persist-base</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-persist-default</artifactId>
      <version>2.1</version>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>svc-usergroup-persist</artifactId>
      <version>1.1</version>
    </dependency>
    <!--
        Keel Client(s)
    -->
    <dependency>
      <groupId>keel</groupId>
      <artifactId>clnt-cli</artifactId>
      <version>1.2</version>
      <properties>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>
    <dependency>
      <groupId>keel</groupId>
      <artifactId>clnt-struts</artifactId>
      <version>3.01</version>
      <properties>
        <keel.client>true</keel.client>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>
    <!--
        Keel Comm
    -->
    <dependency>
      <groupId>keel</groupId>
      <artifactId>comm-direct</artifactId>
      <version>1.1.1</version>
      <properties>
        <keel.client>true</keel.client>
        <keel.server>true</keel.server>
        <war.bundle>true</war.bundle>
      </properties>
    </dependency>
    <!--
        JDBC Drivers
    -->
    <dependency>
      <groupId>hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>1.7.3.0</version>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>3.1.4-beta-bin</version>
    </dependency>
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>7.4.1-jdbc3</version>
    </dependency>
  </dependencies>
</project>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.