在设置run time properties时候有一项是让输入Main class这个我没有输入。结果当运行server的时候就tan出run time properties的设置如果点ok提示说:启动run time 结构不完全。如果输入Main class 应该是什么呢?我用的是session bean 。
解决方案 »
- 求助!将图片插入到word文件,用JAVA语言或者JS该怎么操作?
- 请教了!如何用java清除浏览器的session和cookie?谢谢
- 昨晚装Linux把xp破坏啦 装了个Win7但是我的SQLServce2000装不上了??
- struts2编写的XXAction无法继承Action接口
- 有没有java类可以实现excel转化成带有分隔符的txt文件,JExcelAPI能实现Excel的读入读出,不知道能否实现写入txt文本中
- poi读excel出现了问题
- Struts2 标签中如何使用 Jsp 页面里面的变量
- [求助]奇怪的JSTL标签输出换行问题
- 现有大型办公自动化系统,因为模块太多,登录人员多,考虑将模块分开安装,不知用什么框架或技术好?
- ==打搅了,一个在独立tomcat上的servlet如何调用jboss上的ejb,不在乎源码,关键是配置==
- 急急,搞一天了,JB7+WEBLOGIC7开发,servlet同步更新大家是怎么解决的??!!
- 让人ft的java小问题,多谢!
可是启动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)***************************************************************************
建立一个简单的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运行。
重新建一个domain好了