[JBossCache] - Re: Problem running PojoCache in JBoss AS
by jcollins914
Thanks to the assistance of Ben Wang, this has been resolved; Thanks Ben!
I was using the libs and lib50s from the PojoCache distribution to do my aopc compiling. It seems there was an incompatibility the jar files in that distribution, with the ones that are used to run the aop portions under the AS version 4.0.4.GA. I ended up taking jboss-aop-jdk50.jar from the deploy/jboss-aop-jdk50.deployer directory from jboss-4.0.5.GA, to use instead of the one that came w/ the cache distribution, and the javassist.jar from the default/lib folder from a version of JBoss 4.0.4.GA with the EJB3 installation... Overwriting those jar files and re-doing the aopc, all's well. Windows showed the correct javassist.jar to be of size 459,663 bytes, and the correct jboss-aop-jdk50.jar file to be of 909,125 bytes. I'm sure this will be cleared up soon, but perhaps this will help someone else who crosses this bridge, and to whom my issue appears familiar.
Thanks,
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003949#4003949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003949
19 years, 3 months
[JBoss Portal] - Re: Layout I18N: wrong locale in JSP
by halversp
For now, I've defined a custom PortalLayout class which passes the correct locale to the JSP (using an HttpServletRequestWrapper), and specify this class in my layouts file using the (undocumentated) "layout-implementation" attribute. Seems to work. Still unclear on the rationale for passing the original client request down.
p
| public class LocalizingLayoutImpl extends PortalLayout {
|
| public void assembleResponse(ServerRequest request,
| ServerResponse response,
| MarkupResult markupResult)
| throws ServletException, IOException
| {
| HttpServletRequest httpRequest = request.getContext().getClientRequest();
| HttpServletResponse httpResponse = response.getContext().getClientResponse();
| RenderContext renderCtx = getRenderContext(response.getStreamInfo(), request, markupResult);
| LayoutDispatcher dispatcher = new LayoutDispatcher(renderCtx, new LocalizedRequest(httpRequest, request), httpResponse, markupResult);
| dispatcher.include();
| }
|
| private class LocalizedRequest extends HttpServletRequestWrapper {
|
| private ServerRequest serverRequest;
|
| public LocalizedRequest(HttpServletRequest request, ServerRequest serverRequest) {
| super(request);
| this.serverRequest = serverRequest;
| }
|
| @Override
| public Locale getLocale() {
| Locale locale = serverRequest.getLocale();
| if (locale == null) {
| return super.getLocale();
| }
| else {
| return locale;
| }
| }
|
| @Override
| public Enumeration getLocales() {
| final Locale[] locales = serverRequest.getLocales();
| if (locales == null) {
| return super.getLocales();
| }
| else {
| return new Enumeration() {
| private int index = 0;
|
| public boolean hasMoreElements() {
| return index < locales.length;
| }
|
| public Object nextElement() {
| return locales[index++];
| }
|
| };
| }
| }
|
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003943#4003943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003943
19 years, 3 months
[JBoss Messaging] - Jboss Messaging Remoting issue...
by shansae
I have been trying to get the Jboss Messaging issue resolved with no success.
I am a client but maintain the Messaging Queue on my end. Provider is remote and will post messages to my queue. I just changed the default Queue Name after configuring jboss-messaging-1.0.1.SP2 into jboss-4.0.5.GA. The queue seems to start up fine and I am able to run the examples from the same machine without any issue. Changed persistance to Oracle persistance.
Now when I run the examples on a remote machine , I get an exception as shown below. Can someone help me what am I doing wrong. The test I am running is the Queue example provided with the jboss messaging. Any help would greatly appreciated.
[java] Queue /queue/ipptMsgStatusQueue exists
[java] 12:21:50,247 ERROR @main [JBossConnectionFactory] Failed to config client side AOP
[java] org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for locator - InvokerLocator [socket://127.0.0.1:14457/?clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.server.remoting.JMSWireFormat&serializationtype=jboss&socket.check_connection=false&unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat]
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:323)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:125)
[java] at org.jboss.remoting.Client.invoke(Client.java:607)
[java] at org.jboss.remoting.Client.invoke(Client.java:599)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:199)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
[java] at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:233)
[java] java.lang.RuntimeException: Failed to config client side AOP
[java] at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:251)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:96)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:91)
[java] at org.jboss.example.jms.queue.QueueExample.example(QueueExample.java:72)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:58)
[java] at org.jboss.example.jms.queue.QueueExample.main(QueueExample.java:134)
[java] Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for locator - InvokerLocator [socket://127.0.0.1:14457/?clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.server.remoting.JMSWireFormat&serializationtype=jboss&socket.check_connection=false&unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat]
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:323)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:125)
[java] at org.jboss.remoting.Client.invoke(Client.java:607)
[java] at org.jboss.remoting.Client.invoke(Client.java:599)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:199)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext(ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig(ClientConnectionFactoryDelegate.java)
[java] at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:233)
[java] ... 6 more
[java] Caused by: java.net.ConnectException: Connection refused
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] at java.net.Socket.connect(Socket.java:516)
[java] at java.net.Socket.connect(Socket.java:466)
[java] at java.net.Socket.(Socket.java:366)
[java] at java.net.Socket.(Socket.java:179)
[java] at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:183)
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:701)
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:319)
[java] ... 13 more
[java] #####################
[java] ### FAILURE! ###
[java] #####################
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:96)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:91)
[java] at org.jboss.example.jms.queue.QueueExample.example(QueueExample.java:72)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:58)
[java] at org.jboss.example.jms.queue.QueueExample.main(QueueExample.java:134)
[java] Caused by: java.net.ConnectException: Connection refused
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] at java.net.Socket.connect(Socket.java:516)
[java] at java.net.Socket.connect(Socket.java:466)
[java] at java.net.Socket.(Socket.java:366)
[java] at java.net.Socket.(Socket.java:179)
[java] at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:183)
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:701)
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:319)
[java] ... 13 more
BUILD FAILED
/home/bg0523/jboss/messaging/jboss-messaging-1.0.1.SP2/examples/queue/build.xml:80: Java returned: 1
Total time: 4 seconds
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003939#4003939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003939
19 years, 3 months
[JBoss jBPM] - Natural Artificial Intelligence (IAN)
by simetrisian
IAN (Inteligencia Artificial Natural)
Consideraciones Iniciales:
-------------------------
1. Framework de Numeros naturales. Sistema arabigo-hindu decimal (posicional) numeracion maya
2. Framework de conjuntos de elementos
3. Algoritmo ID Camino / ID Posicion (redes)
4. Framework de IDs, interface ID (isRelatedTo(otherId:ID):Sets.Relation)
5. Metaclasses
6. ID Global de transaccion
7. Motor de razonamiento semantico
8. Interface Rol (Sujeto en S.V.O.). I.e.: Container->Building => Containee->Room
9. URI scheme for people and other relevant entities in the world
10. Framework de dimensiones (1D, 2D, 3D, ...)
11. Base 5 (10/2). Almacenamiento, procesamiento. Sirve hardware binario (10/2)
12. Framework de IDs semanticos
13. Framework de unidades de medida (unidades x centenas = centenas, por decenas, decenas, etc)
14. 7 principios universales kybalion. Dimension de cada uno, unidad de medida de cada uno
15. Un valor en determinado sistema de unidades de medida tiene su significado semantico (9.8m/seg al cuadrado, etc)
16. 7 operaciones aritmeticas primitivas o axiomaticas: +, -, *, /, exp, raiz, log
17. 7 conceptos primos base en el lenguaje. conceptos axiomaticos
18. 5 operandos primitivos (5 primeros nros primos)
19. sumatoria de los digitos de un numero:
digpos0 + digpos1 + ... = x (123 = 6) que es 6 del nro?
20. Algoritmo para saber el digito mas significativo: nro/base hasta que sea de un digito
DMS = n/b a la cantidad de digitos - n mod base a la cantidad de digitos
DMS + N - DMS + ... = sumatoria digitos nro.
21. Con la base, la cantidad de digitos de un nro, el nro de 1 digito sumatoria recursiva de digitos del nro y la cantidad de veces que hubo que sumar los digistos hasta llegar a un digito se puede reconstruir el nro original.
22. Funciones Semanticas : Verbos
23. base sist. numerico / 2 primeros nros primos = operandos primos de la base
24. Cual es la base en un lenguaje humano?
25. Generacion: AB + CD = AD
26. Valores de verdad (humanos, base 4) = verdadero, falso, desconocido, mentira
27. cada digito en determinada base es un valor de verdad
28. Union = OR; Interseccion = AND; Complemento: NOT; Dif. Simetrica = XOR
29. Relaciones: Transitivas, simetricas, reflexivas.
30. Cada digito en det. pos. en un nro es un conjunto?
31. ADN: A, T, G, C; ARN: A, G, U, C
32. Expresiones decimales periodicas e irracionales: segun el peso(posicion) del digito decimal contiene diferente informacion. sum primeros digitos de e = 9, el resto de los digitos es un algoritmo. Buscar la manera de convertir un nro irracional o periodico en un algoritmo o formula y viceversa.
33. Posicion digito: energia, Valor digito: Vibracion, pos * valor = objeto digito, materia, concepto.
34. Recursividad: Una parte contiene al todo y el todo contiene a una parte: El nro 9 contiene al nro 1 9 veces y el 1 contiene al 9 1/9 veces. e contiene a todos los numeros (nro infinito)
35. Numeros, digitos y dimensiones: cual es la dimension de cada digito en un nro segun su posicion en dicho nro?
36. Vf = Vo * T +/- 1/2a(tt). Vibracion: 1/2a(tt). masa = e a la vibracion. energia = raiz vibracion de masa
37. AND OR NOT XOR + IS (V IS V = F, etc)
38. Memoria textual y memoria semantica
39. Ultimos n (p.ej base) digitos de un numero, que son del numero? nombre del numero?
40. Todo es un numero. Que parezca una imagen, un sonido, etc. depende de la dimension en la que se aprecien sus energias y sus vibraciones
41. Dimensiones contenidas en otras dimensiones: Su escala se puede dilatar o contraer (i.e. tiempo) segun las energias y vibraciones de la dimension contenedora o contexto
42. Todo = 1, 7 principios: 1+2+3+4+5+6+7 = 28 -> 2+8=10 -> 1 (todo). Cada principio es una dimension o escala en la dimension del todo (1)
43. La sumatoria de los digitos de un numero es llevar cada digito (su vibracion) a su energia en la dimension de cantidad de digitos de la sumatoria final
44. La sumatoria en un digito de los digitos de un nro determina el principio que rige dicho numero. para cada principio o dimension existe un algoritmo distinto para reconstruir el nro desde la sumatoria
45. Sustantivo[op][modif] => Verbo[op][modif] => Sustantivo[op][modif]: SVO (sujeto, verbo, objeto) SOV para otras lenguas (euskera). S+V = A; V+O=B; A+B=oracion.
46. Modulo de un numero: parte decimal del cociente producto divisor de la division
Sebastian Nicolas Samaruga Cedola.
Bibliografìa:
------------
-Parsing Techniques a practical guide
-JF Sowa, Knowledge Representation
-Kybalion
-Adaptive Object Modeling design pattern (Rumbaugh)
-Copi, Introduccion a la logica
-Alexander, Tres aspectos de matematica y diseño
-Chomsky, Sistemas de analisis sintactico
-Pfizer: Genoma humano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003937#4003937
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003937
19 years, 3 months