[JBoss Seam] - logging "org.hibernate.type"
by jdijkmeijer
Hi,
Thanks in advance for the more than adequate responses I've received in the past. I wish IBM would only answer to the questions I post, and my employer is paying big time for it.
Anyway currently I'm trying to debug my own application and I'm looking at the variables passed into queries. I used to be able to view the org.hybernate.type.[types] via
<category name="org.hibernate.type">
| <priority value="DEBUG"/>
| </category>
the queries itself are viewable by show-sql = true. The binding and returning variables would appear below, alas I cant display them anymore.
I checked the jboss-log4j.xml, checked for Threshold settings etc. I do see the org.hibernate.pretty.Printer output reacting to changes to log4j settings but not the org.hibernate.type.[types].
I also decompiled the org.hibernate.type.StringType /Applications/jboss-4.2.2.GA/server/default/lib/Hibernate3.jar, but I dont see the logging statements in there.
Is there a fix?
regards,
Jeroen.
ENV:
13:47:21,453 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
13:47:21,732 INFO [ServerInfo] Java version: 1.5.0_07,Apple Computer, Inc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120457#4120457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120457
18 years, 5 months
[EJB 3.0] - Re: can not lookup session bean under Jboss 4.2.2GA and ejb3
by yanlong11
:( I must be doing something wrong.
I even made very base interface (Calculator.java) like in the example but I am always getting the same error. Class Cast Exception.
please give me a hint what I am doing wrong. below all important code. (I had rather included it.)
thanks in advance
//baseBean.java
package beans;
public interface baseBean {
public String hello();
}
//baseRemote.java
package beans;
import javax.ejb.Remote;
@Remote
public interface baseRemote extends baseBean{
//public String hello();
}
//testBean
package beans;
import javax.ejb.Stateless;
@Stateless(name = "testBean")
public class testBean implements baseRemote {
public testBean() {
}
public String hello() {
return "Hello from bean";
}
}
//index.jsp
<%
InitialContext ctx = new InitialContext();
try {
Object obj = ctx.lookup("testBean/remote");
//baseRemote testRemote = (baseRemote) PortableRemoteObject.narrow(obj, baseRemote.class);
baseBean bean = (baseBean)obj;
out.print(bean.hello());
//out.print(testRemote.hello());
} catch (Exception e) {
e.printStackTrace();
}
%>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120440#4120440
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120440
18 years, 5 months