在设置run time properties时候有一项是让输入Main class这个我没有输入。结果当运行server的时候就tan出run time properties的设置如果点ok提示说:启动run time 结构不完全。如果输入Main class 应该是什么呢?我用的是session bean 。

解决方案 »

  1.   

    这个问题解决了!
    可是启动weblogic7在jb7中为什么会出现
    E:\temp2\.\config.xml not found
    提示
    然后系统提示是否创建
    create a default configuration and boot? (y/n): 
    我y后出现
    ***************************************************************************The WebLogic Server did not start up properly.Exception raised: weblogic.management.configuration.ConfigurationException: Passwords do not match, unable to generate default configuration, please try again. at weblogic.management.internal.xml.XmlFileRepository.validateUserAndPass(XmlFileRepository.java:579) at weblogic.management.internal.xml.XmlFileRepository.createOrLoadDomain(XmlFileRepository.java:342) at weblogic.management.internal.xml.XmlFileRepository.bootStrapAndLoadActiveDomain(XmlFileRepository.java:279) at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:211) at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:196) at weblogic.management.AdminServer.configure(AdminServer.java:190) at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:111) at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:665) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276) at weblogic.Server.main(Server.java:31)Reason: Fatal initialization exception
    Throwable: weblogic.management.configuration.ConfigurationException: Passwords do not match, unable to generate default configuration, please try again.
    weblogic.management.configuration.ConfigurationException: Passwords do not match, unable to generate default configuration, please try again. at weblogic.management.internal.xml.XmlFileRepository.validateUserAndPass(XmlFileRepository.java:579) at weblogic.management.internal.xml.XmlFileRepository.createOrLoadDomain(XmlFileRepository.java:342) at weblogic.management.internal.xml.XmlFileRepository.bootStrapAndLoadActiveDomain(XmlFileRepository.java:279) at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:211) at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:196) at weblogic.management.AdminServer.configure(AdminServer.java:190) at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:111) at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:665) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276) at weblogic.Server.main(Server.java:31)***************************************************************************
      

  2.   

    这里有一段,你试试看吧。实战2:Session Bean
    建立一个简单的Bean:1. 关闭所有工程:File->Close Projects2. 选择File->New project 在Name栏中输入HelloDemo,Directory栏中输入存放路径(不要有空格),其他不变,单击Finish。3. 选择File->New->Enterprise->EJB 2.0 Designer单击OK。在弹出的对话框中单击new建立一个Moudle,在Name中输入HelloMoudle单击OK关闭当前对话框,再次单击OK关闭对话框。4. 在右侧的工作区中单击右键选择:Create EJB->Session Bean,将Bean Name改为HelloBean5. 右键单击代表HelloBean的长方形,选择Add->Method按如下填写:Method Name = SayHelloReturn Type = java.lang.StringInput parameter 不添Interface = remote6. 右键单击代表HelloBean的长方形,选择 View Bean Source按如下填写SayHello():public java.lang.String SayHello(){/**@todo Complete this method*/return new String(“Hello World “);}7.按F9运行,在弹出的对话框中选择Run页,单击New,在configure name处填写Server Runtime Configuration,再选择Run->Server,单击OK关闭当前对话框,单击OK开始编译运行。运行起来之后在左上角的目录树中右键单击HelloModule选择:Deploy options for “HelloModule.jar”->Deploy来发布Bean。建立客户端:1. 选择File->New->Enterprise->EJB Test Client单击OK。选中Genrate method for testing remote interface calls with default arguments单击OK。2. 按如下填写main():public static void main(String[] args){HelloBeanTestClient1 client = new HelloBeanTestClient1();// Use the client object to call one of the Home interface wrappers// above, to create a Remote interface reference to the bean. // If the return value is of the Remote interface type, you can use it// to access the remote interface methods. You can also just use the // client object to call the Remote interface wrappers.client.create();System.out.println(client.SayHello());} 选择Run->Run “HelloBeanTestClient1.java” using defaults运行。
      

  3.   

    很奇怪的问题,没有domain你怎么和weblogic连接上的?
    重新建一个domain好了