将Hibernate配置到Weblogic JNDI上的问题(尤其请robbin指教)

04-03-24 shenwr

package com.fankai;

import java.util.Hashtable;

import weblogic.common.T3StartupDef;

import weblogic.common.T3ServicesDef;

import net.sf.hibernate.cfg.Configuration;

import net.sf.hibernate.SessionFactory;

public class WLSStartup 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);

出错,信息为:"WLSStartup.java": cannot resolve symbol: class Cat in class com.fankai.WLSStartup at line 44, column 57

请问怎么解决呀???