glglgl
2003-11-16 11:49
出现错误:

11:48:19,156 INFO Environment:462 - JVM proxy support: true
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Prohibited p
ackage name: java.util
at java.lang.ClassLoader.defineClass(ClassLoader.java:474)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at net.sf.hibernate.cfg.Environment.<clinit>(Environment.java:467)
at net.sf.hibernate.cfg.Configuration.<init>(Configuration.java:84)
at WLSStartup.doBind(WLSStartup.java:42)
at WLSStartup.startup(WLSStartup.java:22)
at weblogic.t3.srvr.StartupClassRunner.invokeStartup(StartupClassRunner.
java:141)

汪汪
2003-11-17 16:24
JBoss下怎么配制呢?

refactor
2003-11-18 16:47
三楼有一点疑问robin老家

nfrjgs
2003-11-19 10:10
public class HibernateStartUp implements T3StartupDef {

public void setServices(T3ServicesDef services) {}

public String startup(String name, Hashtable args) throws Exception {
Configuration conf = new Configuration().addClass(Cat.class);
SessionFactory sf = conf.buildSessionFactory();
return "Hibernate Startup completed successfully";
}
}


我编译的时候, Configuration conf = new Configuration().addClass(Cat.class);
出错,敢问时什么原因???

layout
2004-01-05 22:13
我写了一个startup的类,大抵同你的代码相仿.
也能够成功起来.但是现在的情况是:
如果我使用struts的话则会进入我对应的文件进行读取配置文件
我的启动类在/web-inf/class中,并且把这个类加入了weblogic的启动
的classpath,这样一来导致了struts在解析文件的时候找不到对应的
配置文件.甚至解析直接出错,说classnotfd之类的错误.
Hibernate的startup类如果不加载,则struts可以顺利起来
这辆个掺合在一起的时候就出现问题,大侠救命啦....

sanlanwang
2004-01-20 11:32
您好,感谢您提供的资料。我按您所说的做了一下,结果出现如下错误:
ERROR JDBCExceptionReporter:44 - User: wsl, failed to be authenticated.
这个问题困扰了我很久,请问我还要做些什么才能纠正这个错误呢?

andyljm
2004-09-06 16:51
我按照这种方法 no JNDI name configed在JNDI 树上有
绑定名称: hibernate
对象类: net.sf.hibernate.impl.SessionFactoryImpl
对象散列代码: 30371681
对象转换成字符串: net.sf.hibernate.impl.SessionFactoryImpl@1cf6f61
但其实是个REFRENCE;
然后我让HIBERNATE自己BIND BOUND FACTORY TO JNID NAME : HIBERNATE
JNDI树上也有
绑定名称: hibernate
对象类: net.sf.hibernate.impl.SessionFactoryImpl
对象散列代码: 30371681
对象转换成字符串: net.sf.hibernate.impl.SessionFactoryImpl@1cf6f61
但也是个REFRENCE 在自己的类里用CONTEXT CTX = NEW INITIALCONTEXT()//加不加Properties都一样
SessionFactory sf = (SessionFactory)ctx.lookup("hibernate");
java.lang.NullPointerException


为什么我拿不到SessionFactory的实例?


mustang_xp
2004-09-07 22:51
A better and more simple way is to use Java Connector Architecture( JCA ).

I remember Hiberante support JCA adapter.

With JCA Adapter, no need to bind the JNDI yourself, leave all these crap to the application server.

returner
2004-10-21 13:54
robbin,代码中Cat是什么类,我是用HibernateStartUp来替代它了。
另外,启动时,提示要HibernateStartUp.hbm.xml,这个文件要写些
什么内容呢?
请帮帮我,谢谢!

returner
2004-10-21 22:07
robbin,
我现在对下面这个几个问题搞不清楚:
1.hibernate.session_factory_name这个属性的值和weblogic配置的jndi的名称是什么关系?
2.hibernate.connection.datasource这个值是为weblogic上配置的jndi的名称么?
3.程序中lookup()的时候,用hibernate.session_factory_name的值么

fx3751
2005-04-07 14:25
照上面配置,启动Weblogic 时报错,还请高人请教,(WEBLOGIC81,HIBERNATE 2.1.6) 先谢谢了
<2005-4-7 下午14时10分08秒 CST> <Error> <Configuration Management> <BEA-150029>
<There was an error reading the MBean mydomain:Name=mydomain,Type=EmbeddedLDAP.
The value null for attribute CredentialEncrypted could not be read successfully.
>
***************************************************************************
The WebLogic Server did not start up properly.
Exception raised: 'weblogic.management.configuration.ConfigurationException: [Co
nfiguration Management:150029]There was an error reading the MBean mydomain:Name
=mydomain,Type=EmbeddedLDAP. The value null for attribute CredentialEncrypted co
uld not be read successfully.'
Reason: weblogic.management.configuration.ConfigurationException: [Configuration
Management:150029]There was an error reading the MBean mydomain:Name=mydomain,T
ype=EmbeddedLDAP. The value null for attribute CredentialEncrypted could not be
read successfully.

wkj83823
2006-01-09 20:25
为什么我把JNDI name绑定上去了, 调用lookup仍然会找不到JNDI name

猜你喜欢
2Go 上一页 1 2