Security addon in Forge
by Ivan St. Ivanov
Hi folks,
I wanted to add a new addon to Forge that handles the Java EE security
topics:
- Add constraints to some resources
- Setup authentication mechanism (form, basic, digest, etc.)
- Assign realm to security constraints
- Create security roles
- If the realm is JDBC and JPA facet is installed, add an entity along with
some named queries
I looked in the Forge JIRA whether there is something like that and I found
this issue created almost a year and a half ago:
https://issues.jboss.org/browse/FORGEPLUGINS-152
I read in the description though, that the addon should be also able to
setup groups and users inside a realm. Isn't that too server specific if
the realm is not JDBC? Maybe we could continue the communication in the
issue, so whoever is interested my add themselves as a watcher there?
Cheers,
Ivan
9 years, 10 months
PermGen with JBoss add-on
by Antonio Goncalves
Hi all,
The other day on #IRC I mentioned having PermGen issues with the JBossAS
add-on. It's confirmed. During the HoL there are plenty of people who had
the same issue : install the JBoss add-on, start wildfly 8.1, build the
app, deploy it, go to the index.html page (fine), click on an Entity, bang
! PermGen
Alexis Hassler investigated it during the lab (see below). Basically, no
matter what PermGen you set, it's not taken into account.
Again, I really think this add-on should be looked after carefully, it's
very unstable.
Antonio
---------- Forwarded message ----------
From: Alexis Hassler <alexis.hassler(a)gmail.com>
Date: Tue, Nov 11, 2014 at 11:37 AM
Subject: Re: Forge + Wildfly VM arguments
To: Antonio Goncalves <antonio.goncalves(a)gmail.com>
Pas de changement avec
as-setup --server wildfly8 --installDir /opt/java/wildfly-8.1.0.Final/
--jvmargs "-Xmx512m -XX:MaxPermSize=256m"
Alexis
http://www.jtips.info, http://blog.alexis-hassler.com,
http://www.lyonjug.org
2014-11-11 11:22 GMT+01:00 Alexis Hassler <alexis.hassler(a)gmail.com>:
> Avec un wf externe, démarré avec as-start.
>
>
>
>
> Pour info, en démarrant un wf 8.1 en ligne de commande "normale" :
> -D[Standalone] -Xms64m -Xmx512m -XX:MaxPermSize=256m
> -Djava.net.preferIPv4Stack=true
> -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
> -Dorg.jboss.boot.log.file=/opt/java/wildfly-8.1.0.Final/standalone/log/server.log
> -Dlogging.configuration=file:/opt/java/wildfly-8.1.0.Final/standalone/configuration/logging.properties
>
> Alexis
> http://www.jtips.info, http://blog.alexis-hassler.com,
> http://www.lyonjug.org
>
>
9 years, 11 months
JPA setup command question
by Ivan St. Ivanov
Hi everybody,
I have the following usecase. I am developing a web application that uses
JPA with Eclipse Link and will be deployed on SAP HANA Cloud Platform
(think of it as Tomcat). Which means that I need the Eclipse Link
dependencies in the pom.xml in the compile scope. When I generated the
project and set up Eclipse Link, I got this in the pom:
<dependencies>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
However, I rather need something like:
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
</dependency>
I see in org.jboss.forge.addon.javaee.jpa.providers.EclipseLinkProvider:
@Override
public List<Dependency> listDependencies()
{
return Arrays.asList((Dependency)
DependencyBuilder.create("org.eclipse.persistence:eclipselink"),
(Dependency)
DependencyBuilder.create("org.eclipse.persistence:javax.persistence"));
}
So we already have functionality on provider level that knows which are the
dependencies. However, it seems that this method is not called. What was
the idea of having it? How can I make sure that the dependencies are
correctly configured?
I think that it has something to do with the type of the container: if it
is SAP HANA Cloud Platform, then find the dependencies for the JPA provider
and add them in the default scope of the pom.xml instead of adding
hibernate-jpa-2.0-api. If it is a full fledged application server, then we
can go with the API in provided scope. Something like this.
WDYT?
Thanks,
Ivan
9 years, 11 months
Building Forge with Java 8
by Ivan St. Ivanov
Hi everybody,
As some of you noticed, last night I was able to build and run Forge with
the latest early access build of Open JDK 9 (from the Jigsaw forest!). I
had to do just one manual workaround. I had to manually add the following
dependency to the javaee/impl/pom.xml and shell/impl/pom.xml:
<dependency>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>simple-api</artifactId>
<scope>provided</scope>
</dependency>
It was a problem that was already found and documented in this JIRA:
https://issues.jboss.org/browse/FORGE-2019
The JIRA says that this problem occurs with Java 8, build 20. So my
question is whether this is fixed in later builds of Java 8. If yes, I will
report this to the Open JDK folks to up-port the fix to Java 9 as well. If
not, I guess we should fix the poms of the respective projects?
Thanks,
Ivan
P.S. Sorry for the 'lazy web' style of message. I know I could have run the
build with newer Java 8 by myself :)
P.P.S. Thanks to Mani Sarkar from LJC that went the hard way last week and
found this workaround for me
9 years, 12 months
Hands-on Lab now available on the website
by George Gastaldi
Hello everybody,
I made the Hands-On lab tutorial available in the website: http://forge.jboss.org/document/hands-on-lab
There are still some rendering issues (images not being displayed, encoding issues), but we'll fix it in our Redoculous server (the document renderer).
Thanks goes to Antonio Gonçalves, Ivan St. Ivannov and Daniel Cunha and the rest of the Forge community for the contents.
Best Regards,
George Gastaldi
10 years
Funny exception in generating rest endoint
by Antonio Goncalves
Hi
During the HoL one guy had this problem (on windows) generating REST
endpoints. The generated code is ok, and everything works fine, but here is
the stack trace
---------- Forwarded message ----------
From: Ilya Masharov <ilya.masharov(a)gmail.com>
Date: 2014-11-11 10:30 GMT+01:00
Subject: Forge stacktrace
To: antonio.goncalves(a)gmail.com
11:29:22,655 SEVERE
[org.jboss.forge.addon.ui.impl.controller.AbstractCommandController]
(AeshProcess: 45) Error while notifying listeners:
java.lang.ClassCastException: java.util.ArrayList cannot be cast to
org.jboss.forge.addon.resource.FileResource
at
org.jboss.forge.addon.projects.Projects.getSelectedProject(Projects.java:37)
at
org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener.postCommandExecuted(ProjectBuildStatusListener.java:41)
at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) [:1.8.0_05]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.8.0_05]
at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_05]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
[furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
at
org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)
[furnace-api-2.10.1.Final.jar:2.10.1.Final]
at
org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)
[furnace-proxy-2.10.1.Final.jar:2.10.1.Final]
at
org.jboss.forge.addon.projects.ui.ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.postCommandExecuted(ProjectBuildStatusListener_$$_javassist_55c47aad-8fa7-4e5a-86e8-9fc7e27f9cef.java)
at
org.jboss.forge.addon.ui.impl.controller.AbstractCommandController.firePostCommandExecuted(AbstractCommandController.java:144)
[ui-impl-2.10.1.Final.jar:2.10.1.Final]
at
org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:89)
[ui-impl-2.10.1.Final.jar:2.10.1.Final]
at
org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)
[shell-impl-2.10.1.Final.jar:2.10.1.Final]
at
org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)
[aesh-0.56.1.jar:0.56.1]
at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)
[aesh-0.56.1.jar:0.56.1]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_05]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_05]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_05]
--
Antonio Goncalves (antonio.goncalves(a)gmail.com)
Software architect
Web site : www.antoniogoncalves.org
Blog: agoncal.wordpress.com
Feed: feeds2.feedburner.com/AntonioGoncalves
Paris JUG leader : www.parisjug.org
LinkedIn: www.linkedin.com/in/agoncal
_______________________________________________
cdi-dev mailing list
cdi-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev
Note that for all code provided on this list, the provider licenses the
code under the Apache License, Version 2 (
http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
provided on this list, the provider waives all patent and other
intellectual property rights inherent in such information.
--
Antonio Goncalves
Software architect, Java Champion and Pluralsight author
Web site <http://www.antoniogoncalves.org> | Twitter
<http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal> |
Pluralsight
<http://pluralsight.com/training/Authors/Details/antonio-goncalves> | Paris
JUG <http://www.parisjug.org> | Devoxx France <http://www.devoxx.fr>
10 years
Forge Meeting Minutes - 2014-11-05
by Lincoln Baxter, III
Minutes:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
Minutes (text):
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
Log:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
Meeting summary
---------------
* Agenda (lincolnthree, 16:04:43)
* Status Reports (lincolnthree, 16:07:31)
* I have no status to report other than a few housekeeping tasks and
meeting with some partners to discuss using Forge (lincolnthree,
16:08:02)
* I am working on the NetBeans Plugin integration. URL is private in
https://bitbucket.org/gastaldi/netbeans-plugin/ (gastaldi,
16:08:26)
* Had another talk yesterday on CDI using Forge, and still working on
the HoL (agoncal, 16:09:02)
* Next Forge release will take place on Nov, 7th (gastaldi, 16:10:15)
* I also began to review the Hands On Lab (lincolnthree, 16:10:24)
* I reviewed the Hands On Lab and pushed some minor fixes to the docs
(gastaldi, 16:10:54)
* Hands On Lab Status (lincolnthree, 16:19:07)
* Hol (gastaldi, 16:46:38)
* Website Status (gastaldi, 16:48:04)
* still waiting on more designs and approval to continue implementing
(lincolnthree, 16:49:54)
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
10 years