[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable

2008-11-11 Thread sisepago
Here is my pom.xml

project xmlns=http://maven.apache.org/POM/4.0.0;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
  | modelVersion4.0.0/modelVersion
  | groupIdorg.orm-sys.ejb3/groupId
  | artifactIdormsys-ejb31-embeddable/artifactId
  | packagingjar/packaging
  | version1.0-SNAPSHOT/version
  | nameormsys-ejb31-embeddable/name
  | urlhttp://.orm-sys.org/url
  | 
  | build
  | plugins
  | !-- Specify the compiler options and settings --
  | plugin
  | groupIdorg.apache.maven.plugins/groupId
  | artifactIdmaven-compiler-plugin/artifactId
  | version2.0.2/version
  | configuration
  | source1.5/source
  | target1.5/target
  | showDeprecationfalse/showDeprecation
  | showWarningsfalse/showWarnings
  | /configuration
  | /plugin
  | /plugins
  | /build
  | 
  | repositories
  | repository
  | idjboss-snapshots/id
  | nameJBoss Snapshot Repository/name
  | urlhttp://snapshots.jboss.org/maven2/url
  | releases
  | enabledfalse/enabled
  | /releases
  | snapshots
  | enabledtrue/enabled
  | /snapshots
  | /repository
  | repository
  | idjboss-releases/id
  | nameJBoss Release Repository/name
  | urlhttp://repository.jboss.org/maven2/url
  | releases
  | enabledtrue/enabled
  | /releases
  | snapshots
  | enabledfalse/enabled
  | /snapshots
  | /repository
  | /repositories
  | 
  | dependencies
  | dependency
  | groupIdorg.jboss.ejb3/groupId
  | artifactIdjboss-ejb3-embedded/artifactId
  | version1.0.0-SNAPSHOT/version
  | /dependency
  | dependency
  | groupIdjunit/groupId
  | artifactIdjunit/artifactId
  | version[4,)/version
  | scopetest/scope
  | /dependency
  | /dependencies
  | 
  | /project

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4188364#4188364

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4188364
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable

2008-11-11 Thread sisepago
For now I can now compile my small test case:
env.: mac os x, Maven version: 2.0.9, Java version: 1.5.0_16



  | /**
  |  * Unit test for simple App.
  |  */
  | public class HelloBeanTest {
  | 
  | private static final Logger log = Logger.getLogger(HelloBeanTest.class);
  | 
  | private static String getBaseURLToResource( String resource ) {
  | URL url = 
Thread.currentThread().getContextClassLoader().getResource(resource);
  | String s = url.toString();
  | return s.substring(0, s.length() - resource.length());
  | }
  | 
  | @Test
  | public void test1() throws NamingException {
  | log.info(Test #1);
  | 
  | Properties properties = new Properties();
  | // Not according to spec!
  | properties.setProperty(EJBContainer.EMBEDDABLE_MODULES_PROPERTY, 
getBaseURLToResource(org/ormsys/ejb3/HelloBean.class));
  | EJBContainer container = 
EJBContainer.createEJBContainer(properties);
  | 
  | // Note that global naming isn't working yet.
  | InitialContext ctx = new InitialContext();
  | Hello bean = (Hello)ctx.lookup(HelloBean/local);
  | 
  | String now = new Date().toString();
  | String actual = bean.sayHello(now);
  | assertEquals(Hello  + now, actual);
  | 
  | container.close();
  | }
  | 
  | }

but testing with mvn command mvn test doesn't work, because of 
java.lang.NoClassDefFoundError: org/jboss/metadata/process/chain/ProcessorChain.
here is the error trace:

12:39:59,564 INFO  [HelloBeanTest] Test #1
  | 12:39:59,830 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/embedded-bootstrap-beans.xml
  | 12:40:01,282 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/ejb-deployers-beans.xml
  | 12:40:01,459 ERROR [AbstractKernelController] Error installing to 
PreInstall: name=Ejb3MetadataProcessingDeployer state=Real
  | java.lang.NoClassDefFoundError: 
org/jboss/metadata/process/chain/ProcessorChain
  | at java.lang.Class.getDeclaredConstructors0(Native Method)
  | at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
  | at java.lang.Class.getDeclaredConstructors(Class.java:1836)
  | at 
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredConstructors(IntrospectionTypeInfoFactoryImpl.java:489)
  | at 
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:146)
  | at 
org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:424)
  | at 
org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getConstructors(AbstractBeanInfoFactory.java:207)
  | at 
org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:152)
  | at 
org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:87)
  | at 
org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:80)
  | at 
org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:77)
  | at 
org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInfo(AbstractKernelConfigurator.java:96)
  | at 
org.jboss.kernel.plugins.dependency.PreInstallAction.installActionInternal(PreInstallAction.java:90)
  | at 
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
  | at 
org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
  | at 
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
  | at 
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
  | at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
  | at 

[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable

2008-11-11 Thread sisepago
with this dependencies configuration on the pom.xml all thing work fine through 
the comannd mvn clean install. That means jboss-ejb3-embedded has a 
dependency jboss-metadata-1.0.0.CR1 and maybe another dependencies have also 
dependency jboss-metadata-1.0.0.CR5 and I do not know why?

project xmlns=http://maven.apache.org/POM/4.0.0;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
  | modelVersion4.0.0/modelVersion
  | groupIdorg.ormsys.ejb3/groupId
  | artifactIdormsys-ejb31-embeddable/artifactId
  | packagingjar/packaging
  | version1.0-SNAPSHOT/version
  | nameormsys-ejb31-embeddable/name
  | urlhttp://.orm-sys.org/url
  | 
  | build
  | plugins
  | !-- Specify the compiler options and settings --
  | plugin
  | groupIdorg.apache.maven.plugins/groupId
  | artifactIdmaven-compiler-plugin/artifactId
  | version2.0.2/version
  | configuration
  | source1.5/source
  | target1.5/target
  | showDeprecationfalse/showDeprecation
  | showWarningsfalse/showWarnings
  | /configuration
  | /plugin
  | /plugins
  | /build
  | 
  | repositories
  | repository
  | idjboss-snapshots/id
  | nameJBoss Snapshot Repository/name
  | urlhttp://snapshots.jboss.org/maven2/url
  | releases
  | enabledfalse/enabled
  | /releases
  | snapshots
  | enabledtrue/enabled
  | /snapshots
  | /repository
  | repository
  | idjboss-releases/id
  | nameJBoss Release Repository/name
  | urlhttp://repository.jboss.org/maven2/url
  | releases
  | enabledtrue/enabled
  | /releases
  | snapshots
  | enabledfalse/enabled
  | /snapshots
  | /repository
  | /repositories
  | 
  | dependencies
  | dependency
  | groupIdorg.jboss.ejb3/groupId
  | artifactIdjboss-ejb3-embedded/artifactId
  | version1.0.0-SNAPSHOT/version
  | exclusions
  | exclusion
  | groupIdorg.jboss.metadata/groupId
  | artifactIdjboss-metadata/artifactId
  | /exclusion
  | /exclusions
  | /dependency
  | dependency
  | groupIdorg.jboss.metadata/groupId
  | artifactIdjboss-metadata/artifactId
  | version1.0.0.CR5/version
  | /dependency
  | dependency
  | groupIdjunit/groupId
  | artifactIdjunit/artifactId
  | version[4,)/version
  | scopetest/scope
  | /dependency
  | /dependencies
  | 
  | /project

But with problem through eclipse Run As - JUnit Test and here is the error 
trace.

@Carlo what do you thing, where the can be?  




  | 15:09:21,383 INFO  [HelloBeanTest] Test #1
  | 15:09:21,635 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/embedded-bootstrap-beans.xml
  | 15:09:23,040 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/ejb-deployers-beans.xml
  | 15:09:23,385 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/namingserver-beans.xml
  | 15:09:23,484 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/aop-beans.xml
  | 15:09:23,663 INFO  [JBossEJBContainer] Deploying 
jar:file:/Users/sp/.m2/repository/org/jboss/ejb3/jboss-ejb3-embedded/1.0.0-SNAPSHOT/jboss-ejb3-embedded-1.0.0-SNAPSHOT.jar!/META-INF/transactionmanager-beans.xml
  | 15:09:23,727 INFO  [JBossEJBContainer] Deploying 

[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable

2008-11-10 Thread sisepago
Hi Carlo,

today, I tried one more time to see, if I can more experiment with EJB3.1 
Embeddable but without sucess.
After a  maven command call mvn eclipse:clean eclipse:eclipse, I got this 
error may you can know where is the matter here:

207b downloaded
  | Downloading: 
http://snapshots.jboss.org/maven2/jboss/jbossts/jbossts-common/4.4.0.CR1/jbossts-common-4.4.0.CR1.pom
  | Downloading: 
http://repository.jboss.org/maven2/jboss/jbossts/jbossts-common/4.4.0.CR1/jbossts-common-4.4.0.CR1.pom
  | 203b downloaded
  | [INFO] 

  | [ERROR] FATAL ERROR
  | [INFO] 

  | [INFO] version was null for 
org.jboss.deployers:jboss-deployers-structure-spi
  | [INFO] 

  | [INFO] Trace
  | java.lang.NullPointerException: version was null for 
org.jboss.deployers:jboss-deployers-structure-spi
  | at 
org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:364)
  | at 
org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:225)
  | at 
org.apache.maven.artifact.resolver.ResolutionNode.getDependencyTrail(ResolutionNode.java:118)
  | at 
org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:96)
  | at 
org.apache.maven.plugin.ide.AbstractIdeSupportMojo.doDependencyResolution(AbstractIdeSupportMojo.java:543)
  | at 
org.apache.maven.plugin.eclipse.EclipsePlugin.doDependencyResolution(EclipsePlugin.java:1526)
  | at 
org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:490)
  | at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
  | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
  | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
  | at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
  | at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
  | at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
  | at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
  | [INFO] 

  | [INFO] Total time: 6 minutes 9 seconds
  | [INFO] Finished at: Mon Nov 10 20:50:56 CET 2008
  | [INFO] Final Memory: 35M/127M
  | [INFO] 
 

best regards.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4188262#4188262

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4188262
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB 3.1/2 Embeddable Usage

2008-10-09 Thread sisepago
After my first try with EJB 3.1/2 Embeddable Usage yesterday, I ran on trouble 
and then I exchanged mails with Carlo. May be this can help someone.
have fun! 

There are a lot of bugs in Maven which leads into getting an unstable 
classpath configuration. What you're seeing is a wrong version of a 
component showing up.

Make sure you have Maven 2.0.9 installed and try to regenerate the 
.classpath file (mvn eclipse:eclipse).

If all fails 'mvn -Dverbose=true dependency:tree' and compare this with 
what you see in Eclipse.

Also, post on the forum so others might benefit. :-)

Carlo

Serge Emmanuel Pagop wrote:
 Hi carlo,

 firstly great job with EJB 3.1 Embeddable prototype, and today I took 
 a little time to try a simple example in eclipse and maven, but with 
 suprise the 
 test case run well throught the maven command mvn test and the same 
 example does not work with testing on eclipse Run As - JUnit Test.
 May be you can give some tipps, how I can run the test case on 
 eclipse. Thanks. 

 I followed the maven pom installation step as on the jboss wiki 
 site: http://wiki.jboss.org/wiki/EJB31Embeddable

 1) here is the test case 
 public class HelloBeanTest {

 private static final Logger log = 
 Logger.getLogger(HelloBeanTest.class);

 private static String getBaseURLToResource( String resource ) {
 URL url = 
 Thread.currentThread().getContextClassLoader().getResource(resource);
 String s = url.toString();
 return s.substring(0, s.length() - resource.length());
 }

 @Test
 public void test1() throws NamingException {
 log.info(Test #1);

 Properties properties = new Properties();
 // Not according to spec!
 
 properties.setProperty(EJBContainer.EMBEDDABLE_MODULES_PROPERTY, 
 getBaseURLToResource(org/ormsys/ejb3/HelloBean.class));
 EJBContainer container = 
 EJBContainer.createEJBContainer(properties);

 // Note that global naming isn't working yet.
 InitialContext ctx = new InitialContext();
 Hello bean = (Hello)ctx.lookup(HelloBean/local);

 String now = new Date().toString();
 String actual = bean.sayHello(now);
 assertEquals(Hello  + now, actual);

 container.close();
 }

 }

 2) Here is the error trace

 java.lang.NoSuchFieldError: factoryFinder
 at org.jboss.virtual.VFS.init(VFS.java:71)
 at org.jboss.virtual.VFS.(VFS.java:51)
 at 
 org.jboss.ejb3.embedded.JBossEJBContainer.deployMain(JBossEJBContainer.java:140)
 at 
 org.jboss.ejb3.embedded.JBossEJBContainer.deployMain(JBossEJBContainer.java:134)
 at 
 org.jboss.ejb3.embedded.JBossEJBContainer.(JBossEJBContainer.java:88)
 at 
 org.jboss.ejb3.embedded.JBossEJBContainerProvider.createEJBContainer(JBossEJBContainerProvider.java:56)
 at javax.ejb.EJBContainer.createEJBContainer(EJBContainer.java:99)
 at org.ormsys.ejb3.HelloBeanTest.test1(HelloBeanTest.java:36)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
 at 
 org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
 at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
 at 
 org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
 at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
 at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
 at 
 org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
 at 
 org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
 at 
 org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
 at 
 org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
 at 
 org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
 at 
 org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
 at 
 org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
 at 
 org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
 at 
 org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4181154#4181154

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181154
___
jboss-user 

[jboss-user] [Installation, Configuration DEPLOYMENT] - Facelets Problem with a builded JBoss 5.0.0.CR1

2008-04-09 Thread sisepago
HI all, Hi Ales

today I wanted to test some JBoss 5.x features and I builded JBoss from sources 
and then tried my Java EE test application (EAR package with JPA-JAR, EJB3-JAR, 
WS-JAR and WAR {JSF and Facelets} module).
After the deploy into JBoss 5.0.0.CR1, I requested my web context-root, but no 
reponse came back.
Here is the cryptical output from the server.log file

13:07:59,562 ERROR [STDERR] Apr 9, 2008 1:07:59 PM 
com.sun.facelets.compiler.Compiler initialize
  | SEVERE: Missing Built-in Tag Libraries! Make sure they are included within 
the META-INF directory of Facelets' Jar   

and then I searched out through the forum and It seems that Ales fix the 
problem but the code is maybe not yet in jboss svn 
reposhttp://www.jboss.com/index.html?module=bbop=viewtopict=129291postdays=0postorder=ascstart=10
 

Was the error already fixed or I have to configure somethings else?

Ths.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4142813#4142813

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4142813
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: PermGen Space

2008-03-14 Thread sisepago
Hi patrickdalla,

 take a look at my blog, there I explained how to solve the 
java.lang.OutOfMemoryError: PermGen space problem.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4136600#4136600

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136600
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: entity bean

2008-03-08 Thread sisepago
do you deploy your ejb component into a jar other into an ear?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4135073#4135073

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: How to Unit Test EJB 3.0

2008-02-29 Thread sisepago
you can use JBoss Embedded or the other alternative is to use spring framework.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4133244#4133244

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4133244
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Customized CMS

2008-02-24 Thread sisepago
Hi all,

My Goal is to create a new page with a cms content. May be some one can check 
these descriptor configurations and gives me some advice, if that correct or 
not.

Thanks in advance.

my web archive structure looks like this:

myCMSPortlet.war
  | +---WEB-INF
  |+-portlet.xml
  |+-portlet-object.xml
  |+-portlet-instance.xml
  |+-web.xml

I know that in JBP any windows of the portal can be configured to display CMS 
content.

1) portlet.xml ( is that correct?)

?xml version=1.0 encoding=UTF-8?
  | portlet-app xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
  |  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  
xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
  |  
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
  |  version=1.0
  |portlet
  |   descriptionMy Content Management System Portlet/description
  |   portlet-nameMyCMSPortlet/portlet-name
  |   display-nameMy Content Management System Portlet/display-name
  |   portlet-classorg.jboss.portal.core.cms.ui.CMSPortlet/portlet-class
  |   supports
  |  mime-typetext/html/mime-type
  |  portlet-modeVIEW/portlet-mode
  |  portlet-modeEDIT_CONTENT/portlet-mode
  |   /supports
  |   portlet-preferences
  | preference
  |  nameindexpage/name
  | value/default/myfile.html/value
  | /preference
  | /portlet-preferences
  |/portlet
  | /portlet-app

2-portlet-object.xml ( is that correct?)

?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE deployments PUBLIC
  |-//JBoss Portal//DTD Portal Object 2.6//EN
  |http://www.jboss.org/portal/dtd/portal-object_2_6.dtd;
  | deployments
  | deployment
  | if-existsoverwrite/if-exists
  | parent-refdefault/parent-ref
  | page
  | page-nameMyCMSPage/page-name
  | 
  | window
  |  window-nameMyCMSWindow/window-name
  | content
  |content-typecms/content-type
  |
content-uri/default/myfile.html/content-uri
  |/content
  |regioncenter/region
  |height1/height
  | /window
  | 
  | properties
  | property
  | namelayout.id/name
  | value1column/value
  | /property
  | /properties
  | /page
  | /deployment
  | /deployments
  | 

3- portlet-instance.xml ( is that correct?)

!DOCTYPE deployments PUBLIC
  |-//JBoss Portal//DTD Portlet Instances 2.6//EN
  |http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd;
  | 
  | deployments
  |deployment
  |   instance
  |  instance-idCMSPortletInstance/instance-id
  |  portlet-refMyCMSPortlet/portlet-ref
  |   /instance
  |/deployment
  | /deployments


I got the same exceptional error when I deployed  the firstly application  in 
$JBOSS_HOME/server/default/deploy and secondly in 
$JBOSS_HOME/server/default/deploy/jboss_portal.sar

ERROR: 14:19:46,989 ERROR [STDERR] Caused by: javax.portlet.PortletException: 
Cannot start CMS portlet due to service unavailability


  | 
  | 
  | 14:19:46,978 ERROR [STDERR] 
org.jboss.portal.portlet.container.PortletInitializationException: The portlet 
MyCMSPortlet threw a portlet exception during init
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:260)
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:135)
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:151)
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:96)
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.add(PortalDeploymentInfoContext.java:84)
  | 14:19:46,979 ERROR [STDERR] at 
org.jboss.portal.server.deployment.jboss.ServerDeployer.registerFactory(ServerDeployer.java:134)
  | 14:19:46,979 ERROR [STDERR] at 

[jboss-user] [EJB 3.0] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kuendigen wir die Gruendung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschaeftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org fuer unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130529#4130529

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130529

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kuendigen wir die Gruendung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschaeftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org fuer unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130531#4130531

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130531

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kuendigen wir die Gruendung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschaeftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org fuer unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130532#4130532

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130532

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
t`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kuendigen wir die Gruendung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschaeftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org fuer unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130533#4130533

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130533

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - The foundation of the JBoss User Group Munic

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kuendigen wir die Gruendung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschaeftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org fuer unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130535#4130535

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130535

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kuendigen wir die Gründung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschaeftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org fuer unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130528#4130528

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130528

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kündigen wir die Gründung der JBoss User Group in Muenchen an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschäftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG Muenchen 
http://www.jbug-munich.org für unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130527#4130527

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130527

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - The foundation of the JBoss User Group Munich

2008-02-19 Thread sisepago
It`s our pleasure to announce to you the foundation of the JBoss User Group 
Munich http://www.jbug-munich.org!
The first meeting is already scheduled for the 31st March 2008 with the 
JBoss/Seam expert speaker Francis Pouatcha (technical lead at ADORSYS Ltd.). He 
will present an exciting hot topic from JBossWorld Orlando 2008 entitled EJB3, 
SEAM, JSF and RichFaces on JBoss 4.2.0. We are looking forward to welcome you 
to an informative and enjoyable evening. To stay tuned you should register to 
our mailing list (([EMAIL PROTECTED]) on the JBUG Munich homepage 
http://www.jbug-munich.org.

Hiermit kündigen wir die Gründung der JBoss User Group in München an 
http://www.jbug-munich.org!
Zum ersten Treffen am 31. März 2008 erwarten wir den JBoss/Seam Experten 
Francis Pouatcha (Geschäftsführer und Technischer Leiter ADORSYS Ltd.) mit 
einem spannenden Vortrag direkt von der JBossWorld Orlando 2008 zum Thema 
EJB3, SEAM, JSF and RichFaces on JBoss 4.2.0. Wir freuen uns, Sie zu einem 
informativen und unterhaltsamen Abend willkommen zu heissen! Um nichts zu 
verpassen sollten Sie sich noch heute auf der Homepage der JBUG München 
http://www.jbug-munich.org für unsere Mailing List ([EMAIL PROTECTED]) 
registrieren.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4130526#4130526

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4130526

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Portal Development Tools

2008-01-30 Thread sisepago
for the development of portlets, I use Eclipse and JBossTools and for a 
standard example takes a look at jboss portal site.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4124683#4124683

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124683
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - how to change the default themes in the jboss-portal?

2008-01-30 Thread sisepago
Hi all,

I' am trying to redesign my jboss portal and for now I have a question:

because I removed all themes except renaissance, how or where can I configure 
the portal to use my logo and not the JBossPortal logo?
  I tried to adjust the css portal_style.css in renaissance theme, but 
everytime when I restart the server instance, the jbossportal logo is always 
there, although I changed the url to my logo in the portal_style.css 

change I made in the portal_style.css
  | 
  | 
$JBOSS_HOMEl/server/default/deploy/jboss-portal.sar/portal-core.war/themes/renaissance/portal_style.css
  | 
  | #logoName {
  |background-image: url( images/logos/mylogo.jpg );
  |background-repeat: no-repeat;
  |float: left;
  |width: 250px;
  |height: 25px;
  |z-index: 2;
  |position: absolute;
  |left: 20px;
  |top: 10px;
  | }

thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4124812#4124812

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124812
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Cannot join @OneToOne on non-PK fields?

2006-11-13 Thread sisepago
use the referencedColumnName( ) attribute of @JoinColumn if you want to map a 
field other than a primary-key column, but this field must be unique

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985455#3985455

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985455
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Cannot join @OneToOne on non-PK fields?

2006-11-13 Thread sisepago
# @JoinColumn(name=status, referencedColumnName=code)
-
please read the jpa spec to understand how to use @JoinColumn: you can only use 
one of this attributes not both, because if you use both, name=status is used 
as referenced key

# Lazy fetching has no problem, because I also use it:

@javax.persistence.Entity
  | public class Customer implements java.io.Serializable{
  |/** The serialVersionUID */
  |private static final long serialVersionUID = 1L;
  |private long id;
  |private String lastName;
  |private String firstName;
  |private Address address;
  |
  |#1 can be used
  |@javax.persistence.OneToOne(cascade={CascadeType.ALL}, 
fetch=FetchType.LAZY)
  |@javax.persistence.JoinColumn(name=ADDRESSID)
  | 
  |#2 can also be used
  |@javax.persistence.OneToOne(cascade={CascadeType.ALL}, 
fetch=FetchType.LAZY)
  |@javax.persistence.JoinColumn(referencedColumnName=ZIP)
  |public Address getAddress() {return this.address;}
  |public void setAddress(Address address){this.address = address;}
  |
  | }  
  | 
  | 

and in my client class LEFT JOIN FETCH syntax to fetch customer with lazy 
address object

   public ListCustomer getCustomersLazyUsing(long cId) {
  |   String query = select c from Customer c  +
  |   left join fetch c.address + 
  |where c.id = :cId ;

and all work perfect

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985657#3985657

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985657
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Error: Bean not bound?

2006-11-07 Thread sisepago
this means that the JNDI ENC of you bean is not bound. In the jmx-console you 
can check if your bean is bound.

you can also inject your business compennt's interface 
@EJJB UserDAO

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3983755#3983755

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3983755
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - + the Change of slsb to sfsb makes problems +

2006-10-31 Thread sisepago
I have an java ee application with a remote business interface:

public interface RegisterRemote {
  |public void createUser(User user);
  |public User findUser(long id);
  | }

and a stateless session bean:

@javax.ejb.Stateless
  | @javax.ejb.Remote(RegisterRemote.class)
  | public class RegisterBean implements RegisterRemote {
  |@javax.persistence.PersistenceContext(unitName=carDatabase)
  |private javax.persistence.EntityManager em;
  |
  |public void createUser(User user) {
  |   em.persist(user);
  |}
  |
  |public User findUser(long id) {
  |   return em.find(User.class, id);
  |}
  | }

and my client looks so:

public class Client {
  |static public void main(String[] args) {
  |   try {
  |  Context jndiContext = getInitialContext();
  |  Object ref = jndiContext.lookup(RegisterBean/remote);
  |  RegisterRemote dao = (RegisterRemote)
  |  PortableRemoteObject.narrow(ref, RegisterRemote.class);
  |  
  |  Customer customer_1 = new Customer();
  |  customer_1.setFirstName(Francis);
  |  customer_1.setLastName(Pouatcha);
  |  customer_1.setUsername(francis.pouatcha);
  |  customer_1.setPassword(franc123Poutacha);
  |  customer_1.setEmail([EMAIL PROTECTED]);
  |  dao.createUser(customer_1);
  |  
  |  Customer customer_2 = (Customer) dao.findUser(1);
  |  System.out.println(customer_2.getFirstName());
  |  System.out.println(customer_2.getLastName());
  |  System.out.println(customer_2.getUsername());
  |  System.out.println(customer_2.getPassword());
  |  System.out.println(customer_2.getEmail());
  |  
  |   } catch ( NamingException ne ) {
  |  ne.printStackTrace();
  |   }
  |}
  |private static Context getInitialContext() throws NamingException {
  |   java.util.Properties properties = new java.util.Properties();
  |   properties.put(Context.INITIAL_CONTEXT_FACTORY, 
org.jnp.interfaces.NamingContextFactory);
  |   properties.put(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
  |   properties.put(Context.PROVIDER_URL, jnp://localhost:1099);
  |   return new javax.naming.InitialContext(properties);
  |}
  | }

and then when I run this client for the first time this do all things fine. But 
when I change the annotion of the session bean to @javax.ejb.Stateful then I 
get this error:

   [java] Exception in thread main javax.ejb.EJBException: 
java.lang.IllegalArgumentException: Wrong target. class 
de.mathema.slsb.RegisterBean for public void 
de.mathema.slsb.RegisterBean.createUser(de.mathema.domain.User)
  |  [java] at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  |  [java] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  |  [java] at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |  [java] at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |  [java] at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |  [java] at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |  [java] at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |  [java] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |  [java] at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
  |  [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |  [java] at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  |  [java] at 
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  |  [java] at 
org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
  |  [java] at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  |  [java] Caused by: java.lang.IllegalArgumentException: 

[jboss-user] [EJB 3.0] - Re: @EJB Injection in JSF Managed Bean

2006-10-31 Thread sisepago
Now i know that this scenario can not work, because jbossas 4 does not support 
@EJB Injection in a JSF Managed Bean class. In JSF Managed Bean you can now 
only use JNDI ENC javax.naming.InitialContext Inteface to look up session's 
interface compenents.

-- EJB 3 Codes
  | 
  | @javax.ejb,Remote
  | public Interface Service{
  |  public String meth1(Object o);
  | }
  | 
  | @javax.ejb.Stateful
  | public class ServiceImpl implements Service{
  |  @PersistenceContext
  |  private EntityManager em;
  |  public String meth1(Test t){
  |   em.persist(t);
  |return success;
  |  }
  | } 
  | 
  | the String success is for the redirection
  | 
  | 
  | --- JSF Managed Bean class
  | 
  | public class ManagedBean{
  |   private String field1=;
  |   private Service s1 = null;
  | 
  |   public ManagedBean(){
  | InitialContext ctx = new InitialContext();  //JNDI ENC
  | s1 = (Service)ctx.lookup(ServiceImpl/remote);
  |   }
  |  
  |   public String getField1(){return field1;}
  |   public void setFied1(String f){field1 = f;}
  |   
  |   public String controller(){
  | if(field1==null){
  |return null;
  | }else{
  |  
  | return (s1.meth1(new Test(getField1())); 
  | 
  | }
  |   }
  | }   

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3982024#3982024

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3982024
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - @EJB Injection in JSF Managed Bean

2006-10-30 Thread sisepago
Hi all ejb3 gurus,

i' am trying to use @EJB injection in a jsf managed bean class and i use the 
jbossas version 4.0.5.

I want to know if this scenario can work?

--- EJB 3 Codes
  | @javax.ejb,Remote
  | public Interface Service{
  |  public String meth1(Object o);
  | }
  | 
  | @javax.ejb.Stateful
  | public class ServiceImpl implements Service{
  |  @PersistenceContext
  |  private EntityManager em;
  |  public String meth1(Test t){
  |   em.persist(t);
  |return success;
  |  }
  | } 
  | 
  | the String success is for the redirection
  | 
  | --- JSF Managed Bean class
  | public class ManagedBean{
  |   private String field1=;
  |   
  |   @EJB 
  |   private Service s1;
  | 
  |   public String getField1(){return field1;}
  |   public void setFied1(String f){field1 = f;}
  |   
  |   public String controller(){
  | if(field1==null){
  |return null;
  | }else{
  |  return (s1.meth1(new Test(getField1())); 
  | }
  |   }
  | }

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3981782#3981782

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3981782
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - + JBoss EJB 3.0 and JSF (MyFaces) +

2006-10-30 Thread sisepago
Hi all seam gurus,

I want to know if JSF support @EJB Annotation Injection?. Because I try to use 
the @EJB Injection in a JSF Managed Bean class, but this does not work.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3981846#3981846

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3981846
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: java.lang.IllegalArgumentException: Null name during emb

2006-10-13 Thread sisepago
could you post your test class EmbeddedJBossTestDecorator.java and the config 
file persistence.xml? maybe you hat misused the unitName during the 
development. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3978073#3978073

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - + Limited the number of active Bean instances in JBoss ejb3

2006-10-10 Thread sisepago
Hi all ejb3 gurus,

I want to test interceptors in JBoss embedded ejb3 (@PostActivate  
@PrePassivate) and therefore I want to see how work @PrePassivate in jboss ejb3 
embedded and my question is WHERE and HOWcan I configure ejb3  embedded to 
limit the number of active bean instances to two?

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3977272#3977272

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977272
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: + Limited the number of active Bean instances in JBoss e

2006-10-10 Thread sisepago
Thanks bill for the response, but in the distribution of Jboss ejb3 embedded 
there is a conf directory with config files and one files with the name 
ejb3-interceptors-aop.xml and in the file exist some domains with names Base 
Stateful Bean, Stateful Bean extends the Base, JACC Stateful Bean. Because I 
use JBoss ejb3 embedded and Standone Class to test how Interceptors works and 
do not know which config files to use to limite the number of active Bean 
instances. 

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3977352#3977352

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3977352
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - JBoss EJB3 Embedded dependencies for Maven 2

2006-10-06 Thread sisepago
In which repositories I can find dependencies of JBoss EJB3 Embedded RC9? 
Because I do that manually and this is not cool.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3976603#3976603

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976603
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user