dev@glassfish.java.net

Re: build pe from source and configure-runtime failed?

From: Dinesh Patil <Dinesh.Patil_at_Sun.COM>
Date: Tue, 19 Dec 2006 13:26:13 -0800

Hong, comments inline.
Hong Zhang wrote:

> Hi, Dinesh
> Thanks for your reply. Is this something we plan to fix or it will
> stay this way? The problem with this workaround is it will take much
> longer to check out and build all ee modules even if I only need the
> PE part.

This issue is due to referring the class in admin-ee from single
instance (PE) server image, so we don't have PE only build from now on
with GlassFish V2. We have to checkout and use all the modules present
in GlassFish workspace. Instructions are updated accordingly.

> And we might want to update the build instruction doc page to
> reflect this too.

which build instructions are you referring to? I will remove "*-pe"
targets from the instructions if present anywhere, but here are the
latests instructions.
http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=BuildInformation
thanks
Dinesh

> Thanks,
>
> - Hong
>
>
> Dinesh Patil wrote:
>
>> Hong Zhang wrote:
>>
>>> I followed the instructions to build pe from source and create a pe
>>> domain. The commands I used:
>>> 1. maven bootstrap-all-pe checkout-pe build-pe
>>> 2. maven -o configure-runtime
>>
>>
>>
>> Since this class is present in admin-ee, we cannot use "-pe" goals to
>> build anymore.
>>
>> So use following build goals to create single instance (PE) domain.
>> 1. maven bootstrap-all checkout build
>> 2. maven -o configure-runtime
>> thanks
>> Dinesh
>>
>>> I got exception when creating domain, is this a known problem?
>>> Seems some EE class is needed from creating the pe domain?
>>>
>>> [hzhang_at_nmr bootstrap]$ maven -o configure-runtime
>>> __ __
>>> | \/ |__ _Apache__ ___
>>> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
>>> |_| |_\__,_|\_/\___|_||_| v. 1.0.2
>>>
>>>
>>> build:start:
>>>
>>>
>>> configure-runtime:
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver
>>> [mkdir] Created dir: /home/hzhang/files/sun/appserver/bin
>>> [echo] Current Java Version 1.5.0_10
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/config
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [copy] Copying 1 file to /home/hzhang/files/sun/appserver/bin
>>> [exec] Option adminuser deprecated, use --user instead.
>>> [exec] Dec 19, 2006 10:51:08 AM
>>> com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl
>>> getInstance
>>> [exec] null
>>> [exec] WARNING: Error loading pluggable features class
>>> com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
>>> [exec] java.lang.ClassNotFoundException:
>>> com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
>>> [exec] at
>>> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>> [exec] at java.security.AccessController.doPrivileged(Native
>>> Method)
>>> [exec] at
>>> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>> [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>> [exec] at
>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>>> [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> [exec] at
>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>> [exec] at java.lang.Class.forName0(Native Method)
>>> [exec] at java.lang.Class.forName(Class.java:164)
>>> [exec] at
>>> com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.getInstance(PluggableFeatureFactoryBaseImpl.java:122)
>>>
>>> [exec] at
>>> com.sun.enterprise.cli.commands.BaseLifeCycleCommand.createPluggableFeatureFactory(BaseLifeCycleCommand.java:117)
>>>
>>> [exec] at
>>> com.sun.enterprise.cli.commands.BaseLifeCycleCommand.<init>(BaseLifeCycleCommand.java:87)
>>>
>>> [exec] at
>>> com.sun.enterprise.cli.commands.CreateDomainCommand.<init>(CreateDomainCommand.java:96)
>>>
>>> [exec] at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> [exec] at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>
>>> [exec] at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>
>>> [exec] at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>> [exec] at java.lang.Class.newInstance0(Class.java:350)
>>> [exec] at java.lang.Class.newInstance(Class.java:303)
>>> [exec] at
>>> com.sun.enterprise.cli.framework.CommandFactory.createCommand(CommandFactory.java:76)
>>>
>>> [exec] at
>>> com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:146)
>>>
>>> [exec] at
>>> com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:65)
>>> [exec] Dec 19, 2006 10:51:08 AM
>>> com.sun.enterprise.cli.commands.BaseLifeCycleCommand
>>> createPluggableFeatureFactory
>>> [exec] WARNING: SERVER0009: Pluggable features using class
>>> com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
>>> could not be initialized. Server will run with default features.
>>> [exec] CLI130 Could not create domain, domain1
>>>
>>> BUILD FAILED
>>> File......
>>> /home/hzhang/files/workspaces/test/glassfish/bootstrap/maven.xml
>>> Element... ant:ant
>>> Line...... 436
>>> Column.... 76
>>> exec returned: 1
>>> Total time: 4 seconds
>>> Finished at: Tue Dec 19 10:51:09 EST 2006
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>