[JNDI/Naming/Network] - Cannot connect to the JNDI: No valid JNDI mapping
by chongming
Greetings,
currently i doing my school project using the jboss-4.0.3SP1, spring and hibernate. My codes are just to save a new user into a database. However when i run my codes in jboss, it hit this error:
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: java:graffitiDB has no valid JNDI binding. Check the jboss-web/resource-ref.)
I tried to find the jboss-web folder but i cant find. Am i on the roght track? This is what i have set up in my application:
This is what i set up in the mssql-ds.xml:
<local-tx-datasource>
<jndi-name>graffitiDB</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/graffiti</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>data</user-name>
base
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
Inside the web.xml, this is what i put for the <resource-ref>
<resource-ref>
<res-ref-name>jdbc/graffitiDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
My codes can be download from here: http://www.nabble.com/file/p22038655/source.zip
Thanks for the help in advance :)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210556#4210556
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210556
17 years, 2 months
[JBoss Messaging] - Simple 2 Server Setup
by hatleye
This, i thought, was going to be a simple Proof of Concept of how JBoss Messaging was intended to be used, but I am at a dead end. I have read the manual, and found nothing concrete on this, but it could be a fundamental understanding on how JBM works with a Serverless queuing system.
I would like to take 2 App Servers with JBM(both successfully installed via the tool) on individual machines, put a message to one of the app servers, and have the appserver on the second machine process the message (via MDB subcriber). Posting everything to one appserver was extremely easy to do, but there I am having trouble making the leap to having 2 JBM installations "speak' to each other.
Assumptions
-This idea would make use of topic type messaging
-The AppServer would communicate the information through the bisocket protocol
-The Client to the topic queue would not need to know anything about machine #2.
So i guess my questions would be around:
-how do you verify a bisocket communcation is set up?
-Is this what JBM was intended to do?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210554#4210554
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210554
17 years, 2 months
[JNDI/Naming/Network] - InvalidClassException: org.jboss.ejb3.remoting.BaseRemotePro
by mchepuri
Hi,
I created and deployed an EJB to JBoss.
EJB Deployed success fully ( checked it from JMXConsile/JNDIView)
Now wrote a simple stand alone client to invoke the server method.
Properties prop = new Properties();
prop.set......
// Code to fill up properties
MyRemote beanRemote= (MyRemote)context.lookup("aer/ReconManagerBean/remote");
beanRemote.method();....
When run this code i am getting
javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:780)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.directv.dtss2.aer.scte.ws.EJBClientTest.invokeExecuteRecon(EJBClientTest.java:34)
at com.directv.dtss2.aer.scte.ws.EJBClientTest.main(EJBClientTest.java:21)
Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = -2711693270411201590, local class serialVersionUID = 1126421850898582900
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
... 4 more
I googled around and implemented some solutions.But no luck...
How can i solve this problem..
Thanks
Murali
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210550#4210550
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210550
17 years, 2 months
[Tomcat, HTTPD, Servlets & JSP] - Caching strategy for css and js files?
by johnNewman
Hello,
We want to have clients be able to cache any static content (css, javascript etc.) However after a release the files may change and the client's will still be holding the invalid cached copy. I'm sure many of us have ran into that after an updated release..
The best solution is to append the build number to the files, then after release, the file name is different and the client requests the new file. I'd like to go this route, but getting that cleanly tied into the build may not be so clean. We are using maven2 and the release plugin, if anyone has this all wired in please share!!
Apart from that, are there any options besides setting the expires header to 24 hours?
And is there any better way to set the expires header other than a servlet filter mapped for *.css?
We do have IIS sitting infront of jboss, is there a way for IIS to serve *.css but still have the css files inside the ear and not somewhere in wwwroot? (i don't think so..)
So if you have any tips, links, or strategies for handling cache within jboss, please post.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210542#4210542
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210542
17 years, 2 months