EJB is used to implement the business logic in server side. It is a Distributed Architecture, so from anywhere we can invoke the business logic using Remote Object.
Make a WAR and JAR Using ANT build Tool
ANT is a build tool for java web based application. It is used to clean,compile,create a war and jar files. Create a xml called build.xml under WEB-INF.
<?xml version="1.0" encoding="UTF-8"?> <project name="sample"> <target name="makeJAR"> <mkdir dir="build/jar"/> <jar destfile="build/jar/sample.jar" basedir="build/classes"> </jar> </target> <target name="makeWAR" description="Bundles the application as a WAR file"> <war destfile="sample.war" basedir="WebContent"> </war> </target> </project>
Now build your application. WAR and JAR are created.
Put Taglib in WEB.XML
Put your struts taglib files in Web-Inf and specify the below code in Web.Xml
Below XML attributes are load the taglib in jsp and parse the HTML elements.
Using indexOf()
indexOf function is used to find the character in a String. It will return '-1' on failure i.e. no character found in a String else it will return the position of the character.
Example
@ Special Character Found in a postion 7
Example
public class example { public static void main(String[] args) { String email="example@gmail.com"; int pos=email.indexOf('@'); if(pos!=-1) { System.out.println("@ Special Character Found in a postion "+pos); } else { System.out.println("@ Special Character Not Found"); } } }Output
@ Special Character Found in a postion 7
Remove jsessionid in URL - Struts
URL Rewriting is used to remove the URL jsesssionid in java based web application.By default, Web app URL are look like this :
Above URL fails in Security concerns because session is maintain in URL. User can miss use the data by session Id.It's possible that some web sites may use cookies to track user browsing patterns.
Sessions can be implemented with two underlying mechanism
-->cookies
-->URL rewriting
To remove the jsessionid , want to tell in web.xml
<session-config> <tracking-mode>COOKIE</tracking-mode> </session-config>Now URL look like this..
http://www.bhuvaneslabs.com/login.do
Customized 404 Error Page in Struts
By Default, Struts will show a default 404 error page. If you want custom error page, you want to declare xml attributes in web.xml. Mention the error code and JSP page in xml attribute when the particular error happen it redirects to the custom page in your directory not to the default page.
Put your error404.jsp in WebContent directory in your application.
Put your error404.jsp in WebContent directory in your application.
web.xml
<?xml version="1.0" encoding="UTF-8"?> <web-app> <display-name>Custom Error Page</display-name> <!-- Standard Action Servlet Configuration --> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Standard Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <!-- The Usual Welcome File List --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- The Custom Error Page List --> <error-page> <error-code>404</error-code> <location>error404.jsp</location> </error-page> </web-app>
Create a SVN Repository in local Disk
Let show you how to create a SVN repository, check in (upload
the document/folders) and Check out.
Download SVN client from here: http://tortoisesvn.net/downloads.html
Note :
For Windows XP, up to SVN
Version 1.6.7 can be installable.
Create a SVN repository
Step 1 : Create a new folder in any of your local drive.
Step 2: Open the folder and Right click. Goto Tortorise
SVN->Create Repository Here option.
The
SVN default folder are automatically created and get the Successful created Alert Box
CHECK IN
Now Right Click on the file/folder which want to be kept in
SVN. Goto Tortoise SVN->Import
option.
You will get an SVN Repository URL in the dropdown and click
ok to import the folder to SVN. After that you will get a SVN alert log whether
is successfully imported or failed.
CHECK OUT:
Right
Click (where you want to checkout the files), goto SVN Checkout Option
Click ok.
Change Virtual Memory to speed up System Performance
Is your system is slow or hanged up,by default
system will take virtual memory space but some point of time some of the
application will take large memory space will tends systems hang or very low
performance. By changing the virtual memory depending upon the application,
system performance will be good.
Steps to change
Virtual Memory:
Right Click on the my computer and go
to properties, then Advance tab
Under
Advanced Tab, Performance -> Settings.
Under
Performance Options, Advanced Tab.
Select the System disk and allocate the memory space.
chan
Difference between Java and Javaw exe
There will be a bit confusion
between java and javaw exes in JDK bin folder, the path is (where the jdk is
placed directory)
c:/Program
Files/Java/JDK/bin/java.exe
Both will do
the similar work and will run in same environment (Windows). But have one key
difference in common.
java.exe is the console app, if want to work
in console executing any java code without any IDE(Eclipse,Netbeans) java.exe will
execute and run.
c:/Program Files/Java/JDK/bin/Java
FirstApp.java
javaw.exe
is windows app (console-less). You can't have Console with javaw.exe. If working in IDE like Eclipse,javaw.exe will run
in the system.
[Solved] JBossAS-5.0.0.GA Server Startup Error
Eclipse : Server JBoss v5.0 at localhost failed to start.
Many of the programmer facing this error in server console when start up the JBoss 5.0 GA.This error also throwing in console startup.
Following below is a console error
Goto JBoss directory like below
D:\jboss5\server\default\conf\bootstrap
Open Binding.xml in bootstrap folder.
BEFORE
Following below is a console error
14:22:36,933 INFO [ServerImpl] Starting JBoss (Microcontainer)... 14:22:36,934 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714) 14:22:36,934 INFO [ServerImpl] Bootstrap URL: null 14:22:36,934 INFO [ServerImpl] Home Dir: D:\jboss5 14:22:36,934 INFO [ServerImpl] Home URL: file:/D:/jboss5/ 14:22:36,934 INFO [ServerImpl] Library URL: file:/D:/jboss5/lib/ 14:22:36,935 INFO [ServerImpl] Patch URL: null 14:22:36,935 INFO [ServerImpl] Common Base URL: file:/D:/jboss5/common/ 14:22:36,935 INFO [ServerImpl] Common Library URL: file:/D:/jboss5/common/lib/ 14:22:36,935 INFO [ServerImpl] Server Name: default 14:22:36,935 INFO [ServerImpl] Server Base Dir: D:\jboss5\server 14:22:36,935 INFO [ServerImpl] Server Base URL: file:/D:/jboss5/server/ 14:22:36,936 INFO [ServerImpl] Server Config URL: file:/D:/jboss5/server/default/conf/ 14:22:36,936 INFO [ServerImpl] Server Home Dir: D:\jboss5\server\default 14:22:36,936 INFO [ServerImpl] Server Home URL: file:/D:/jboss5/server/default/ 14:22:36,936 INFO [ServerImpl] Server Data Dir: D:\jboss5\server\default\data 14:22:36,936 INFO [ServerImpl] Server Library URL: file:/D:/jboss5/server/default/lib/ 14:22:36,936 INFO [ServerImpl] Server Log Dir: D:\jboss5\server\default\log 14:22:36,936 INFO [ServerImpl] Server Native Dir: D:\jboss5\server\default\tmp\native 14:22:36,936 INFO [ServerImpl] Server Temp Dir: D:\jboss5\server\default\tmp 14:22:36,936 INFO [ServerImpl] Server Temp Deploy Dir: D:\jboss5\server\default\tmp\deploy 14:22:37,387 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/jboss5/server/default/conf/bootstrap.xml 14:22:37,811 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache] 14:22:37,817 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}] 14:22:38,002 INFO [CopyMechanism] VFS temp dir: D:\jboss5\server\default\tmp 14:22:38,003 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled. 14:22:38,619 INFO [ServerInfo] Java version: 1.7.0_07,Oracle Corporation 14:22:38,620 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 23.3-b01,Oracle Corporation 14:22:38,620 INFO [ServerInfo] OS-System: Windows 7 6.1,x86 14:22:38,644 INFO [JMXKernel] Legacy JMX core initialized 14:22:39,509 ERROR [AbstractKernelController] Error installing to Instantiated: name=StandardBindings state=Described java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[int] actual=[java.util.HashSet] at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395) at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153) at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106) at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:276) at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:97) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241) at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70) at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130) at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76) at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91) at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161) at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:144) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:547) at java.lang.Thread.run(Unknown Source) 14:22:39,682 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@dcfce0(root=D:\jboss5\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]) 14:22:39,683 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@dcfce0(root=D:\jboss5\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]) 14:22:39,683 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@1d7d5ee{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]} Failed to boot JBoss: 14:22:40,068 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true java.lang.IllegalStateException: Incompletely deployed: *** DEPLOYMENTS IN ERROR: Name -> Error StandardBindings -> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[int] actual=[java.util.HashSet] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State} SystemPropertyBinder -> SystemPropertyBinder#1{Installed:Described} ServiceBindingManager -> ServiceBindingStore{Installed:Instantiated} SystemPropertyBinder#1 -> ServiceBindingManager{Installed:Described} ServiceBindingStore -> StandardBindings{Installed:**ERROR**} at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174) at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:148) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:547) at java.lang.Thread.run(Unknown Source) 14:22:40,071 INFO [ServerImpl] Shutdown complete Shutdown complete Halting VMSolution :
Goto JBoss directory like below
D:\jboss5\server\default\conf\bootstrap
Open Binding.xml in bootstrap folder.
BEFORE
<bean class="java.util.HashSet" elementclass="org.jboss.services.binding.ServiceBindingMetadata" name="StandardBindings"> <constructor /> <parameter> <set></set> </parameter> </bean>AFTER
<bean class="java.util.HashSet" name="StandardBindings"> <constructor /> <parameter class="java.util.Collection"> <set elementclass="org.jboss.services.binding.ServiceBindingMetadata"></set> </parameter> </bean>Make the changes and start the server. Below is startup log
14:42:54,320 INFO [ServerImpl] Starting JBoss (Microcontainer)... 14:42:54,321 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714) 14:42:54,321 INFO [ServerImpl] Bootstrap URL: null 14:42:54,321 INFO [ServerImpl] Home Dir: D:\jboss5 14:42:54,321 INFO [ServerImpl] Home URL: file:/D:/jboss5/ 14:42:54,322 INFO [ServerImpl] Library URL: file:/D:/jboss5/lib/ 14:42:54,322 INFO [ServerImpl] Patch URL: null 14:42:54,322 INFO [ServerImpl] Common Base URL: file:/D:/jboss5/common/ 14:42:54,323 INFO [ServerImpl] Common Library URL: file:/D:/jboss5/common/lib/ 14:42:54,323 INFO [ServerImpl] Server Name: default 14:42:54,325 INFO [ServerImpl] Server Base Dir: D:\jboss5\server 14:42:54,325 INFO [ServerImpl] Server Base URL: file:/D:/jboss5/server/ 14:42:54,325 INFO [ServerImpl] Server Config URL: file:/D:/jboss5/server/default/conf/ 14:42:54,325 INFO [ServerImpl] Server Home Dir: D:\jboss5\server\default 14:42:54,325 INFO [ServerImpl] Server Home URL: file:/D:/jboss5/server/default/ 14:42:54,325 INFO [ServerImpl] Server Data Dir: D:\jboss5\server\default\data 14:42:54,325 INFO [ServerImpl] Server Library URL: file:/D:/jboss5/server/default/lib/ 14:42:54,326 INFO [ServerImpl] Server Log Dir: D:\jboss5\server\default\log 14:42:54,326 INFO [ServerImpl] Server Native Dir: D:\jboss5\server\default\tmp\native 14:42:54,327 INFO [ServerImpl] Server Temp Dir: D:\jboss5\server\default\tmp 14:42:54,327 INFO [ServerImpl] Server Temp Deploy Dir: D:\jboss5\server\default\tmp\deploy 14:42:54,843 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/jboss5/server/default/conf/bootstrap.xml 14:42:55,259 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache] 14:42:55,265 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}] 14:42:55,480 INFO [CopyMechanism] VFS temp dir: D:\jboss5\server\default\tmp 14:42:55,485 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled. 14:42:56,164 INFO [ServerInfo] Java version: 1.7.0_07,Oracle Corporation 14:42:56,164 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 23.3-b01,Oracle Corporation 14:42:56,164 INFO [ServerInfo] OS-System: Windows 7 6.1,x86 14:42:56,190 INFO [JMXKernel] Legacy JMX core initialized 14:42:57,300 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@17d7a20(root=D:\jboss5\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]) 14:42:57,305 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@17d7a20(root=D:\jboss5\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]) 14:42:57,305 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@16c5f1a{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]} 14:42:59,453 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 14:43:03,510 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core 14:43:03,511 INFO [NativeServerConfig] 3.0.4.SP1 14:43:11,300 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector 14:43:11,410 INFO [MailService] Mail Service bound to java:/Mail 14:43:12,642 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this. 14:43:12,659 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent 14:43:12,785 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc. 14:43:12,785 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer 14:43:12,979 INFO [TransactionManagerService] Initializing recovery manager 14:43:13,073 INFO [TransactionManagerService] Recovery manager configured 14:43:13,073 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference 14:43:13,094 INFO [TransactionManagerService] Starting transaction recovery manager 14:43:13,526 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080 14:43:13,528 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009 14:43:13,529 INFO [StandardService] Starting service jboss.web 14:43:13,531 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA 14:43:13,567 INFO [Catalina] Server startup in 86 ms 14:43:13,583 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war 14:43:14,503 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war 14:43:14,717 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war 14:43:14,832 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/jboss5/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 14:43:14,851 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/jboss5/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 14:43:14,871 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/jboss5/server/default/deploy/jms-ra.rar/META-INF/ra.xml 14:43:14,889 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/jboss5/server/default/deploy/mail-ra.rar/META-INF/ra.xml 14:43:14,912 INFO [RARDeployment] Required license terms exist, view vfszip:/D:/jboss5/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 14:43:14,985 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 14:43:15,009 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 14:43:15,011 INFO [RAMJobStore] RAMJobStore initialized. 14:43:15,012 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 14:43:15,012 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 14:43:15,012 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 14:43:15,514 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 14:43:15,707 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP)) 14:43:15,744 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 14:43:15,746 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 14:43:15,746 INFO [JobStoreCMT] Using db table-based data access locking (synchronization). 14:43:15,754 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s). 14:43:15,755 INFO [JobStoreCMT] Removed 0 Volatile Job(s). 14:43:15,755 INFO [JobStoreCMT] JobStoreCMT initialized. 14:43:15,755 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance. 14:43:15,755 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 14:43:15,757 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state. 14:43:15,761 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down. 14:43:15,761 INFO [JobStoreCMT] Recovery complete. 14:43:15,761 INFO [JobStoreCMT] Removed 0 'complete' triggers. 14:43:15,761 INFO [JobStoreCMT] Removed 0 stale fired job entries. 14:43:15,763 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started. 14:43:16,346 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started 14:43:16,434 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000 14:43:16,488 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 14:43:16,488 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1383834 started 14:43:16,488 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover 14:43:16,488 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing 14:43:16,489 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 14:43:16,489 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1e1cb7d started 14:43:16,491 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000 14:43:16,491 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 14:43:16,491 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1659b3a started 14:43:16,588 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 14:43:16,603 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war 14:43:16,646 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war 14:43:17,300 INFO [TomcatDeployment] deploy, ctxPath=/struts-cookbook-1.3.10, vfsUrl=struts-cookbook-1.3.10.war 14:43:17,430 INFO [ActionServlet] Loading chain catalog from vfszip:/D:/jboss5/server/default/deploy/struts-cookbook-1.3.10.war/WEB-INF/lib/struts-core-1.3.10.jar/org/apache/struts/chain/chain-config.xml 14:43:17,644 INFO [ValidatorPlugIn] Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml' 14:43:17,645 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml' 14:43:17,762 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 14:43:17,789 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 14:43:17,826 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 23s:497msSuccessfully JBoss Server was started. Check out in Browser.
Setup and Run Jboss AS Server
JavaBeans Open Source Software Application Server (JBoss AS or JBoss) is an application server that implements the Java Platform, Enterprise Edition (Java EE), EJB. JBoss is a cross-platform software usable on any operating system that supports Java.
Download a jBoss in http://www.jboss.org/jbossas/downloads/ and select a 7.0 Version
D:\jboss\bin\standalone.bat
Server is started now. Localhost is ready to use.
Open the system browser and type the url http://localhost:8080
Download a jBoss in http://www.jboss.org/jbossas/downloads/ and select a 7.0 Version
Save it in local disk except c:\ drive. If it is in c:\
drive, give admin permission to access the folder because jboss make a “server ”directory
automatically.
Open the cmd prompt(Start->run type cmd) in windows. Go
to directory where the JBoss folder is d:/jboss/bin
Here there is two mode of server - Domain and Stand alone.
Domain is a collection of server instance can be managed in
one server management console.
Standalone is only one server instance which will run.
Now going to run Standalone Server.
Server is started now. Localhost is ready to use.
Open the system browser and type the url http://localhost:8080
jBoss Server is running in localhost...
Subscribe to:
Posts
(
Atom
)