ITeye博客

JBOSS

共 12 篇文章

JBoss AS7:Timeout deploying JBoss applications

**问题现象:**jboss在开机部署时,由于软件包的问题,导致部署时间超过jboss默认时间(60秒),jboss重新部署,打断上一次部署,如此反复,导致网站启动失败 Code: KB-E1037 Issue: There is an error message in log file while deploying JBoss application ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to…

2013-10-25 03:07 · Java · JBOSS · EJB

JBoss7快速入门

1、下载地址: http://www.jboss.org/jbossas/downloads ,下载Certified Java EE 6 Full Profile版本。 2、解压 jboss-as-7.1.1.Final.zip 到 D:\programs。 3、设置环境变量如下: 系统变量->新建->变量名:JAVA_HOME = C:\Java 以下是非必须的,启动.bat 中会自动寻找 系统变量->新建->变量名:CLASSPATH 变量值:.;%JAVA_HOME%\lib 系统变量->编辑->变量名:Path 在变量值的最前面加上:%JAVA_HOME%\bin; 4、启动JBo…

2013-08-29 14:54 · Java · JBOSS · EJB

JBOSS6 中改写WEBSERVICE的SOAP的地址

修改 <jboss_home>/server/< 实例 >/deployers/jbossws.deployer/META-INF/stack-agnostic-jboss-beans.xml 文件 <bean name="WSServerConfig" class="org.jboss.webservices.integration.config.ServerConfigImpl"> <property name="mbeanServer"><inject bean="WSMBeanServerLocator" property="mbeanServer"/></property> <!-…

2013-05-16 14:47 · Java · JBOSS

Starting and Stopping JBoss

Chapter 5. Starting and Stopping JBoss After you have installed the JBoss distribution, it is wise to perform a simple startup test to validate that there are no major problems with your Java VM/operating system combination. To test your installation, move to the bin directory and execute the run.b…

2013-05-10 15:17 · Java · JBOSS

JBoss教程(学习简明手册)

这里,我以 jboss-5.1.0.GA JDK1.6 操作系统XP 来说明. jboss-5.1.0.GA下载地址:http://jaist.dl.sourceforge.net/sourceforge/jboss/jboss-5.0.0.GA.zip JDK1.6: http://jaist.dl.sourceforge.net/sourceforge/jboss/jboss-5.0.0.GA-jdk6.zip 官方下载地址 JBoss 安装版下载地址: http://labs.jboss.org/portal/jbossas/download/ 官方安装文档 http://docs.j…

2013-05-08 09:57 · Java · JBOSS

Jboss中的web-console与jmx-console的配置

JBoss安装成功后,一般可以通过http://localhost:port来访问.Jmx Console和Jboss Web Console 里面可以修改和删除应用的参数,如果不加强安全设置,将会带来严重安全后果。 默认登录jmx-console的账号信息是:admin/admin,因此我们应该修改这个账号信息。 一、JMX安全配置 1: 找到%JBOSS_HOME%/server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml文件,去掉对下面这段xml文本的注释。 Xml代码 Java代码 <jboss-web> <securit…

2013-05-08 09:27 · Java · JBOSS

How to create Oracle DataSource And Install Oracle JDBC Driver in JBoss AS7

Hi, Unlike JBoss AS 6 there is no “$PROFILE/lib” present in JBoss AS 7 where we can place our JDBC Drivers in order to add/register the JDBC Driver. Also in JBoss AS 7 we don’t need to create a separate DataSource file as “*-ds.xml” file. In JBoss AS 7 the DataSource configuration is placed wither …

2013-05-06 23:10 · Java · JBOSS

Upgrading Hibernate 3.3.2 to Hibernate 4.0.0

As you may know, JBoss AS 7 is incredible fast and low-memory, and it comes with Hibernate 4.0.0 by default. Since AS 7.0.1, it is easy for you to support both Hibernate 3.x and Hibernate 4.0.0 under JBoss AS, thanks to the modular classpath here. If you want to run Hibernate 3.x under AS7 along wi…

2013-05-06 22:56 · Java · JBOSS

Eclipse中JBOSS5.1无法启动的问题解决办法

今天在Eclipse中启动JBoss 5.1时遇到这样的一个错误: …… ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File] …… DEPLOYMENTS…

2013-04-29 23:47 · Java · JBOSS

Linux下配置JBoss自动启动

(JBoss V4.0) #为root用户的命令提示符 $为jboss用户的命令提示符 Ø安装J2SDK到/usr/local/j2sdk1.4.2,编辑/etc/profile # /etc/profile Java _HOME=/usr/local/j2sdk PATH=$PATH:$JAVA_HOME/bin CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar export JAVA_HOME PATH CLASSPATH Ø安装JBoss4.0到/usr/local/jboss4x,编辑/etc/profile # /etc/profile JBOSS_HOM…

2013-04-28 15:16 · Java · CentOS · JBOSS

Spring JBOSS MQ JMS的开发应用

如果用过JMS的话,会发现它类似写JDBC或JCA代码。它有创建或检索JMS资源的样板代码,每当你需要编写一个新类来发送或接受消息时,都得重复编写那个样本代码。下面列出了传统JMS实现涉及的步骤: 1、创建JNDI初始上下文context; 2、从JNDI上下文获得队列连接工厂; 3、从队列连接工厂取得队列Queue; 4、创建一个Session对象; 5、创建一个发送或接受对象; 6、利用第5部创建的发送或接受对象发送或接受消息; 7、处理完消息后,关闭所有JMS资源。 在JBOSS中配置: <?xml version="1.0" encoding="UTF-8"?> <!-- $Id: …

2013-04-26 17:19 · Java · Spring · JBOSS

Linux 上面部署 Jboss 6.1.0.Fina

准备工作: jdk:下载jdk-6u13-linux-i586.zip JBOSS下载:jboss-as-distribution-6.1.0.Final 下载地址: http://www.jboss.org/jbossas/downloads JDK安装: 1 解压jdk: unzip jdk-6u13-linux-i586.zip 2 安装jdk: ./jdk-6u13-linux-i586.bin , 出现安装协议,输入"Yes"回车 3 set java environment: 3.1 以root进人cd /etc/profile,在文件最后添加如下内容: #setjava env…

2013-04-22 17:07 · Java · Linux · JBOSS