JBoss Developer : All Content - All CommunitiesAll Content in JBoss Developerhttps://developer.jboss.org/Jive Engage2007-06-28T18:38:38Z2007-06-28T18:38:38ZenSource build outcome locationJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2007-06-29T08:51:08Z2007-06-28T18:38:38Z<!-- [DocumentBodyStart:e4c3af81-a3f6-40bc-b8e6-34f23dd56af3] --><div class="jive-rendered-content"><p>Hi,<br/><br/>It's my first attempt to build Seam from the sources and after having dealt with troubles concerning surefire 2.4-SNAPSHOT I had in the m2 repo instead of surefire 2.3 the build finished successfully. What I can't understand is why the build outcome is in the parent directory of the sources? It's the first project I could work with that left its build outcome outside its directory. Why's that?<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:e4c3af81-a3f6-40bc-b8e6-34f23dd56af3] --><img src='/beacon?t=1558799566811' />2007-06-28T18:38:38Z11 years 11 months ago30UserTransaction not found in JBP 2.2.0-ALPHA and JBoss AS 4.Jacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-10-20T07:49:38Z2005-10-08T20:41:18Z<!-- [DocumentBodyStart:43f0083e-9c9c-4e96-98cc-c7ac25ec8427] --><div class="jive-rendered-content"><p>Hi,<br/><br/>I'm getting the following exception while deploying JBP 2.2.0-ALPHA (today's build) to JBoss AS 4.0.3. Why is that?<br/><br/></p><!--[CodeBlockStart:13f3e5c0-39ca-4ef5-b2b6-ff2b9867fc20][excluded]--><pre class="java" name="code">
22:34:32,100 INFO [SessionFactoryImpl] Checking 0 named queries
22:34:32,421 ERROR [JTATransaction] Could not find UserTransaction in JNDI
javax.naming.NameNotFoundException: UserTransaction not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:701)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.hibernate.transaction.JTATransaction.&lt;init&gt;(JTATransaction.java:60)
at org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:53)
at org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:190)
at org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1197)
at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1204)
at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.doCheck(PersistentInstanceContainer.java:250)
at org.jboss.portal.core.impl.model.instance.PersistentInstanceContainer.startService(PersistentInstanceContainer.java:184)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)
</pre><!--[CodeBlockEnd:13f3e5c0-39ca-4ef5-b2b6-ff2b9867fc20]--><div style="display:none;"></div><br/><br/>and when I run /portal/ <br/><br/><!--[CodeBlockStart:889b7e57-319b-44c7-a7de-906893531936][excluded]--><pre class="java" name="code">
22:39:06,355 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
java.lang.NullPointerException
at org.jboss.portal.core.model.portal.DefaultPortalCommandMapper.doMapping(DefaultPortalCommandMapper.java:74)
</pre><!--[CodeBlockEnd:889b7e57-319b-44c7-a7de-906893531936]--><div style="display:none;"></div><br/><br/>Jacek<br/><br/></div><!-- [DocumentBodyEnd:43f0083e-9c9c-4e96-98cc-c7ac25ec8427] -->2005-10-08T20:41:18Z13 years 7 months ago70Compile failed - today's sourcesJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-10-07T13:39:31Z2005-10-07T11:23:46Z<!-- [DocumentBodyStart:19686c4d-86d9-4d1d-aa94-5444271ffe88] --><div class="jive-rendered-content"><p>Hi,<br/><br/>I'm getting the following exception on Java 5 while building Portal from today's sources.<br/><br/>...<br/>_default:compile-classes:<br/> [mkdir] Created dir: C:\projs\jboss-portal-2.2\core\output\classes<br/> [mkdir] Created dir: C:\projs\jboss-portal-2.2\core\output\gen\classes<br/> [javac] Compiling 292 source files to C:\projs\jboss-portal-2.2\core\output\classes<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\aspects\controller\PolicyEnforcementInterceptor.java:90: reference to CodeSource is<br/>ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.Co<br/>deSigner[]) in java.security.CodeSource match<br/><span>[execmodules] cs = new CodeSource(new URL("</span><a class="jive-link-external-small" href="http://www.jboss.org/portal" rel="nofollow">http://www.jboss.org/portal</a><span>"), null);</span><br/>[execmodules] ^<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\servlet\StaticPrincipalFilter.java:57: warning: [deprecation] getRealPath(java.lang.<br/>String) in javax.servlet.ServletRequest has been deprecated<br/>[execmodules] public Principal getUserPrincipal()<br/>[execmodules] ^<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\servlet\StaticPrincipalFilter.java:57: warning: [deprecation] isRequestedSessionIdFr<br/>omUrl() in javax.servlet.http.HttpServletRequest has been deprecated<br/>[execmodules] public Principal getUserPrincipal()<br/>[execmodules] ^<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\core\servlet\StaticPrincipalFilter.java:57: warning: [deprecation] getRealPath(java.lang.<br/>String) in javax.servlet.ServletRequest has been deprecated<br/>[execmodules] public Principal getUserPrincipal()<br/>[execmodules] ^<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\test\core\HttpServletRequestWrapperImpl.java:20: warning: [deprecation] getRealPath(java.<br/>lang.String) in javax.servlet.ServletRequest has been deprecated<br/>[execmodules] public class HttpServletRequestWrapperImpl<br/>[execmodules] ^<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\test\core\HttpServletRequestWrapperImpl.java:20: warning: [deprecation] isRequestedSessio<br/>nIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated<br/>[execmodules] public class HttpServletRequestWrapperImpl<br/>[execmodules] ^<br/>[execmodules] C:\projs\jboss-portal-2.2\core\src\main\org\jboss\portal\test\core\HttpServletRequestWrapperImpl.java:20: warning: [deprecation] getRealPath(java.<br/>lang.String) in javax.servlet.ServletRequest has been deprecated<br/>[execmodules] public class HttpServletRequestWrapperImpl<br/>[execmodules] ^<br/>[execmodules] 1 error<br/>[execmodules] 6 warnings<br/><br/>BUILD FAILED<br/>C:\projs\jboss-portal-2.2\tools\etc\buildfragments\targets.ent:732: The following error occurred while executing this line:<br/>C:\projs\jboss-portal-2.2\tools\etc\buildfragments\targets.ent:95: Compile failed; see the compiler error output for details.<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:19686c4d-86d9-4d1d-aa94-5444271ffe88] -->2005-10-07T11:23:46Z13 years 8 months ago40The dialect was not set. Set the property hibernate.dialect.Jacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-10-06T02:23:12Z2005-09-23T13:50:51Z<!-- [DocumentBodyStart:0209b974-3e5a-462d-89c3-2bdd8f398e99] --><div class="jive-rendered-content"><p>Hi,<br/><br/>I know I can change the property in jboss-portal.sar\conf\hibernate\hibernate.cfg.xml, but is there another way to set the default Hibernate dialect so that I don't have to extract/modify/save the file?<br/><br/>The change is required as without it JBoss AS 4.0.3RC2 refuses the portal sar to be deployed.<br/><br/>15:47:11,138 WARN [ServiceController] Problem starting service portal:service=Hibernate<br/>org.hibernate.HibernateException: The dialect was not set. Set the property hibernate.dialect.<br/> at org.hibernate.dialect.Dialect.getDialect(Dialect.java:540)<br/> at org.hibernate.dialect.Dialect.getDialect(Dialect.java:562)<br/> at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:77)<br/> at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:53)<br/> at org.jboss.portal.core.hibernate.SessionFactoryBinder.createSchema(SessionFactoryBinder.java:278)<br/> at org.jboss.portal.core.hibernate.SessionFactoryBinder.startService(SessionFactoryBinder.java:181)<br/> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:287)<br/> at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:187)<br/> at org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:73)<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:0209b974-3e5a-462d-89c3-2bdd8f398e99] -->2005-09-23T13:50:51Z13 years 8 months ago70Apache MyFaces 1.1.0 and 2.2.0-ALPHA don't work any moreJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-10-04T08:41:18Z2005-10-03T12:29:48Z<!-- [DocumentBodyStart:96ee7def-cdec-4d51-b017-a511896144b1] --><div class="jive-rendered-content"><p>Hi,<br/><br/>Until recently, I could develop portlets with MyFaces impl. Now, JSF forms are no longer able to pass form parameters to backing beans and MyFaces reports<br/><br/></p><!--[CodeBlockStart:ac483192-c1bc-4ab6-bea7-dee1ddc21e97][excluded]--><pre class="java" name="code">
14:06:20,659 WARN [HtmlRendererUtils] There should always be a submitted value for an input if it is rendered, its form is submitted, and it is not disabled or read-only.
</pre><!--[CodeBlockEnd:ac483192-c1bc-4ab6-bea7-dee1ddc21e97]--><div style="display:none;"></div><br/><br/>If I test out the web application as as a regular web app (not a portlet) it works fine. It seems that the latest changes to the Friendly URLs or Themes broke JSF apps. <br/><br/>Besides, when I use the friendly urls with window name at the end, Portal prints out: <br/><br/><!--[CodeBlockStart:3d41c706-c17f-4e4a-98e2-32e1422f399f][excluded]--><pre class="java" name="code">14:05:25,650 ERROR [[PortalServletWithPathMapping]] Servlet.service() for servlet PortalServletWithPathMapping threw exception
java.lang.ClassCastException: org.jboss.portal.core.impl.model.portal.WindowImpl
at org.jboss.portal.core.impl.model.portal.PageImpl.getPage(PageImpl.java:46)
at org.jboss.portal.core.model.portal.PortalObjectCommandMapper$1.getChild(PortalObjectCommandMapper.java:74)
at org.jboss.portal.server.servlet.PathParser.map(PathParser.java:51)
at org.jboss.portal.core.model.portal.PortalObjectCommandMapper.doMapping(PortalObjectCommandMapper.java:131)
at org.jboss.portal.core.command.mapper.PrefixDelegatingCommandMapperService.doMapping(PrefixDelegatingCommandMapperService.java:150)</pre><!--[CodeBlockEnd:3d41c706-c17f-4e4a-98e2-32e1422f399f]--><div style="display:none;"></div><br/><br/><br/>When I strip the window name it displays fine. It worked 2 days ago. <br/><br/>Jacek<br/><br/></div><!-- [DocumentBodyEnd:96ee7def-cdec-4d51-b017-a511896144b1] -->2005-10-03T12:29:48Z13 years 8 months ago30Failed to create configuration directory for workspace defauJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-09-28T14:29:43Z2005-09-22T19:42:51Z<!-- [DocumentBodyStart:9ed2616e-d697-45fe-b407-ddd14779e101] --><div class="jive-rendered-content"><p>Hi,<br/><br/>What's that? It happens with the latest JBoss Portal 2.2.0-ALPHA build from the sources and deployed onto JBoss AS 4.0.3RC2.<br/><br/>20:26:04,481 INFO [JCRCMS] Starting JCR CMS.<br/>20:26:04,531 INFO [LocalFileSystem] LocalFileSystem initialized at path C:\apps\jboss\server\portal\data\portal\jcr\repository<br/>20:26:04,531 INFO [LocalFileSystem] LocalFileSystem initialized at path C:\apps\jboss\server\portal\data\portal\jcr\versions<br/>20:26:04,541 WARN [ServiceController] Problem starting service portal:service=CMS<br/>org.apache.jackrabbit.core.config.ConfigurationException: Failed to create configuration directory for workspace default.<br/> at org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:299)<br/> at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:218)<br/> at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:97)<br/> at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:71)<br/> at org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:114)<br/> at org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:104)<br/> at org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:57)<br/> at org.jboss.portal.cms.util.RepositoryUtil.registerRepository(RepositoryUtil.java:58)<br/> at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:172)<br/> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:287)<br/> at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:187)<br/>...<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:9ed2616e-d697-45fe-b407-ddd14779e101] -->2005-09-22T19:42:51Z13 years 8 months ago80Portal deployment alternativesJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-09-24T23:48:12Z2005-09-22T19:40:51Z<!-- [DocumentBodyStart:8210e215-de4e-4cc0-9587-e8d32799342d] --><div class="jive-rendered-content"><p>Hi,<br/><br/>I can't figure out what deployment options are available in JBoss Portal. I work with the sources, so its version is JBoss Portal 2.2.0-ALPHA and JBoss AS is 4.0.3RC2.<br/><br/>According to the chapter 2 of JBoss Portal reference guide - <a class="jive-link-external-small" href="http://docs.jboss.com/jbportal/v2.0Final/reference-guide/en/html/xmldescriptors.html#d0e557" rel="nofollow">http://docs.jboss.com/jbportal/v2.0Final/reference-guide/en/html/xmldescriptors.html#d0e557</a> it should be possible to deploy *-portal.xml files without having them to be bundled in a war. I can't get this to work, thought - /portal/myportal keeps showing me the default portal. Am I missing something? Is there a way to list all of the deployed portals?<br/><br/>BTW: I have really been amazed by the new layout scheme - phalanx. It's a nice-looking layout.<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:8210e215-de4e-4cc0-9587-e8d32799342d] -->2005-09-22T19:40:51Z13 years 8 months ago20Can't run a portlet in 2.2.0-ALPHA that worked in JP 2.0.1RCJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-09-14T17:13:18Z2005-09-12T15:06:44Z<!-- [DocumentBodyStart:321110bc-3c82-4b51-9213-ed1bf7d52c70] --><div class="jive-rendered-content"><p>Hi,<br/><br/>Built JBoss Portal 2.2.0-ALPHA (JP 2.2) from its sources and tried to run a portlet that worked well in JP 2.0.1RC1. I know I don't provide much details, but perhaps you will figure out what might cause that it doesn't work.<br/><br/>What details would you need to track it down?<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:321110bc-3c82-4b51-9213-ed1bf7d52c70] -->2005-09-12T15:06:44Z13 years 8 months ago60How to build PortalJacek Laskowski/people/jlaskowskido-not-reply@jboss.com2005-09-12T22:29:03Z2005-09-12T21:39:03Z<!-- [DocumentBodyStart:f54b4a08-373e-42dc-afa1-a449f8a69d27] --><div class="jive-rendered-content"><p>Hi,<br/><br/>Just to make sure I'm doing it properly, does the ant -f build/build.xml command build JP?<br/><br/>The question stroke me right after having noticed that the build/build.xml file contains "Nukes (The OpenSource CMS) Build File" whereas server/build.xml does "JBoss Portal (The OpenSource Portal) Build File", but keeps failing.<br/><br/>An aside question, what mailing list do the commit messages go?<br/><br/>Jacek</p></div><!-- [DocumentBodyEnd:f54b4a08-373e-42dc-afa1-a449f8a69d27] -->2005-09-12T21:39:03Z13 years 8 months ago10