Forge find-plugin hangs if used behind a proxy
by Giancarlo Pioli
Hi everybody,
I am using forge 1.0.0 SNAPSHOT on Ubuntu 10.04 with java build
1.6.0_26-b03.
I am behind a proxy so I have tried to configure forge to use them. I have
tried setting FORGE_OPTS to "-Dhttp.proxyHost=localhost
-Dhttp.proxyPort=3128" but I have got this error:
[no project] giancarlo $ forge find-plugin jsf
Connecting to remote repository [
http://seamframework.org/service/File/148617]... ***ERROR*** [forge
find-plugin]
No route to host
So I have tried to configure the jvm to use the system proxies
(java.net.useSystemProxies=true on config file
/etc/java-6-sun/net.properties) but if I try to find the plugins the console
seems to hang and even using ctrl+c doesn't quit forge. The only thing I can
do is close the terminal window:
giancarlo@gp-fs:~$ forge
____ _____
/ ___| ___ __ _ _ __ ___ | ___|__ _ __ __ _ ___
\___ \ / _ \/ _` | '_ ` _ \ | |_ / _ \| '__/ _` |/ _ \ \\
___) | __/ (_| | | | | | | | _| (_) | | | (_| | __/ //
|____/ \___|\__,_|_| |_| |_| |_| \___/|_| \__, |\___|
|___/
[no project] giancarlo $ forge find-plugin jsf
Connecting to remote repository [
http://seamframework.org/service/File/148617]... ^C
[no project] giancarlo $ ^C
[no project] giancarlo $ ^C
[no project] giancarlo $
The same thing happens if I set explicitly the http/https proxy server and
proxy port properties.
Is
Thank you.
Giancarlo Pioli
13 years, 2 months
Re: [forge-users] Context already active
by Thomas Frühbeck
Hi Lincoln,
I tried to exclude rewrite-integration-faces by adding:
<dependency>
<groupId>com.ocpsoft.rewrite</groupId>
<artifactId>rewrite-integration-faces</artifactId>
<version>1.0.0.Alpha4</version>
<scope>provided</scope>
</dependency>
Which gave the following list of jars:
thomas@happy:~/java/jboss-as-7.0.1.Final/standalone/deployments> ls
myapp.war/WEB-INF/lib/
common-api-1.0.0.Final.jar
metawidget-core-1.30.jar
metawidget-jpa-1.30.jar seam-persistence-3.0.0.Final.jar
jboss-logging-3.0.0.Beta4.jar
metawidget-faces-1.30.jar
rewrite-api-1.0.0.Alpha4.jar seam-solder-3.0.0.CR4.jar
logging-api-1.0.0.Final.jar
metawidget-facesannotation-1.30.jar
rewrite-api-servlet-1.0.0.Alpha4.jar
metawidget-annotation-1.30.jar
metawidget-forge-scaffold-1.0.0-20110929.230305-33.jar
rewrite-impl-config-1.0.0.Alpha4.jar
metawidget-beanvalidation-1.30.jar
metawidget-java5-1.30.jar
rewrite-impl-servlet-1.0.0.Alpha4.jar
Unfortunately the problem persists.
Caused by: java.lang.IllegalStateException: Context is already active
at
org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:311)
[weld-core-1.1.2.Final.jar:2011-07-26 15:02]
.....
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
[jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]
Then I tried to build a new app using Forge 1.0.0.Beta3.
Now I get the following Exception when installing the prettyfaces plugin:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest
____ _____
***ERROR*** Exception encountered: [Error: unable to invoke method: shell]
[Near : {... \"");shell("echo \" / ___| ___ ....}]
^
[Line: 1, Column: 91] (type "set VERBOSE true" to enable stack traces)
? Use [/tmp/abstractshelltest6239016799597012883.tmp/test] as project
directory? [Y/n]
***SUCCESS*** Created project [test] in new working directory
[/tmp/abstractshelltest6239016799597012883.tmp/test]
Tests run: 7, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 31.258
sec <<< FAILURE!
Results :
Tests in error:
testInstallPrettyfaces(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
org.jboss.forge.shell.events.CommandExecuted.<init>(Lorg/jboss/forge/shell/events/CommandExecuted$Status;Lorg/jboss/forge/shell/command/CommandMetadata;)V
testAutoMap(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Context is already active
testAutoMap(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Unable to load current conversations
from the associated request, something went badly wrong when associate()
was called
testListenToEventPlainHtmlWithJSFInstalled(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Context is already active
testListenToEventPlainHtmlWithJSFInstalled(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Unable to load current conversations
from the associated request, something went badly wrong when associate()
was called
testRegex(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Context is already active
testRegex(com.ocpsoft.forge.prettyfaces.PrettyFacesPluginTest):
java.lang.IllegalStateException: Unable to load current conversations
from the associated request, something went badly wrong when associate()
was called
Am 30.09.2011 20:25, schrieb Lincoln Baxter, III:
> Try removing the Rewrite Faces Integration (you'll need to add an
> exclusion to your POM.)
>
> On Fri, Sep 30, 2011 at 2:20 AM, Lincoln Baxter, III
> <lincolnbaxter(a)gmail.com <mailto:lincolnbaxter@gmail.com>> wrote:
>
> Will take a look at this in the morning. Could you please email
> the users list when asking questions? This way everyone can
> benefit front the answers. Thanks!
>
> --
> Lincoln Baxter's Droid
> http://ocpsoft.com
> "Keep it Simple"
>
> On Sep 30, 2011 2:17 AM, "Thomas Frühbeck" <fruehbeck(a)aon.at
> <mailto:fruehbeck@aon.at>> wrote:
> > Hi Lincoln,
> >
> > when trying to create an entity I get the "Context already active"
> > exception:
> >
> > Caused by: java.lang.IllegalStateException: Context is already
> active
> > at
> >
> org.jboss.weld.context.AbstractConversationContext.activate(AbstractConversationContext.java:311)
>
>
13 years, 2 months
Re: [forge-users] Forge 1.0.0.SNAPSHOT incompatible with forge plugin repository
by Lincoln Baxter, III
Resolved
--
Lincoln Baxter's Droid
http://ocpsoft.com
"Keep it Simple"
On Sep 30, 2011 1:55 AM, "Thomas Frühbeck" <fruehbeck(a)aon.at> wrote:
> you where right, I found the dependency org.jboss.forge:forge-shell-api
> configured as "compile".
> After setting it to "provided" deployment worked.
> Thanks, looking forward to beta 3
> :-)
>
> Am 30.09.2011 00:27, schrieb Lincoln Baxter, III:
>> It looks like the forge libraries were pulled into your application
>> somehow. That is not correct.
>>
>> Also, you no longer need "DEFFAULT_PLUGIN_REPO", in fact. When
>> upgrading to beta 3 (releasing in about 15 minutes), I recommend
>> deleting your entire ~/.forge directory and starting fresh.
>>
>> ~Lincoln
>>
>>
13 years, 2 months
Forge 1.0.0.SNAPSHOT incompatible with forge plugin repository
by Thomas Frühbeck
Hi,
I tried to setup and use Forge following the documentation, but I found
some incompatibilities of forge and the plugins, especially with
arquillian and prettyfaces.
Caused by: java.lang.ClassNotFoundException:
org.jboss.shrinkwrap.descriptor.spi.Node
from [Module "com.ocpsoft.forge.prettyfaces-plugin:1.0.0.Alpha4"
from local module loader @5f159092 (roots:
/home/thomas/java/forge-1.0.0-SNAPSHOT/modules,/home/thomas/.forge/plugins)]
I found that Forge is already built with shrinkwrap.version = 1.0.0-beta-5
but prettyfaces-forge-plugin refers to forge.version = 1.0.0.Alpha-4
which refers to an older version of shrinkwrap.
I then tried to modify forge-test-harness to make it build with
shrinkwrap 1.0.0.beta-5 and arquillian 1.0.0-SNAPSHOT which did not look
too difficult. But after some refactoring it built but it did not work.
I then tried to revert to forge.version 1.0.0.Alpha3 but this did not
produce a working app on jboss-as-7.0.1.
Somehow I seem to have reached some dead end :-/
Could you please give a short wrap-up what the current list of
dependencies and runtime environments are to produce a working application.
Thanks and regards,
Thomas
13 years, 2 months
Problem installing new commands 1.0.0-Beta2
by Cordenier Christophe
Hi
I am currently testing seam forge 1.0.0-beta2 and especially trying to create custom plugins. But after following the documentation and installing the plugin successfully, seam forge still does not recognize my new commands...
After setting the @Alias and @Named of my plugin to "forgest", implementing a default command and let the sample one 'run' as is. i installed my new plugin as follows :
[no project] Temp $ forge source-plugin d:\Temp\forgest
***INFO*** Invoking build with underlying build system.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building forgest 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ forgest ---
[INFO] Deleting d:\Temp\forgest\target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ forgest
---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ forgest ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
uild is platform dependent!
[INFO] Compiling 1 source file to d:\Temp\forgest\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @
forgest ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ forge
st ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ forgest ---
[INFO] Surefire report directory: d:\Temp\forgest\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ forgest ---
[INFO] Building jar: d:\Temp\forgest\target\forgest.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.141s
[INFO] Finished at: Fri Sep 23 09:48:00 CEST 2011
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
***SUCCESS*** Build successful.
***INFO*** Installing plugin artifact.
? An existing installation for version [1.0.0-SNAPSHOT] of this plugin was foun
d. Replace it? [Y/n] Y
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
***SUCCESS*** Installed from [forgest] successfully.
***INFO*** Please restart Forge to complete plugin installation.
Wrote D:\/Documents and Settings/a136316/.forge/plugins/net/atos/test/forgest/1.
0.0-SNAPSHOT/forgest.jar
Wrote D:\/Documents and Settings/a136316/.forge/plugins/net/atos/test/forgest/1.
0.0-SNAPSHOT/module.xml
Wrote D:\/Documents and Settings/a136316/.forge/plugins/net/atos/test/forgest/de
pendencies/1.0.0-SNAPSHOT/javax.inject-1.jar
Wrote D:\/Documents and Settings/a136316/.forge/plugins/net/atos/test/forgest/de
pendencies/1.0.0-SNAPSHOT/module.xml
Wrote D:\/Documents and Settings/a136316/.forge/plugins/org/jboss/forge/plugins/
main/module.xml
[no project] Temp $ forge restart
Windows? Really? Okay...
[no project] Temp $ forgest
***ERROR*** No such command: forgest
Any clue ?
Christophe Cordenier
________________________________
Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? d'Atos ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.
This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
13 years, 2 months
Re: [forge-users] Hibernate Tools Plugin - SLF4J Error
by Lincoln Baxter, III
Hmmm. Actually we have no way of supplying Jars to plugins anymore. This
poses a problem for the Hibernate tools plugin. This will need investigation
:(
You could (in theory) add a JAR to the plugin module where it is installed:
.forge/plugins/org/jboss/hibernate/forge/hibernate-tools-plugin/dependencies/1.0.0-SNAPSHOT-***
and also add that jar as a resource in the module.xml file
.forge/plugins/org/jboss/hibernate/forge/hibernate-tools-plugin/dependencies/1.0.0-SNAPSHOT-***/modules.xml
That should do it, sorry it's not easier :(
https://issues.jboss.org/browse/SEAMFORGE-336
~Lincoln
On Fri, Sep 23, 2011 at 7:14 PM, Travis De Silva <traviskds(a)gmail.com>wrote:
> Hi Lincoln,
>
> Thanks for the prompt reply. Don't you jboss devs ever sleep :)
>
> I am using forge-1.0.0.Beta2 and hibernate-tools-plugin:1.0.0-SNAPSHOT
>
> The java.runtime.version: 1.6.0_26-b03-384-10M3425 (running on a Mac Pro)
>
> Also I had to create the lib directory under $FORGE_HOME/. It was not
> available by default. Wonder if I need to config anything to make it part of
> the classpath.
>
> Cheers
> Travis
>
>
>
>
> On Sat, Sep 24, 2011 at 8:58 AM, Lincoln Baxter, III <
> lincolnbaxter(a)gmail.com> wrote:
>
>> Hi Travis,
>>
>> Sorry you are having trouble with this. Which version of Forge and the
>> plugin are you using?
>>
>> Thanks,
>> ~Lincoln
>>
>> On Fri, Sep 23, 2011 at 6:38 PM, Travis De Silva <traviskds(a)gmail.com>wrote:
>>
>>> Hi,
>>>
>>> Does anyone else get this error when they run generate-entities
>>>
>>>
>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>> further details.
>>> ***ERROR*** [generate-entities] org/slf4j/impl/StaticLoggerBinder
>>>
>>> I have been checking all the user forums and have copied the
>>> slf4j-jdk14-1.5.8.jar to $FORGE_HOME/lib in addition to copying the jdbc
>>> driver. But I still keep getting this error.
>>>
>>> I even copied the other SLF4J implementation jars ( only one at a time)
>>> but it did not help.
>>>
>>> I haven't found anyone else having this issue so was wondering if I am
>>> doing something incorrect and if anyone could give some tips would be great.
>>>
>>>
>>> _______________________________________________
>>> forge-users mailing list
>>> forge-users(a)lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-users
>>>
>>>
>>
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.com
>> http://scrumshark.com
>> "Keep it Simple"
>>
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 2 months
Scaffolding with Richfaces
by Aron Mertineit
Is there a possibility to change the scaffold type to Richfaces?
I already installed the richfaces plugin. The argument "--scaffoldType
richfaces" returns an error.
13 years, 2 months
Hibernate Tools Plugin - SLF4J Error
by Travis De Silva
Hi,
Does anyone else get this error when they run generate-entities
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
***ERROR*** [generate-entities] org/slf4j/impl/StaticLoggerBinder
I have been checking all the user forums and have copied the
slf4j-jdk14-1.5.8.jar to $FORGE_HOME/lib in addition to copying the jdbc
driver. But I still keep getting this error.
I even copied the other SLF4J implementation jars ( only one at a time) but
it did not help.
I haven't found anyone else having this issue so was wondering if I am doing
something incorrect and if anyone could give some tips would be great.
13 years, 2 months
Generate entities (hibernate-tools plugin) has a classpath problem?
by Jethro Bakker
Hello,
When trying to generate entities from an existing database I get the following error:
generate-entities --url jdbc:mysql:localhost:3306/vis --driver com.mysql.jdbc.Driver --dialect org.hibernate.dialect.MySQL5Dialect
? In which package you'd like to create this @Entity, or enter for default: nl.flusso.model
***ERROR*** [generate-entities] Could not initialize class org.hibernate.cfg.JDBCMetaDataConfiguration
Regards, Jethro Bakker
Mob: +31 6 1002 94 92
Email: j.bakker(a)flusso.nl
Flusso BV
Hamersveldsweg 126a
3833 GV Leusden
Web: www.flusso.nl
13 years, 2 months