[Advanced Documentation] - Re: JBoss configuration to allow CAB and MSI files
by PeterJ
What you mean by "the page attempts to render the file"? To me that means that the server processes the files and attempts to generate HTML based on their contents. If you really mean that, then there must be some mapping in you web.xml file that maps files with those extensions to some servlet.
If, instead, you mean that when clicking on the link the browser attempts to "run" them, and doesn't give the option of saving them, then go to the server/xxx/deploy/jboss-web.deployer/conf/web.xml file. At the end of that file there is a long list of mime mappings. You could add mappings there for msi and cab - using the same mime-type as zip would probably work, or you could google for a more accurate mime type.
Finally, often the choice of running a file rather than allowing you to save it is based on file extension and mime mapping kept within the browser. Check those mappings in your browser.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238824#4238824
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238824
16 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Time Zone, yet again
by sbrenneis
I am using JBoss 5.0.1GA. My logs show time stamps that are on hour behind my actual time zone.
My environment timezone is:
[jboss@gamer ~]$ date
Fri Jun 19 12:25:09 EDT 2009
I found some references to setting user.timezone, so I added this to run.sh
# Setup JBoss specific properties
JAVA_OPTS="-Dprogram.name=$PROGNAME -Duser.timezone=EDT $JAVA_OPTS"
When I run Jboss, the property is on the command line:
[jboss@gamer ~]$ ps -ef | grep java
jboss 31187 31167 5 11:44 pts/3 00:02:07 /usr/java/jdk1.5.0_19/bin/java -Dprogram.name=run.sh -Duser.timezone=EDT -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Duser.timezone=EDT -Djava.net.preferIPv4Stack=true -Djava.endorsed.dirs=/opt/jboss-5.0.1.GA/lib/endorsed -classpath /opt/jboss-5.0.1.GA/bin/run.jar:/usr/java/jdk1.5.0_19/lib/tools.jar org.jboss.Main -c default -b 0.0.0.0
Yet, against all odds, the log still timestamps everything one hour behind.
Any suggestions?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238821#4238821
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238821
16 years, 10 months
[JBoss Messaging] - Client program exception
by chipschoch
JBOSS AS 4.2.2.
JBM 1.4.4
I just upgraded my JBM to 1.4.4 and am trying to read a queue from a JUnit test. I get:
| org.jboss.jms.exception.MessagingJMSException: Failed to invoke
| at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:269)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:187)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
| at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_26795951.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_26795951.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
| at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
| at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87)
| at org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82)
| at com.eLynx.Test.JBMTest.readBpmErrorQueueTest(JBMTest.java:70)
| 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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
| at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
| at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
| at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
| at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
| at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
| at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
| at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
| at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
| at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
| at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
| at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
| at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
| at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
| at org.junit.runners.Suite.runChild(Suite.java:115)
| at org.junit.runners.Suite.runChild(Suite.java:23)
| at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
| at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
| at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
| at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
| at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
| at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
| at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
| at org.junit.runner.JUnitCore.run(JUnitCore.java:116)
| at org.junit.runner.JUnitCore.run(JUnitCore.java:107)
| at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:66)
| at com.eLynx.Test.Utilities.TestRunner.main(TestRunner.java:255)
| Caused by: java.lang.NumberFormatException: null
| at java.lang.Integer.parseInt(Integer.java:415)
| at java.lang.Integer.valueOf(Integer.java:553)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.createCallbackMetadata(JMSRemotingConnection.java:134)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:232)
| at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:312)
| at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:154)
| ... 40 more
| [2009-06-19 12:13:10,920] INFO - Test run finished.
The exception happens in JMSRemotingConnection. No param in map called MicroSocketClientInvoker.MAX_POOL_SIZE_FLAG:
Map params = serverLocator.getParameters();
| int maxPoolSize = 50;
| if (params != null)
| {
| String val = (String)params.get(MicroSocketClientInvoker.MAX_POOL_SIZE_FLAG);
| maxPoolSize = Integer.valueOf((String)val).intValue();
| }
Any ideas why the code thinks the value should be there, but it's not?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238819#4238819
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238819
16 years, 10 months
Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type in the header!
by Koxkorrita
Hello
i have made one webservice for deploing into my jbosss using jaxws and also
i have made one client for this.
when i execute the client appears this error:
Exception in thread "main" javax.xml.ws.WebServiceException: No Content-type
in the header!
at
com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransport
Pipe.java:163)
at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:118)
at
com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:1
15)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:10
9)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89
)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
at $Proxy34.getLineasDeSubvencionRequest(Unknown Source)
at EkirolTramitacionWSCliente.main(EkirolTramitacionWSCliente.java:35)
the code of the client is:
ServicioWS service = new ServicioWS();
Servicio portType = service.getServicioPort();
LineasRequestType p = new LineasRequestType();
p.setCodigo("entidad");
p.setDescripcion("la desc");
portType.getLineasRequest(p);
can you help me?
16 years, 10 months
[JBoss Cache: Core Edition] - Re: Refresh cache from cache loader on demand?
by drcallaway
"galder.zamarreno(a)jboss.com" wrote :
| What do you exactly mean with data changing? Is data changing as a result of your interaction with the cache? Are you changing the data directly in the cache store? I don't understand why you'd want the data to be replaced with the one in the cache store.
I mean that the data is changed by another cache client. For example, say I store pricing information in my cache that changes once a month. I can refresh the cache from a single client by replacing the existing "pricing" node with new information and this will push the new information into the backing database. However, all of the other clients that share this database aren't aware that the data has changed. I'd like to be able to force a refresh periodically so that these other clients dump their current information and reload from the data store.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238815#4238815
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238815
16 years, 10 months