On 5/4/07, Grzegorz Kossakowski <[EMAIL PROTECTED]> wrote:
Lally Singh pisze:
> Latest version I could find, maven 2.0.6
Yeah, Maven 2.0.6 will work fine.
> I updated my POMs from the latest archetypes, and that error went
> away, replaced with a few others. I got through a few of them, only
> stuck on a NullPointerException in Spring :-(
>
> Btw, the newest archetype poms don't have version #s in them, and
> maven just spits them out.
Can you show an example? I thought it's already fixed.
Sure. This is what I have right now, from an SVN update of sometime
this or last week. I updated again and there are version #s in them
again. I was afraid Cocoon had moved to a dev version of maven that
used some other means of determining the version #
> 2007-05-04 16:27:56.439::WARN: Nested in
> org.springframework.beans.factory.BeanDefinitionStoreException: Unable
> to read spring configurations from classpath*:META-INF/cocoon/spring;
> nested exception is
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected exception parsing XML document from URL
>
[jar:file:/Users/lally/Work/School/GRA/IDDL/New_System/iddl_svn/ratlee/meval/trunk/whole/cocoonapp/target/cocoonapp-1.0-SNAPSHOT/WEB-INF/lib/qgenerator-1.0-SNAPSHOT.jar!/META-INF/cocoon/spring/block.xml];
Can you show your block.xml file?
Attached.
Thanks for all your help!
--
H. Lally Singh
Ph.D. Candidate, Computer Science
Virginia Tech
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--+
| @version $Id: pom.xml 530411 2007-04-19 13:38:48Z giacomo $
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<name>myBlock1</name>
<groupId>com.mycompany</groupId>
<artifactId>myBlock1</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<!-- As the reloading classloader plugin hasn't been released yet, it is uncommented.
In order to use it, you have to build it yourself and activate the section below. -->
<!--plugin>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-rcl-plugin</artifactId>
<version>1.0.0-M1-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0.2</version>
<configuration>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8888</port>
<maxIdleTime>30000</maxIdleTime>
</connector>
</connectors>
<webAppSourceDirectory>${project.build.directory}/rcl/webapp</webAppSourceDirectory>
<contextPath>/</contextPath>
<systemProperties>
<systemProperty>
<name>org.apache.cocoon.mode</name>
<value>dev</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<configuration>
<archive>
<manifestEntries>
<Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-servlet-service-components</artifactId>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-template-impl</artifactId>
</dependency>
</dependencies>
<repositories>
<!-- Avalon/Excalibur dependencies -->
<repository>
<id>apache.snapshot</id>
<name>Apache Snapshot Repository</name>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!-- Release testing -->
<repository>
<id>cocoon.staging</id>
<name>Cocoon staging repository</name>
<url>http://people.apache.org/builds/cocoon</url>
</repository>
</repositories>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
und
-->
<!--+
| @version $Id: block.xml 481168 2006-12-01 06:29:52Z reinhard $
+-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:servlet="http://cocoon.apache.org/schema/servlet"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cocoon.apache.org/schema/servlet http://cocoon.apache.org/schema/servlet/cocoon-servlet-1.0.xsd">
<bean id="edu.vt.iddl.meval.qgenerator.block" class="org.apache.cocoon.sitemap.SitemapServlet">
<servlet:context mount-path="/" context-path="blockcontext:/qgenerator/" />
<!--
<property name="mountPath" value="blockcontext:/"/>
<property name="servletClass" value="org.apache.cocoon.sitemap.SitemapServlet"/>
<property name="blockContextURL" value="blockcontext:/qgenerator/"/>
-->
</bean>
<!-- Hibernate -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost/iddl" />
<property name="username" value="lally" />
<property name="password" value="password" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.hbm2ddl.auto">create</prop>
</props>
</property>
<property name="annotatedClasses">
<!--
really, the best way to get this (assuming a linux/mac system):
cd ratlee/meval/trunk/whole/qgenerator/src/main/java
find edu -name '*.java' -exec grep -q '@Entity' {} \; -print | sed -e 's/\//./g' | xargs basename -s .java
-->
<list>
<value>edu.vt.iddl.meval.versioning.SequencePoint</value>
<value>edu.vt.iddl.meval.versioning.SemesterDate</value>
<value>edu.vt.iddl.meval.versioning.spring2007.Course2007</value>
</list>
</property>
</bean>
<bean id="springUtil" class="edu.vt.iddl.meval.util.SpringUtils">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
</beans>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]