[prev in list] [next in list] [prev in thread] [next in thread]
List: jetspeed-user
Subject: Maven build issues [was Getting Started]
From: "Carlos Sanchez" <carlos () apache ! org>
Date: 2004-11-27 23:31:16
Message-ID: 200411272330.iARNUcqp028606 () mailer ! progressive-comp ! com
[Download RAW message or body]
Hi,
Actually there's a bug in Maven 1.0.1 that prevent correct behaviour of the build \
process. http://jira.codehaus.org/browse/MAVEN-1501
You'll need to run maven with
"-Dmaven.repo.remote=http://www.bluesunrise.com/maven/,http://www.ibiblio.org/maven/,http://dist.codehaus.org/,http://cvs.apache.org
/repository"
Also note two things:
- some files (sun jars: activation,...) in the http://www.bluesunrise.com/maven/ \
repository can't be there due to license restrictions, that's why we haven't uploaded \
them to ibiblio repo. 2. License to Distribute Software.
(i) distribute the Software complete and unmodified and only bundled as part of \
your Programs
- versions ending with "-dev" should en with "-SNAPSHOT", so they ge redownloaded \
when they are updated.
Regards
Carlos Sanchez
A Coruρa, Spain
http://www.jroller.com/page/carlossg
> -----Original Message-----
> From: Ron Wheeler [mailto:rwheeler@artifact-software.com]
> Sent: Saturday, November 27, 2004 10:38 PM
> To: Jetspeed Users List
> Subject: Re: Getting Started
>
> Thanks for the hints. I got stopped before you did but it
> helped to see where the build file belongs. I would have
> buried it too deep.
> I am working with Tomcat 5.5.4, Java 5 (1.5.0), the latest
> Eclipse, Maven 1.0.1 and have downloaded the latest Eclipse
> plug-ins recomended in the Jetspeed Wiki.
>
> So far so good. Jetspeed is downloaded and I only got one
> error message about license.txt which appears to be
> downloaded OK anyway.
>
> I am trying to report as many of the errors and omissions in
> the current documentation as I can. I have a feeling that the
> guys who are writing the documentatoin are sometimes too
> knowledable and leave things out that us mere mortals do not
> deduce from their descriptions. The best one is the Jetspeed
> installation where they omit the step of downloading Jetspeed
> after carefully making sure that we have Maven and all the other stuff
>
> I am a big Eclipse fan and use it for all of our interactions
> with CVS and for non-Java activities such as Flash
> Actionscript development and to get the marketing types to
> keep organized by creating eclipse projects for marketing. It
> handles Mindmaps, XML, word processing documents, etc.. It
> gives us a truly secure, distributed file system with good
> protection against conflicting updates. We work out of 4
> locations in Montreal and have staff in Columbia sharing
> files and managing projects through Eclipse.
>
>
>
> When I tried to do the maven build, I got this error.
>
> File or url 'C:\Program
> Files\Java\jdk1.5.0/Classes/classes.jar' could not be found
> java.net.MalformedURLException: unknown protocol: c
> at java.net.URL.<init>(Unknown Source)
> at java.net.URL.<init>(Unknown Source)
> at java.net.URL.<init>(Unknown Source)
> at com.werken.forehead.Forehead.loadFileOrUrl(Forehead.java:403)
> at com.werken.forehead.Forehead.load(Forehead.java:322)
> at com.werken.forehead.Forehead.config(Forehead.java:245)
> at com.werken.forehead.Forehead.config(Forehead.java:131)
> at com.werken.forehead.Forehead.main(Forehead.java:579)
>
> So now I guess that I start the research on this. There does
> not appear to be a file classes.jar in Java 5 or Java 4 so it
> must be a setting that is not right somewhere.
> It looks like it is having trouble with the c: but I do not
> know where it is building this. JAVA_HOME has the C: in it
> but removing it from the definition of JAVA_HOME did not have
> any effect.
>
>
>
> Hema Menon wrote:
>
> > Hi Ron,
> >
> > I have used Jetspeed with 1.5 binaries before. I needed to upgrade to
> > 1.6 or 2 since it offered struts and jsr 168 portlet
> support. So this
> > past week, I was able to successfully build and deploy
> Jetspeed 2 and
> > Jetspeed 1.6 with fusion. I downloaded and used Maven for the first
> > time just for the purpose of building Jetspeed 2. Some
> patience and lot
> > of reading into the mailing list posts and responses from
> the mailing
> > list members helped me with it.
> >
> > Here's my own notes on how to get Jetspeed 2 built. My
> environment was
> > Win XP, Tomcat 5.0.28 and jdk1.4.2_06. I saw many questions on the
> > mailing list on how to get the source from CVS. So I started
> out with
> > answering that.
> >
> > 1. I need to use Jetspeed 2. Binaries are not available since it is
> > not released yet. How can I get the source from CVS and build it?
> > You need a CVS client to access the source code anonymously.
> > Instructions on getting source with Eclipse is described here.
> > http://wiki.apache.org/portals/Jetspeed2/DevelopingJetspeed2
> > You can use Cygwin CVS or any others for downloading the source. You
> > can download Cygwin from http://www.cygwin.com/mirrors.html.
> Make sure
> > you select CVS from the Devel on installation. You can now use the
> > instructions at apache (
> http://www.apache.org/dev/version-control.html
> > )to get the source from CVS. The steps involved are
> > Set the CVSROOT environment variable
> > CVSROOT=:pserver:anoncvs@cvs.apache.org:/home/cvspublic
> export CVSROOT
> > Login to CVS
> > cvs login
> > password anoncvs
> > Choose the module to download
> > For jetspeed 2
> > cvs checkout Jakarta-jetspeed-2
> >
> > 2. OK, I have the source now, how do I build this?
> > The instructions on building Jetspeed are at
> > http://portals.apache.org/jetspeed-2/getting-started.html
> > For step #1, I followed the instructions available here
> > http://maven.apache.org/start/install.html
> > For step # 2, I copied the build.properties.sample in the jetspeed2
> > directory to build.properties in the userhome directory( On
> my windows
> > box, C:\Documents and settings\hmenon ) and then modified it as
> > suggested for step 2 in
> > http://portals.apache.org/jetspeed-2/getting-started.html
> > Then continued with the further steps, at which case I run
> across the
> > following problems which were resolved as described below.
> >
> > 3.The build started by ultimately failed due to unsatisfied
> dependency
> > with the following errors.
> > Attempting to download pluto-1.0.1-rc1.jar.
> > WARNING: Failed to download pluto-1.0.1-rc1.jar.
> > BUILD FAILED
> > File...... C:\temp\jakarta-jetspeed-2\maven.xml
> >
..
> > Column.... 40
> > The build cannot continue because of the following
> unsatisfied dependency:
> > pluto-1.0.1-rc1.jar
> > What can I do to fix this?
> > Maven tries to download the jars to your local repository (usually
> > %home/.maven/repository directory) from the remote repository
> > (maven.remote.repo =www.bluesunrise.com/maven,
) as defined in the
> > project.properties. If it is unable to download from these
> locations,
> > you are likely to get this error. You could try downloading
> these jars
> > from these locations and place it in the respective folders in the
> > local maven repository and restart the build.
> >
> > 4. The build completed successfully. How do I deploy this?
> > Follow the instruction #5 as described in
> > http://portals.apache.org/jetspeed-2/getting-started.html
> >
> > 5. OK, Jetspeed 2 is now deployed successfully, but I
> cannot find the
> > login page. Here's the exception in Tomcat logs..
> > BOOT] WARN: Could not load properties file 'OJB.properties'. Using
> > default settings!
> > C:\WINDOWS\system32\OJB.properties (The system cannot find the file
> > specified)
> > java.io.FileNotFoundException:
> C:\WINDOWS\system32\OJB.properties (The
> > system cannot find the file specified)
> > at java.io.FileInputStream.open(Native Method)
> > Help me
.
> > Copy OJB.properties from Jakarta-jetspeed-2/etc/db-ojb directory to
> > TOMCAT_HOME/webapps/jetspeed/web-inf/classes directory. You
> might want
> > to copy all these listed files, otherwise you are likely to
> encounter
> > problem as described in the next item.
> > OJB-logging.properties
> > OJB.properties
> > repository_database.xml
> > repository.dtd
> > repository_internal.xml
> > repository.xml
> > TEMP.xml
> > Restart tomcat after copying the files.
> >
> > 6. Copied OJB.properties, restarted Tomcat, well, the page is not
> > still up. Here's the exception from Tomcat logs,
> > org.springframework.beans.factory.BeanCreationException:
> Error creating
> > bean with name 'java.util.prefs.PreferencesFactory' defined in URL
> > [file:/C:/Tomcat5.0.28/webapps/jetspeed/WEB-INF/assembly/jets
> peed-spring.xml]:
> > Initialization of bean failed; nested exception is
> > org.apache.jetspeed.prefs.PreferencesException: Failed to initialize
> > prefs api. java.lang.NullPointerException
> > org.apache.jetspeed.prefs.PreferencesException: Failed to initialize
> > prefs api. java.lang.NullPointerException at
> > org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(Pr
> eferencesF
> > actoryImpl.java:69)at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.ja
> > va:39
> > What's it now?
> > Here's the answer
> > http://www.mail-archive.com/jetspeed-dev@jakarta.apache.org/m
> sg16644.ht
> > ml
> > Copy all the files and restart Tomcat.
> >
> > 7. Finally, http://localhost:8080/jetspeed is loaded with the new
> > jetspeed 2 page. Logged in as admin/jetspeed user/password combo.
> > What?? Invalid username/password?? Why?
> > With jetspeed2 you need to use user/user or jetspeed/jetspeed as the
> > user/password combination to login.
> >
> > Other Known Issues
> > 1. Issues with using JDK versions lower than 1.4.2_02
> > This bug as reported here
> > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5012893
> is likely to
> > cause the followin exception java.lang.RuntimeException: Failed to
> > initialize prefs api. java.lang.InternalError: Can't instantiate
> > Preferences factory java.lang.ClassNotFoundException:
> > org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.
> > Hence you need to have jdk1.4.2_02 or higher.
> >
> > I am not sure whether you were successful in building
> Jetspeed 2. But
> > thought I would share my experience to make the process easier.
> >
> > Thanks,
> > Hema
> >
> > On Sat, 27 Nov 2004 12:26:14 -0500, Ron Wheeler
> > <rwheeler@artifact-software.com> wrote:
> >
> >
> > > In getting started with Jetspeed, I am trying to follow the
> > > instructions on http://portals.apache.org/jetspeed-2/mail-lists.html
> > > fairly literally to see how clear they really are to a new person.
> > >
> > > I have Apache and Tomcat working at the start of the process.
> > >
> > > Problem 1) The instructions do not describe how to download
> Jetspeed
> > > or even mention the need to do this. Am I supposed to have
> downloaded
> > > it before I got here or am I supposed to download it through Maven
> > > between step 1 and 2.?
> > >
> > > Problem 2) What is USER_HOME in a Windows 2000 environment.
> > > A windows use would expect this to be C:\Documents and
> > > Settings\rwheeler\My Documents but I am not sure if that makes any
> > > sense in the context of a Tomcat server.
> > > It needs explaining for either windows or Linux.
> > >
> > > I hope that these comments lead to a better set of
> instructions that
> > > make it easy for new users. I will try to document the
> little issues
> > > that I run into. I know that it is hard for someone who completely
> > > understands the whole process to put themselves in the
> shoes of a new
> > > system administrator who has never seen the software before. It is
> > > easy to forget to mention something that seems so obvious once you
> > > have done it successfully.
> > >
> > > Ron
> > >
> > >
> > >
> > > ------------------------------------------------------------
> ---------
> > > To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic