[JBoss Portal] - Re: Multiples idiomas Español , catalan , aleman
by juancito
Creo que nadies sabe español, haci que me respondero solito jejeje.
E podido crear por CMS una pagina llamada
Index.html y me e dado cuenta que por ahi se puede escoger el idioma, ahora la cosa era como crear para las demas, pues simplemente creas otra con el mismo nombre Index.html pero le seleccionas otro idioma y le pones el contenido que tendra y cuando lo guardas te crea como un array de paginas que pertenecen a index.
osea sale solo un index general y cuando abres este , te abre otra pagina con todos los index creados y con el idioma y esto se puede asociar con cada usuario creado. por el idioma que tiene.
Osea lo tengo resuelto por usuarios pero lo que quiero es:
poner en algun sitio una tabla con 1 o 2 o 3 links o radioBotons .
haci
Español[/url] | [url]Catalan[/url] | [url]Aleman
y que si le doy click en Español que me muestre los contenidos de las paginas en Español , si es catalan , pues que me muestre en catalan.
Alguien pudo hacer esto ??? . creo que aqui ya tendria que meter codigo java no ?? hacer un portlets ??..
[/url]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132592#4132592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132592
16 years, 8 months
[JBoss Messaging] - Problem with JEMS JMS install: User is NOT authenticated
by karpinsn
Hi,
I'm trying to install a simple setup of JBoss with JBoss messaging. I used JEMS 1.2.1.CR4 to install a JMS setup with everything default except for the configuration which I have named messaging. From this point I can start JBoss at a command line issuing "run -c messaging" from the %JBOSS_HOME%/bin directory. JBoss starts just fine and starts up messaging.
Now the problem I am having is when I run examples that are included in the JBoss Messaging 1.4.0.SP3. If I try and run the topic example I get an error that User null is NOT authenticated. Listed below is the stack trace that I get
anonymous wrote :
| D:\Download\jboss-messaging-1.4.0.SP3\examples\topic>ant
| Buildfile: build.xml
|
| identify:
| [echo] ####################################################################
| #######
| [echo] # Running the TOPIC example
| #
| [echo] ####################################################################
| #######
| [echo] The topic: testTopic
| [echo] The client jar: ../..//jboss-messaging-client.jar
|
| sanity-check:
|
| init:
|
| compile:
|
| run:
| [java] Topic /topic/testTopic exists
| [java] javax.jms.JMSSecurityException: User null is NOT authenticated
| [java] at org.jboss.jms.server.security.SecurityMetadataStore.authentic
| ate(SecurityMetadataStore.java:202)
| [java] at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint
| .createConnectionDelegateInternal(ServerConnectionFactoryEndpoint.java:222)
| [java] at org.jboss.jms.server.endpoint.ServerConnectionFactoryEndpoint
| .createConnectionDelegate(ServerConnectionFactoryEndpoint.java:162)
| [java] at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvise
| d.org$jboss$jms$server$endpoint$advised$ConnectionFactoryAdvised$createConnectio
| nDelegate$aop(ConnectionFactoryAdvised.java:108)
| [java] at org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvise
| d.createConnectionDelegate(ConnectionFactoryAdvised.java)
| [java] at org.jboss.jms.wireformat.ConnectionFactoryCreateConnectionDel
| egateRequest.serverInvoke(ConnectionFactoryCreateConnectionDelegateRequest.java:
| 91)
| [java] at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invo
| ke(JMSServerInvocationHandler.java:143)
| [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:76
| 9)
| [java] at org.jboss.remoting.transport.socket.ServerThread.processInvoc
| ation(ServerThread.java:573)
| [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(Server
| Thread.java:387)
| [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerTh
| read.java:166)
| [java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemot
| eClientInvoker.java:163)
| [java] at org.jboss.remoting.Client.invoke(Client.java:1634)
| [java] at org.jboss.remoting.Client.invoke(Client.java:548)
| [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
| .org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionD
| elegate$aop(ClientConnectionFactoryDelegate.java:167)
| [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
| $createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactor
| yDelegate$createConnectionDelegate_N3019492359065420858.java)
| [java] at org.jboss.jms.client.container.StateCreationAspect.handleCrea
| teConnectionDelegate(StateCreationAspect.java:83)
| [java] at org.jboss.aop.advice.org.jboss.jms.client.container.StateCrea
| tionAspect0.invoke(StateCreationAspect0.java)
| [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
| $createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactor
| yDelegate$createConnectionDelegate_N3019492359065420858.java)
| [java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
| .createConnectionDelegate(ClientConnectionFactoryDelegate.java)
| [java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionI
| nternal(JBossConnectionFactory.java:205)
| [java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
| JBossConnectionFactory.java:87)
| [java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
| JBossConnectionFactory.java:82)
| [java] at org.jboss.example.jms.topic.TopicExample.example(TopicExample
| .java:67)
| [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
| t.java:147)
| [java] at org.jboss.example.jms.topic.TopicExample.main(TopicExample.ja
| va:132)
| [java]
| [java] #####################
| [java] ### FAILURE! ###
| [java] #####################
|
| BUILD FAILED
| D:\Download\jboss-messaging-1.4.0.SP3\examples\topic\build.xml:81: Java returned
| : 1
|
| Total time: 2 seconds
|
If I try and run the queue example I get a similar error that again says user null is NOT authenticated. Am I missing something in a configuration file?
Thank you for any help,
- Nik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132591#4132591
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132591
16 years, 8 months
[JBoss AOP] - Interceptor not geting executed in a WAR
by chandra_88
Hi,
I have a simple interceptor code and a servlet . When the servlets gets executed i wanted the Interceptor to log a message . The code is all tehre but the interceptor is failing to log it . I am sure this is related to packaging iam able to access the servlet but nothing gets logged in the conosle.
This is My packaging structure
MyServletTest.war
- WEB- INF
- lib
- classes
- web.xml
Under lib folder i have kept a jar file suffixed as Test.aop inside which contains the jboss-aop.xml under the meta-inf directory and the aspect classes.
| This is my Aspect class
| public class AspectTest implements Interceptor {
|
| private Logger myLog = Logger.getLogger("AspectTest");
|
| public Object invoke(Invocation invocation) throws Throwable {
|
| String name = invocation.getTargetObject().getClass().getName();
| java.lang.reflect.Method m = ((MethodInvocation)invocation).getMethod();
| System.out.println("Entering method " + "inside class" + name + m.getName());
| try{
| return invocation.invokeNext();
| }
| finally{
|
| System.out.println("Exiting Method " + m.getName());
| }
| }
|
| public String getName()
| {
| return "AspectTest";
| }
|
The servlet is quite straightforward , however when i access the servlet i expected a message to be displayed as per the interceptor but nothing gets shown . I tried to understand the injboss tutorial but applying that this is the package structure i thought
Any suggestions , thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132587#4132587
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132587
16 years, 8 months
[JBoss Portal] - CMS File Creation Error
by dsulliva
I ran into a similar error to the one below on trying to create a folder within the CMS area. I dropped the database and recreated the db. Then I created a new folder, which workded, but then I ran into the error below when trying create a file within this new folder.
Any idea of what could be my problem.
jboss-4.2.2.GA
jboss-portal2.6.4
postgresql 8.1
javax.servlet.ServletException: java.sql.BatchUpdateException: Batch entry 0 insert into jbp_cms_wsp_prop (PROP_ID, PROP_DATA, PK) values (19f12e26-0a76-4bc2-a3d2-9ab560c7935b/{http://www.jcp.org/jcr/1.0}created, <stream of 56 bytes>, 34) was aborted. Call getNextException to see the cause.
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:276)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.sql.BatchUpdateException: Batch entry 0 insert into jbp_cms_wsp_prop (PROP_ID, PROP_DATA, PK) values (19f12e26-0a76-4bc2-a3d2-9ab560c7935b/{http://www.jcp.org/jcr/1.0}created, <stream of 56 bytes>, 34) was aborted. Call getNextException to see the cause.
org.postgresql.jdbc2.AbstractJdbc2Statement$BatchResultHandler.handleError(AbstractJdbc2Statement.java:2515)
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1310)
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:347)
org.postgresql.jdbc2.AbstractJdbc2Statement.executeBatch(AbstractJdbc2Statement.java:2574)
org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:519)
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader.loadManagedNode(PortalCMSCacheLoader.java:755)
org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader.saveWSPPropNodeEntry(PortalCMSCacheLoader.java:558)
org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader.put(PortalCMSCacheLoader.java:303)
org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader.put(PortalCMSCacheLoader.java:387)
org.jboss.portal.cms.hibernate.state.PortalCMSCacheLoader.prepare(PortalCMSCacheLoader.java:477)
org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:258)
org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:131)
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:873)
org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1156)
org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:250)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132581#4132581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132581
16 years, 8 months
[JCA/JBoss] - Hide pasword in oracle-ds.xml
by Anna_Lut
Is it possible to hide or crypt password in oracle-ds.xml file
smth like that
| <user-name>jboss_usr</user-name>
| <password>***</password>
|
and to prevent that this information was visible in server.log
like this:
| 2008/02/27 18:45:46 internalRegisterPool: registering pool with interval 900000 old interval: 9223372036854775807
| 2008/02/27 18:45:46 internalRegisterPool: about to notify thread: old next: 1204131196130, new next: 1204131196130
| 2008/02/27 18:45:46 run: IdleRemover notifying pools, interval: 450000
| 2008/02/27 18:45:46 Using properties: {user=jboss_usr, password=qwerty}
| 2008/02/27 18:45:46 Checking driver for URL: jdbc:oracle:thin:@129.0.0.115:1521:mmfotest
| 2008/02/27 18:45:46 Driver not yet registered for url: jdbc:oracle:thin:@129.0.0.115:1521:mmfotest
| 2008/02/27 18:45:46 Using properties: {user=jboss_usr, password=qwerty}
| 2008/02/27 18:45:46 Driver not yet registered for url: jdbc:oracle:thin:@129.0.0.115:1521:mmfotest
| 2008/02/27 18:45:46 Listener.handleNotification(), notification: javax.management.timer.TimerNotification: type=Schedule source=jboss:service=Timer sequence=3 time=1204130746500 message=Scheduler Notification id=2 userData=null
| 2008/02/27 18:45:46 Scheduler is started: true
| 2008/02/27 18:45:46 Remaining Repititions: -1, wait for next call to stop: false
| 2008/02/27 18:45:46 Using properties: {user=jboss_usr, password=qwerty}
| 2008/02/27 18:45:46 Using properties: {user=jboss_usr, password=qwerty}
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132578#4132578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132578
16 years, 8 months