roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Langan" <lang...@homes.com>
Subject RE: Compiling Roller code
Date Mon, 25 Feb 2008 21:39:29 GMT
Dave,
Thanks for the help. I've downloaded from the archive you indicated but I
still get a 404 message when I try to deploy the war file in Glassfish with
the error messages below. If I deploy a war file created from the Roller
apache-roller-4.0.zip download everything works fine and I can see the blogs
I have created. So my I am only getting the errors when I compile the source
code.
Version: Roller 4.0 
Application Server: Glassfish V2
Database: Oracle
Java: Java 6 update 4
OS: Windows XP

In the server log I get the message:
[#|2008-02-25T16:11:25.625-0500|SEVERE|sun-appserver9.1|javax.enterprise.sys
tem.container.web|_ThreadID=18;_ThreadName=Thread-27;_RequestID=229eeb5b-aed
f-40b5-8d80-eda2dfcc965a;|WebModule[/roller]PWC1275: Exception sending
context initialized event to listener instance of class
org.apache.roller.weblogger.ui.core.RollerContext
com.google.inject.ProvisionException: Error while locating instance
  bound to org.apache.roller.weblogger.business.jpa.JPAPersistenceStrategy
  for member at
org.apache.roller.weblogger.business.jpa.JPAWebloggerImpl.<init>(JPAWeblogge
rImpl.java:79)
	at
com.google.inject.InjectorImpl$SingleParameterInjector.inject(InjectorImpl.j
ava:646)
	at
com.google.inject.InjectorImpl.getParameters(InjectorImpl.java:666)


And in the roller.log I get:
INFO  2008-02-25 16:11:23,375 DatabaseProvider:successMessage - SUCCESS:
loaded JDBC driver class [oracle.jdbc.driver.OracleDriver]
INFO  2008-02-25 16:11:23,609 JPAPersistenceStrategy:<init> - openjpa.Log:
commons
ERROR 2008-02-25 16:11:25,531 JPAPersistenceStrategy:<init> - ERROR:
creating entity manager
javax.persistence.PersistenceException: No Persistence provider for
EntityManager named RollerPU: Provider named
org.apache.openjpa.persistence.PersistenceProviderImpl threw unexpected
exception at create EntityManagerFactory: 
org.apache.openjpa.util.GeneralException
<0.9.7-incubating nonfatal general error>
org.apache.openjpa.util.GeneralException: JAR entry META-INF/persistence.xml
not found in
C:\glassfish\domains\domain1\applications\j2ee-modules\roller\WEB-INF\lib\ro
ller-business.jar
	at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
	at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:132)
	at java.net.URL.openStream(URL.java:1009)
	at
org.apache.openjpa.lib.meta.URLMetaDataIterator.getInputStream(URLMetaDataIt
erator.java:62)
	at
org.apache.openjpa.lib.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:3
15)

Any help on where I'm going wrong is appreciated.
John.



-----Original Message-----
From: Dave [mailto:snoopdave@gmail.com] 
Sent: Friday, February 22, 2008 8:41 PM
To: user@roller.apache.org
Subject: Re: Compiling Roller code

On Fri, Feb 22, 2008 at 3:20 PM, John Langan <langanj@homes.com> wrote:
>
>  I checked out source code with
>  svn checkout https://svn.apache.org/repos/asf/incubator/roller
roller/trunk
>  roller

That's the wrong archive. Roller is no longer in the Incubator.

Check this page for source code access instructions:
http://cwiki.apache.org/confluence/x/Z4k

- Dave


>  Using NetBeans I opened the weblogger project in \roller\apps. The
project
>  named itself "roller_weblogger", which is uneditable. When I run the dist
>  option of build.xml a war file in \roller\apps\weblogger\dist\webapp
called
>  roller_weblogger.war is created. When this is deployed in Glassfish it
>  creates a webapp called "roller-weblogger" and when launched a page opens
>  with the url http://localhost:8080/roller-weblogger/ with a 404 error and
>  message "The file that you requested could not be found on this server."
>
>  Can anyone tell me where I've gone wrong and how I can get a successful
>  deployment by compiling Roller source code? Why does build.xml contain
the
>  line "jar destfile="${ro.dist}/webapp/roller-weblogger.war" for creating
the
>  war file instead of "roller.war"?
>  John.
>
>



Mime
View raw message