Skip to main content

How to build jsf-api and jsf-ri

9 replies [Last post]
vistek
Offline
Joined: 2008-11-06
Points: 0

I want to build and use mojarra 1.2_12 instead of jsf-api.jar and jsf-ri.jar. I want to learn jsf deeply. I built myfaces but cann't mojarra because i didn't understood source in template-src in source code. They haven't seem like java source code. They have lost of syntax error. can any one help me please?

Thanks a lot.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jim Driscoll

The problem seems to be that you're having problems downloading the
dependencies automatically. Are you having internet connection
problems? Probably, you are.

Given that bundling these dependencies would bloat our codebase by 100's
of MBs in size, that would just move the problem to a different place.
So that's not a solution, unfortunately.

So, with that as a constraint - right now, the problem looks like you've
had a problem downloading jakarta-cactus-13-1.7.1.zip

If you try to unzip it manually, it will fail. Because it's probably an
empty or truncated file.

If you delete it, and run the build again, it will try to download it
again. Provided that your internet connection works, it should succeed
this time.

There's not much we can do from here about your internet connection,
unfortunately.

On the plus side, once it works, it won't have to download stuff again
until we update the dependencies.

Sorry you're having such problems. I also had such problems once, but
it cleared once my connection cleared up.

Jim

On 5/18/09 3:49 AM, webtier@javadesktop.org wrote:
> I was working on building mojarra for the last two days, no success! Seems that it did not download the jar file successfully. I removed the zip file and tried again and again. no luck. It is possible to put all dependent jars into a zip file so we can download? Thanks.
>
> Buildfile: build.xml
>
> main:
>
> update:
> [get] Getting: http://archive.apache.org/dist/jakarta/cactus/binaries/jakarta-cactus-13...
> [get] To: E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\dependencies\downloads\jakarta-cactus-13-1.7.1.zip
> [unzip] Expanding: E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\dependencies\downloads\jakarta-cactus-13-1.7.1.zip into E:\mojarra-1.2_12-source\mojarra-1.2_
> 12-b01-FCS-sources\dependencies
>
> BUILD FAILED
> E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\build.xml:89: The following error occurred while executing this line:
> E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\build.xml:64: The following error occurred while executing this line:
> E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\common\ant\dependencies.xml:157: Error while expanding E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\dependencies\downloads\jakarta-cactus-13-1.7.1.zip
> [Message sent by forum member 'javaone9' (javaone9)]
>
> http://forums.java.net/jive/thread.jspa?messageID=346595
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

rlubke
Offline
Joined: 2003-08-21
Points: 0

I seem to recall this error for this particular dependency in the past. Are you on a mac by chance?

javaone9
Offline
Joined: 2007-01-17
Points: 0

I was working on building mojarra for the last two days, no success! Seems that it did not download the jar file successfully. I removed the zip file and tried again and again. no luck. It is possible to put all dependent jars into a zip file so we can download? Thanks.

Buildfile: build.xml

main:

update:
[get] Getting: http://archive.apache.org/dist/jakarta/cactus/binaries/jakarta-cactus-13...
[get] To: E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\dependencies\downloads\jakarta-cactus-13-1.7.1.zip
[unzip] Expanding: E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\dependencies\downloads\jakarta-cactus-13-1.7.1.zip into E:\mojarra-1.2_12-source\mojarra-1.2_
12-b01-FCS-sources\dependencies

BUILD FAILED
E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\build.xml:89: The following error occurred while executing this line:
E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\build.xml:64: The following error occurred while executing this line:
E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\common\ant\dependencies.xml:157: Error while expanding E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\dependencies\downloads\jakarta-cactus-13-1.7.1.zip

aplossystems
Offline
Joined: 2010-02-21
Points: 0

I know it's probably a bit late now but for anyone else that is reading I wrote an article on how to build the Mojarra source. There's quite a few challenges I came across in the process so hopefully this should help some people out

http://www.aplossystems.co.uk/articles/building_mojarra_jsf/

Ed Burns

>>>>> On Mon, 18 May 2009 03:49:58 -0700 (PDT), webtier@javadesktop.org said:

-> I was working on building mojarra for the last two days, no success!
-> Seems that it did not download the jar file successfully. I removed
-> the zip file and tried again and again. no luck. It is possible to
-> put all dependent jars into a zip file so we can download? Thanks.
-> Buildfile: build.xml

When you find a solution to your building problem, can you please update
the FAQ

http://wiki.java.net/bin/view/Projects/SunJSFImplFaq

Thanks,

Ed

--
| ed.burns@sun.com | office: 408 884 9519 OR x31640
| homepage: | http://ridingthecrest.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

javaone9
Offline
Joined: 2007-01-17
Points: 0

I download the 1.2.12 source, and
> ant main
got the following error:

Compiling 218 source files to E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\jsf-ri\build\classes
E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\jsf-ri\src\com\sun\faces\vendor\Tomcat6InjectionProvider.java:44: package org.apache does not exist
import org.apache.AnnotationProcessor;

I need to build jsf-impl.jar and jsf-api.jar only, no test is needed. what is the target?

thanks
Dave

Jim Driscoll

The target is main - it doesn't do any testing - but it will download a
fair number of dependencies.

One thing that might be happening is that the download of one of those
dependencies went awry. That's rare, but has happened to me at least
once. The simplest way to deal with that is to delete the
$JSF_HOME/dependencies directory, and once again type

cd $JSF_HOME ; ant clean main

where $JSF_HOME is where you've put the cvs directory.

remember that you'll need to edit the build.properties file as well,
though it looks as though you've done that.

Jim

On 5/17/09 6:56 PM, webtier@javadesktop.org wrote:
> I download the 1.2.12 source, and
>> ant main
> got the following error:
>
> Compiling 218 source files to E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\jsf-ri\build\classes
> E:\mojarra-1.2_12-source\mojarra-1.2_12-b01-FCS-sources\jsf-ri\src\com\sun\faces\vendor\Tomcat6InjectionProvider.java:44: package org.apache does not exist
> import org.apache.AnnotationProcessor;
>
> I need to build jsf-impl.jar and jsf-api.jar only, no test is needed. what is the target?
>
> thanks
> Dave
> [Message sent by forum member 'javaone9' (javaone9)]
>
> http://forums.java.net/jive/thread.jspa?messageID=346554
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

Jason Lee

You should be able to check out the source then issue "ant main" from
the root directory, which will download and build everything for you.

On May 2, 2009, at 1:46 PM, webtier@javadesktop.org wrote:

> I want to build and use mojarra 1.2_12 instead of jsf-api.jar and
> jsf-ri.jar. I want to learn jsf deeply. I built myfaces but cann't
> mojarra because i didn't understood source in template-src in
> source code. They haven't seem like java source code. They have lost
> of syntax error. can any one help me please?
>
> Thanks a lot.
> [Message sent by forum member 'vistek' (vistek)]
>
> http://forums.java.net/jive/thread.jspa?messageID=344743
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee@sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com

[att1.html]

Jim Driscoll

Well, he'll have to change a properties file first, but, yeah, that's
pretty much it.

See here:

http://wiki.glassfish.java.net/Wiki.jsp?page=JavaServerFacesRI#section-J...

Jim

On 5/2/09 3:02 PM, Jason Lee wrote:
> You should be able to check out the source then issue "ant main" from
> the root directory, which will download and build everything for you.
>
> On May 2, 2009, at 1:46 PM, webtier@javadesktop.org
> wrote:
>
>> I want to build and use mojarra 1.2_12 instead of jsf-api.jar and
>> jsf-ri.jar. I want to learn jsf deeply. I built myfaces but cann't
>> mojarra because i didn't understood source in template-src in source
>> code. They haven't seem like java source code. They have lost of
>> syntax error. can any one help me please?
>>
>> Thanks a lot.
>> [Message sent by forum member 'vistek' (vistek)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=344743
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>>
>
> * Jason Lee *
> Senior Java Developer
> GlassFish Administration Console
>
> *Sun Microsystems, Inc.*
> Phone x31197/+1 405-343-1964
> Email jasondlee@sun.com
> Blog http://blogs.sun.com/jasondlee
> Blog http://blogs.steeplesoft.com
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net