[JBoss Portal] - Re: Change in page layout
by franco12
I forgot code flags.. ;)
THEMES
Edit portal-themes.xml (\server\default\deploy\jboss-portal.sar\portal-core.war\WEB-INF).
Example : adding the theme 'test' (copy paste this)
<theme>
| <name>Test</name>
| <link rel="stylesheet" id="main_css" href="/themes/test/portal_style.css" type="text/css" />
| <link rel="shortcut icon" href="/themes/test/images/favicon.ico" />
| </theme>
|
Themes are stored here :
\server\default\deploy\jboss-portal.sar\portal-core.war\themes
LAYOUTS
Edit portal-layouts.xml (\server\default\deploy\jboss-portal.sar\portal-core.war\WEB-INF).
Example : adding the layout 'test' (copy paste this)
<layout>
| <name>Test</name>
| <uri>/layouts/test/index.jsp</uri>
| <uri state="maximized">/layouts/test/maximized.jsp</uri>
| <regions>
| <region name="left"/>
| <region name="center"/>
| <region name="navigation"/>
| <region name="right"/>
| </regions>
| </layout>
layouts are stored here :
\server\default\deploy\jboss-portal.sar\portal-core.war\layouts
regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045417#4045417
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045417
19 years, 1 month
[JBoss Seam] - identity.hasRole problem
by anescu
Hi,
I'm trying to use the "identity.hasRole" method in the authenticator class but the result is always false.
So, for example, if I put this code in the authenticate method:
identity.addRole( new String( "account_admin" ) );
and then I test (in the same method)
System.out.println( "### account_admin: " + identity.hasRole( new String( "account_admin" ) ) );
The result is always "false". Why? How do you test then the roles a user has? I would need to add on the session context some data, that are strictly related to the roles the user has. The roles are loaded from the DB, and placed in the Identity object. But then when I need to create dynamic content based on the roles I can't find any role.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045416#4045416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045416
19 years, 1 month
[JBoss Seam] - Mail sending through Seam
by vedavyas
Hi All,
I am trying to send a mail by calling the required method in a class which implements ActionHandler. But the Renderer object is not getting injected.
This is the code i have used.
| public class Mail implements ActionHandler {
|
| @In(create=true)
| private Renderer renderer;
|
| public void execute(ExecutionContext executioncontext) throws Exception {
| sendmail();
| }
|
| public void sendmail() {
| try {
| renderer.render("/Mail.xhtml");
| } catch (Exception e) {
| e.printStackTrace();
| }
| }
| }
|
But renderer is not getting assigned. it is always null.
But if i call it as a seam component i.e if the class does not implement ActionHandler and i call the method, #{mail.sendmail} from a .xhtml file directly Renderer object gets assigned.
What is the problem? Is there any other way to do this?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045414#4045414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045414
19 years, 1 month
[Installation, Configuration & Deployment] - Incomplete Deployment listing
by ghostofjava
Hello,
Somebody little to help me on how solving this bug?
12:32:20,203 INFO [Server] Starting JBoss (MX MicroKernel)...
12:32:20,203 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
12:32:20,234 INFO [Server] Home Dir: D:\servers\jboss-4.0.5.GA
12:32:20,234 INFO [Server] Home URL: file:/D:/servers/jboss-4.0.5.GA/
12:32:20,234 INFO [Server] Patch URL: null
12:32:20,234 INFO [Server] Server Name: default
12:32:20,234 INFO [Server] Server Home Dir: D:\servers\jboss-4.0.5.GA\server\default
12:32:20,234 INFO [Server] Server Home URL: file:/D:/servers/jboss-4.0.5.GA/server/default/
12:32:20,234 INFO [Server] Server Log Dir: D:\servers\jboss-4.0.5.GA\server\default\log
12:32:20,234 INFO [Server] Server Temp Dir: D:\servers\jboss-4.0.5.GA\server\default\tmp
12:32:20,234 INFO [Server] Root Deployment Filename: jboss-service.xml
12:32:20,703 INFO [ServerInfo] Java version: 1.5.0_08,Sun Microsystems Inc.
12:32:20,703 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_08-b03,Sun Microsystems Inc.
12:32:20,703 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
12:32:21,828 INFO [Server] Core system initialized
12:32:25,281 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
12:32:27,265 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.11.2:3873/]
12:32:32,218 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
12:32:34,953 INFO [SnmpAgentService] SNMP agent going active
12:32:35,781 INFO [InterceptorChainFactory] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
12:32:36,281 INFO [STDOUT]
-------------------------------------------------------
GMS: address is HOMER:3690
-------------------------------------------------------
12:32:38,343 INFO [TreeCache] viewAccepted(): [HOMER:3690|0] [HOMER:3690]
12:32:38,375 INFO [TreeCache] TreeCache local address is HOMER:3690
12:32:38,375 INFO [TreeCache] State could not be retrieved (we are the first member in group)
12:32:38,375 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
12:32:39,171 INFO [DefaultPartition] Initializing
12:32:39,296 INFO [STDOUT]
-------------------------------------------------------
GMS: address is HOMER:3700 (additional data: 17 bytes)
-------------------------------------------------------
12:32:41,328 INFO [DefaultPartition] Number of cluster members: 1
12:32:41,328 INFO [DefaultPartition] Other members: 0
12:32:41,328 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
12:32:41,328 INFO [DefaultPartition] State could not be retrieved (we are the first member in group)
12:32:41,453 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
12:32:41,453 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.11.2:1100
12:32:42,078 INFO [WebService] Using RMI server codebase: http://HOMER:8083/
12:32:42,562 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
12:32:42,625 WARN [TreeCache] Using deprecated configuration element 'EvictionPolicyProvider'. This is only provided for 1.2.x backward compatibility and may disappear in future releases.
12:32:42,671 INFO [InterceptorChainFactory] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.EvictionInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.ActivationInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.PassivationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
12:32:42,781 INFO [STDOUT]
-------------------------------------------------------
GMS: address is HOMER:3714
-------------------------------------------------------
12:32:44,796 INFO [TreeCache] TreeCache local address is HOMER:3714
12:32:44,812 INFO [TreeCache] viewAccepted(): [HOMER:3714|0] [HOMER:3714]
12:32:44,812 INFO [TreeCache] State could not be retrieved (we are the first member in group)
12:32:44,937 WARN [TreeCache] Using deprecated configuration element 'EvictionPolicyProvider'. This is only provided for 1.2.x backward compatibility and may disappear in future releases.
12:32:44,953 INFO [InterceptorChainFactory] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.EvictionInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
12:32:45,046 INFO [STDOUT]
-------------------------------------------------------
GMS: address is HOMER:3726
-------------------------------------------------------
12:32:47,062 INFO [TreeCache] TreeCache local address is HOMER:3726
12:32:47,062 INFO [TreeCache] viewAccepted(): [HOMER:3726|0] [HOMER:3726]
12:32:47,062 INFO [TreeCache] State could not be retrieved (we are the first member in group)
12:32:48,343 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000D3139322E3136382E31312E3200000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E31312E3200000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
12:32:48,578 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000D3139322E3136382E31312E3200000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E31312E3200000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
12:32:49,750 INFO [Embedded] Catalina naming disabled
12:32:49,859 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
12:32:49,859 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
12:32:50,500 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
12:32:50,500 INFO [Catalina] Initialization processed in 641 ms
12:32:50,500 INFO [StandardService] Starting service jboss.web
12:32:50,531 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
12:32:50,859 INFO [StandardHost] XML validation disabled
12:32:50,921 INFO [Catalina] Server startup in 421 ms
12:32:51,281 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
12:32:51,843 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
12:32:52,656 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
12:32:52,953 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp52026jbossws-context-exp.war/
12:32:53,234 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
12:32:53,531 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
12:32:53,921 INFO [[/web-console]] MonitorsFolder: Failed to init plugin, null
12:32:53,921 INFO [[/web-console]] UCLs: Failed to init plugin, null
12:32:53,937 INFO [[/web-console]] JMS Message: Failed to init plugin, null
12:32:53,953 INFO [[/web-console]] JSR77 WebModule: Failed to init plugin, null
12:32:53,953 INFO [[/web-console]] J2EEFolder: Failed to init plugin, null
12:32:53,968 INFO [[/web-console]] AOPFolder: Failed to init plugin, null
12:32:53,968 INFO [[/web-console]] SystemFolder: Failed to init plugin, null
12:32:54,015 INFO [[/web-console]] MBeans: Failed to init plugin, null
12:32:54,015 INFO [[/web-console]] JSR77 Domains and Servers: Failed to init plugin, null
12:32:54,031 INFO [[/web-console]] JSR77 EJBModules and EJBs: Failed to init plugin, null
12:32:54,031 INFO [[/web-console]] JSR77 J2EE Apps: Failed to init plugin, null
12:32:56,359 INFO [MailService] Mail Service bound to java:/Mail
12:32:57,578 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
12:32:57,750 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
12:32:57,828 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
12:32:58,046 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
12:32:58,343 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
12:32:58,453 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
12:32:58,609 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
12:32:58,656 INFO [QuartzResourceAdapter] start quartz!!!
12:32:58,796 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
12:32:58,875 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
12:32:58,875 INFO [RAMJobStore] RAMJobStore initialized.
12:32:58,875 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
12:32:58,875 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
12:32:58,875 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
12:33:01,156 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
12:33:01,562 INFO [A] Bound to JNDI name: queue/A
12:33:01,562 INFO [B] Bound to JNDI name: queue/B
12:33:01,562 INFO [C] Bound to JNDI name: queue/C
12:33:01,578 INFO [D] Bound to JNDI name: queue/D
12:33:01,578 INFO [ex] Bound to JNDI name: queue/ex
12:33:01,609 INFO [testTopic] Bound to JNDI name: topic/testTopic
12:33:01,609 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
12:33:01,609 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
12:33:01,609 INFO [testQueue] Bound to JNDI name: queue/testQueue
12:33:01,718 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
12:33:01,781 INFO [DLQ] Bound to JNDI name: queue/DLQ
12:33:02,171 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
12:33:02,390 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PostgresDS' to JNDI name 'java:PostgresDS'
12:33:02,484 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
12:33:02,828 INFO [EARDeployer] Init J2EE application: file:/D:/servers/jboss-4.0.5.GA/server/default/deploy/framework.ear/
12:33:02,953 INFO [EARDeployer] Started J2EE application: file:/D:/servers/jboss-4.0.5.GA/server/default/deploy/framework.ear/
12:33:03,156 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@6381bd39 { url=file:/D:/servers/jboss-4.0.5.GA/server/default/deploy/framework.ear/framework.ejb/ }
deployer: null
status: Starting
state: START_SUBDEPLOYMENTS
watch: file:/D:/servers/jboss-4.0.5.GA/server/default/deploy/framework.ear/framework.ejb/
altDD: null
lastDeployed: 1179138782921
lastModified: 1179138714859
mbeans:
org.jboss.deployment.DeploymentInfo@6389d922 { url=file:/D:/servers/jboss-4.0.5.GA/server/default/deploy/framework.ear/framework.web/ }
deployer: null
status: Starting
state: START_SUBDEPLOYMENTS
watch: file:/D:/servers/jboss-4.0.5.GA/server/default/deploy/framework.ear/framework.web/
altDD: null
lastDeployed: 1179138782921
lastModified: 1179138726343
mbeans:
12:33:03,281 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
12:33:03,609 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
12:33:03,640 INFO [JkMain] Jk running ID=0 time=0/172 config=null
12:33:03,656 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 43s:422ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045406#4045406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045406
19 years, 1 month