Re: [forge-users] Generate entities (hibernate-tools plugin) has a classpath problem?
by Lincoln Baxter, III
We use jboss modules that provides osgi like features, which is the reason
why /lib isn't working. We need a feature added to modules in order to
support the extra use case. Actually its already requested to be able to
create module that accepts all resources in a directory as a pattern.
Working on that.
--
Lincoln Baxter's Droid
http://ocpsoft.com
"Keep it Simple"
On Oct 4, 2011 11:39 AM, "Jethro Bakker" <jethrobakker(a)gmail.com> wrote:
> Hello Lincoln,
>
> My first thought was OSGi, it does exactly what Forge need. But it is not
a simple solution. Spring Roo for example uses this kind of mechanism to
dynamically load JAR files.
>
> Since version 1.0 beta1 users don't have to put their dependencies in
$FORGE_HOME/lib, what was the mechanism you used in the past and why isn't
it working anymore?
>
> It is also possible to you use/write you own classloader to dynamically
load the JAR files, but this is not quite simple.
>
> Regards, Jethro
>
>
>
>
> Op 29 sep. 2011, om 06:52 heeft Lincoln Baxter, III het volgende
geschreven:
>
>> Yep, we just discovered this one.
>>
>> https://issues.jboss.org/browse/SEAMFORGE-336
>>
>> Ideas welcome.
>>
>> Sorry for the late reply.
>> ~Lincoln
>>
>> On Wed, Sep 21, 2011 at 4:30 AM, Jethro Bakker <jethrobakker(a)gmail.com>
wrote:
>> 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
>>
>>
>>
>>
>> _______________________________________________
>> 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"
>
> 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, 5 months
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, 5 months
Re: [forge-users] Context already active
by Thomas Frühbeck
Hi,
I am sorry for bothering, everything's fine now.
Build of forge plugin prettyfaces works.
Made a new application, and it works too. (May the problems have been
related to some update delay in Maven??)
Best regards,
Thomas
13 years, 5 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, 5 months