[Beginners Corner] - Re: reading didn't help
by jaikiran
"hate_rtfm_rafb" wrote : Well, I read the installation guide on here for Windows XP, it says you can put Jboss Files ANYWHERE, there's another guide on here that says you can't put it anywhere, especially not "program files".
|
Its recommended that you dont install JBoss in folders which have a space in their path name. Not just JBoss, but other Java installations too show up weird errors when least expected, if you have them installed in such folders.
"hate_rtfm_rafb" wrote :
| I also read ANT is optional so I didn't install.
|
That's correct, you dont need ANT to run JBoss.
"hate_rtfm_rafb" wrote :
| i'm not gonna repeat the instructions i followed i've already read them, followed them etc.
|
Sometimes, even after following the instructions, there are chances that you might have missed something or done something wrong. If you post the details then someone here might be able to point you in the right direction. Please let us know which version of JBoss, Java you are using. What have you set JAVA_HOME to? What does the following command print?
echo %JAVA_HOME%
"hate_rtfm_rafb" wrote :
| Doesn't start the server with run.bat.
Do you see any errors on the console or anything in the server.log file (which is located at %JBOSS_HOME%\server\< serverName>\log folder)? Please post the logs here.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135147#4135147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135147
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Re: Deploying a standard WAR deployment to JBoss4
by jaikiran
anonymous wrote : Does JBoss support the deployment of standards compliant WAR files, and if so, how?
Yes, it does. All you have to do is place the war file in the deploy folder of JBoss.
anonymous wrote :
| The Datasource has been set up for the WAR file, but when an attempt is made to deploy the WAR file it tells me that the datasource is not found.
| Trawling the net for some kind of definitive guide on how to deploy a humble WAR file shows up nothing concrete: there are lots of references to the adding of a JBoss-specific "jboss-web.xml" file, but I cannot find any explanation as to why JBoss would require some weird container specific configuration of its own embedded in the WAR file.
|
Please post the entire exception stacktrace that you are seeing. Without that, its going to be difficult to guess what the problem is. Also, post the contents and the name of the datasource file.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135145#4135145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135145
18 years, 1 month
[JBossWS] - cannot be cast to java.lang.RuntimeException
by QkI
When I try to run my ws client, I get error
| Exception in thread "main" java.lang.ClassCastException: java.lang.ExceptionInInitializerError cannot be cast to java.lang.RuntimeException
| at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:268)
| at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:139)
| at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:86)
| at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:174)
| at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:108)
| at $Proxy16.sayHello(Unknown Source)
| at biz.safo.ws.client.Client.main(Client.java:12)
|
this's my ws
| @Stateless
| @WebService(name="Hello",
| targetNamespace="http://ws.safo.biz",
| serviceName="HelloService")
| public class Hello implements HelloRemote {
|
| @WebMethod
| public String sayHello(String name) {
| System.out.println("<< sayHello");
| return "Hello, " + name;
| }
|
| }
|
and client
| public class Client {
| public static void main(String[] args) {
| HelloService service = new HelloService();
| Hello hello = service.getHelloPort();
| hello.sayHello("heh");
| }
| }
|
classes Hello and HelloService i generate by wsconsume.
My configuration JBoss 4.2.1, jbossws 2.0.3, jdk6.
Any idea what I'm doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135144#4135144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135144
18 years, 1 month
[JBossWS] - webservice compiler error
by arrojusrikanth
when compile webservice with ant it generating compiler errors
|
|
| D:\programs\webservices\calculatorwebservice>ant
| Buildfile: build.xml
|
| prepare:
| [mkdir] Created dir:
|
| D:\programs\webservices\calculatorwebservice\build
| [mkdir] Created dir:
|
| D:\programs\webservices\calculatorwebservice\build\
|
| clas
| ses
|
| compile:
| [javac] Compiling 3 source files to
|
| D:\programs\webservices\calculatorwebser
| vice\build\classes
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| torBean.java:2: cannot find symbol
| [javac] symbol : class Stateless
| [javac] location: package javax.ejb
| [javac] import javax.ejb.Stateless;
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:9: incompatible types
| [javac] found : javax.jws.WebService
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebService(name="Calculator1")
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:10: incompatible types
| [javac] found : javax.jws.soap.SOAPBinding
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @SOAPBinding(style=Style.RPC)
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:10: duplicate annotation
| [javac] @SOAPBinding(style=Style.RPC)
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:13: incompatible types
| [javac] found : javax.jws.WebMethod
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebMethod int add(int x, int y);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| tor.java:15: incompatible types
| [javac] found : javax.jws.WebMethod
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebMethod int subtract(int x, int
|
| y);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| torBean.java:6: cannot find symbol
| [javac] symbol: class Stateless
| [javac] @Stateless
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Calcula
| torBean.java:7: incompatible types
| [javac] found : javax.jws.WebService
| [javac] required:
|
| java.lang.annotation.Annotation
| [javac] @WebService(name="Calculator1",
|
| endpointInterface="webservice1.Calcu
| lator")
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:17: warning: [deprecation]
|
| webservice1.Calculator in webservice1 has been d
| eprecated
| [javac] Calculator calculator =
|
| (Calculator) service.getPort(Calculato
| r.class);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:17: warning: [deprecation]
|
| webservice1.Calculator in webservice1 has been d
| eprecated
| [javac] Calculator calculator =
|
| (Calculator) service.getPort(Calculato
| r.class);
| [javac] ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:17: warning: [deprecation]
|
| webservice1.Calculator in webservice1 has been d
| eprecated
| [javac] Calculator calculator =
|
| (Calculator) service.getPort(Calculato
| r.class);
| [javac]
|
| ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:18: warning: [deprecation] add(int,int) in
|
| webservice1.Calculator has been
| deprecated
| [javac] System.out.println("1 + 1 = " +
|
| calculator.add(1, 1));
| [javac]
|
| ^
| [javac]
|
| D:\programs\webservices\calculatorwebservice\src\we
|
| bservice1\Client.
| java:19: warning: [deprecation] subtract(int,int)
|
| in webservice1.Calculator has
| been deprecated
| [javac] System.out.println("1 - 1 = " +
|
| calculator.subtract(1, 1));
| [javac]
|
| ^
| [javac] 8 errors
| [javac] 5 warnings
|
| BUILD FAILED
| D:\programs\webservices\calculatorwebservice\build.
|
| xml:47: Compile failed; see t
| he compiler error output for details.
|
| Total time: 10 seconds
|
| D:\programs\webservices\calculatorwebservice>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135137#4135137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135137
18 years, 1 month
[Beginners Corner] - reading didn't help
by hate_rtfm_rafb
Well, I read the installation guide on here for Windows XP, it says you can put Jboss Files ANYWHERE, there's another guide on here that says you can't put it anywhere, especially not "program files". I also read ANT is optional so I didn't install. Otherwise I followed the main directions, configure path for JAVA_HOME, JBOSS_HOME etc. etc. i'm not gonna repeat the instructions i followed i've already read them, followed them etc.
Doesn't start the server with run.bat. Can't open up localhost or loopback address on port 8080 or any other port. Can't find out what is wrong.
So where do I even begin to find out what went wrong ? I tried searching through the jboss directory structure for some error log but all i see are .xml files. Tried searching forums but get all these technical mumbo jumbo posts. Tried freenode #jboss on freenode but the few channel users (30 or so) were just not there. I'm running out of resources and patience. I don't think learning Jboss is worth the time anymore. Can anyone convince me otherwise? (no evangelists. just technical support can convince me)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135136#4135136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135136
18 years, 1 month
[JBoss Messaging] - Re: MDBs not getting messages after long run
by timfox
"mpr_prabhu" wrote :
| However would consider this as a defect in JBM as I expect it to handle it more gracefully and clean up expired messages or ensure these do not affect new messages
|
The JMS spec only requires that expired messages are never received by a consumer. It does not require that expired messages are actively expired from the queue before consumption nor does the JMS spec require expiry queues.
Having said that, JBM 2.0 will implement active message expiry from queues before consumption, probably with some kind of reaper thread.
However, even with a reaper thread, there can be no hard guarantees of timely expiry before consumption - that would be very hard to implement. The reaper thread will take a finite time to scan the queue, and during this time there would still be the possibility of expired message buildup if you send messages fast enough.
One thing I have thought about, is a new special queue type that may be useful with time limited messages (e.g. stock prices).
With the special queue type, you send the message with a special header, say, JBM_TIME_LIMITED_ID, and set the value to, say, your stick ticker code for the instrument, e.g. RHT. Then the queue itself makes sure it only maintains the latest version of message with a specific value of that header, and discards earlier ones.
E.g. if I send
Message A - MSFT price
Message B - MSFT price
Message C - RHT price
Message D - IBM price
Message E - RHT price
Message F - RHT price.
Then I start consuming from the queue I will only receive messages:
B, D, F - i.e. the latest prices for each stock.
Just an idea, but I think would be a nice feature and useful for some applications.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135134#4135134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135134
18 years, 1 month