Win a copy of Rust Web Development this week in the Other Languages forum!

naveen gandham

Greenhorn
+ Follow
since Oct 15, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by naveen gandham

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page language="java" import="com.osius.beans.TestCaseBean"%>
<%@ page language="java" import="com.osius.control.TestCase"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<input value =" Home" type="button" class="button" />
<input value ="Test Cases" type="button" class="button"/>
<input value ="Reports" type="button" class="button"/>
<input value ="Settings" type="button" class="button"/><br>
<br>// these are buttons and once i click on them they should perform an action is there any new way with out uisng js
<br>
<br>

<head>
<title>Report1</title>
<LINK href="../css/web.css" rel="stylesheet" type="text/css">

</head>



<body>

<input value ="Plan New Test Cycle" type="button" class="btn"/>
<input value ="Start Test Cycle" type="button" size ="10" class="btn"/>
<input value ="Stop Test Cycle" type="button" size ="10" class="btn"/>




</table>


</body>

</html>
The above are buttons and once i click on them they should perform an action is there any new way with out uisng js
12 years ago
JSP
Hi

My requirement is to retrive data from the database and show it in atabular format in a jsp page i have done that in this fashion,can any one help me how to use the tags .

package com.xxx.control;
import com.xxx.beans.TestCaseBean;
import com.xxx.entities.DBConnection;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;

public class TestCase {

public ArrayList test() throws SQLException{
ArrayList al = new ArrayList();
try{
//getting connection--------------
Connection connection =DBConnection.getConnection();
System.out.println("Connection in testcase"+connection);
String query ="select name ,description,id,status,testsuiteid,testprocedureid, to_char(cdate,'mm/dd/yyyy') ,complete,revision,environment,to_char(start_date,'mm/dd/yyyy'),to_char(end_date,'mm/dd/yyyy'),planned_testcases,completed_testcases,failed,sucess,defects from testcase";
ResultSet rs = null;
Statement st =null;
st =connection.createStatement();
rs = st.executeQuery(query);

while (rs.next()){
TestCaseBean tc = new TestCaseBean();
tc.setCdate(rs.getString(7));
tc.setDescription(rs.getString(2));
tc.setStatus(rs.getString(4));
tc.setRevision(rs.getString(9));
tc.setEnvironment(rs.getString(10));
tc.setStart_date(rs.getString(11));
tc.setEnd_date(rs.getString(12));
tc.setCompleted_testcases(rs.getInt(13));
tc.setPlanned_testcases(rs.getInt(14));
tc.setFailed(rs.getInt(15));
tc.setDefects(rs.getInt(17));

double comp;
comp = complete(rs.getInt(13),rs.getInt(14));
String cpl = comp+"%";
tc.setValue(comp);
System.out.println("*****************"+cpl);
double sr;
if(rs.getInt(14) == 0){
sr = 0;
}else{
sr = sucessratio(rs.getInt(13), rs.getInt(14),rs.getInt(15));
}
tc.setPercent(sr);
String sur = sr + "%";
System.out.println("*****************"+sur);
al.add(tc);
}
}
catch(Exception e)
{e.printStackTrace();}
return al;
}

public double sucessratio(int Completed_testcases,int Planned_testcases ,int failed){
double percent = ((double)(Planned_testcases-failed)/(double)(Completed_testcases))*100;
System.out.println("PERCENT int "+percent);
return percent;
}

public double complete(int Completed_testcases,int Planned_testcases){
System.out.println("PT : " + Planned_testcases);
System.out.println("CT : " + Completed_testcases);
double value = (((double)(Planned_testcases)*100)/(double)(Completed_testcases));
System.out.println("Value of Completed Percent"+ value);
return value;
}

}
-----------------------Bean class for the above --------------------

package com.osius.beans;
public class TestCaseBean {

private String Name;
private String description;
private int id;
private String status;
private int complete;
private int testsuiteid;
private int testprocedureid;
private String cdate;
private String revision;
private String environment;
private int planned_testcases;
private String start_date;
private String end_date;
private int completed_testcases;
private int failed;
private double percent;
public double getValue() {
return value;
}
public void setValue(double value) {
this.value = value;
}
private double value;
private int defects;

public int getDefects() {
return defects;
}
public void setDefects(int defects) {
this.defects = defects;
}
public double getPercent() {
return percent;
}
public void setPercent(double percent) {
this.percent = percent;
}
public int getFailed() {
return failed;
}
public void setFailed(int failed) {
this.failed = failed;
}
public String getEnvironment() {
return environment;
}
public void setEnvironment(String environment) {
this.environment = environment;
}
public int getComplete() {
return complete;
}
public void setComplete(int complete) {
this.complete = complete;
}

public int getPlanned_testcases() {
return planned_testcases;
}
public void setPlanned_testcases(int planned_testcases) {
this.planned_testcases = planned_testcases;
}
public int getCompleted_testcases() {
return completed_testcases;
}
public void setCompleted_testcases(int completed_testcases) {
this.completed_testcases = completed_testcases;
}
public String getName() {
return Name;
}
public void setName(String name) {
Name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public int getTestsuiteid() {
return testsuiteid;
}
public void setTestsuiteid(int testsuiteid) {
this.testsuiteid = testsuiteid;
}
public int getTestprocedureid() {
return testprocedureid;
}
public void setTestprocedureid(int testprocedureid) {
this.testprocedureid = testprocedureid;
}
public String getCdate() {
return cdate;
}
public void setCdate(String cdate) {
this.cdate = cdate;
}
public String getRevision() {
return revision;
}
public void setRevision(String revision) {
this.revision = revision;
}

public String getStart_date() {
return start_date;
}
public void setStart_date(String start_date) {
this.start_date = start_date;
}
public String getEnd_date() {
return end_date;
}
public void setEnd_date(String end_date) {
this.end_date = end_date;
}


}

--------------------------------here comes my jsp-------------------------


<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ page language="java" import="com.osius.beans.TestCaseBean"%>
<%@ page language="java" import="com.osius.control.TestCase"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<input value =" Home" type="button" class="button" />
<input value ="Test Cases" type="button" class="button"/>
<input value ="Reports" type="button" class="button"/>
<input value ="Settings" type="button" class="button"/><br>
<br>
<br>
<br>

<head>
<title>Report1</title>
<LINK href="../css/web.css" rel="stylesheet" type="text/css">

</head>

<!-- Here creating object of the class -->

<% TestCase tc = new TestCase();
TestCaseBean tsb = new TestCaseBean();
ArrayList al = new ArrayList();
al= tc.test();
%>

<body>

<input value ="Plan New Test Cycle" type="button" class="btn"/> // these are buttons
<input value ="Start Test Cycle" type="button" size ="10" class="btn"/>
<input value ="Stop Test Cycle" type="button" size ="10" class="btn"/>

<!-- here starts my requirement -->



<table border="1" cellpadding="0" cellspacing="0" bordercolor="#0AA4C5">

<tr align="right" bgcolor="#0AA4C5" >
<th align ="center"> Date</th>
<th> Description</th>
<th > %Completed</th>
<th> Status</th>
<th> Revision</th>
<th> Environment</th>
<th> Start Date</th>
<th> End Date</th>
<th> Planned Test Cases</th>
<th> Completed Test Cases</th>
<th> Failed</th>
<th> % Success</th>
<th> # Defects</th>

</tr>

//I have retrived the data and trying to dipaly it in a tabular format , where i am uisng <td <%...%>scriplet.
Instead of the below code i can use foreach tag i think can any one help me please!...

<% for(int i=0; i<al.size(); i++)
{
tsb =(TestCaseBean)al.get(i);%>
<tr>
<td width="500"><% out.println(tsb.getCdate()); %> </td>
<td width="500"><% out.println(tsb.getDescription()); %> </td>
<td width="200"><%out.println(tsb.getValue()); %> </td>
<td><% out.println(tsb.getStatus()); %> </td>
<td><% out.println(tsb.getRevision()); %> </td>
<td><% out.println(tsb.getEnvironment()); %> </td>
<td><% out.println(tsb.getStart_date()); %> </td>
<td><% out.println(tsb.getEnd_date()); %> </td>
<td><% out.println(tsb.getPlanned_testcases()); %> </td>
<td><% out.println(tsb.getCompleted_testcases()); %> </td>
<td><% out.println(tsb.getFailed());%></td>
<td><% out.println(tsb.getPercent());%></td>
<td><% out.println(tsb.getDefects());%></td>
<%} %>
</tr>
<% System.out.println(tsb.getPercent());%>
<% System.out.println(tsb.getValue());%>
</table>


</body>

</html>

thanks
Navin



12 years ago
JSP
Hi I am trying to use Usebean tag to retive data from the data base and print in the jsp.

to get connection:

import java.sql.Statement;
import java.sql.Connection;
import java.sql.ResultSet;
import com.osi.db.*;


public class Details {
public SearchForm search(String pid)throws Exception{
SearchForm sf = null;
try {
Connection connection = DBConnection.getConnection();
System.out.println("Connection to DB");
String query = "select * from product where prodId="+pid;
// prodId="+pid AND price=price AND prodName LIKE '%prodName%'
// prodId="+pid OR price=price OR prodName LIKE '%prodName%'
// prodId="+pid OR price=price OR prodName=prodName'
ResultSet rs = null;
Statement stmt = null;
stmt =connection.createStatement();
rs = stmt.executeQuery(query);
System.out.println(rs);

while (rs.next()){
sf = new SearchForm();
sf.setProdId(rs.getString(1));
sf.setPrice(rs.getString(2));
sf.setProdName(rs.getString(3));
System.out.println(rs.getString(1));
System.out.println(rs.getString(2));
System.out.println(rs.getString(3));
}
}
catch (Exception e){
System.out.println("Error while connecting to DB");
}
return sf;
}

}
search Form
package com.osi.search;

public class SearchForm {

private String prodId;
private String prodName;
private String price;


public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getProdId() {
return prodId;
}
public void setProdId(String prodId) {
this.prodId = prodId;
}
public String getProdName() {
return prodName;
}
public void setProdName(String prodName) {
this.prodName = prodName;
}

}

GETConnection;
package com.osi.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;


public class DBConnection {

public static Connection getConnection() throws SQLException {

Connection con =null;


try {

String driverName = "com.mysql.jdbc.Driver";
Class.forName(driverName);
String url = "jdbc:mysql://localhost:3306/mysql" ;
con = DriverManager.getConnection(url,"root","root");
System.out.println(con);
}

catch(Exception e)
{
System.out.println("unable to conncect to database");
}
return con;
}}




Bean Jsp:


<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="com.osi.search.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SimpleBean Test Page</title>
</head>
<body>

<%-- Creating JavaBeans --%>
<%Details d = new Details();
// SearchForm f = new SearchForm();
String pid =request.getParameter("prodId");
System.out.println(pid);
SearchForm frm = d.search(pid);
out.println("****************");
out.println(frm.getProdId()); /here i am able to get the values
out.println(frm.getPrice()); .......
%>

<jsp:useBean id="search" beanName="frm" type="com.osi.search.SearchForm" scope="page">

<jsp:setProperty name="search" property="prodId"/>
<jsp:getProperty name ="search" property="prodName"/>

</jsp:useBean>

<%= search.getPrice()%>

<%= search.getProdId()%>

<%= search.getProdName()%>


</body>
</html>

Can any one help me please ,I am unable to get the values printed when using usebean tag

------
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: frm
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.Bean_jsp._jspService(Bean_jsp.java:110)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


root cause

java.lang.InstantiationException: frm
org.apache.jsp.Bean_jsp._jspService(Bean_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810
Showing this error .
Thanks
Naveen
12 years ago
JSP
Hmm I have forgot to place the compile .class file under classes directory .now it working fine..........
13 years ago
JSP
I am trying to get the data by using bean where I am facing the problem while running it ...

<html>
<body>
<form method=post action = "UserSave.jsp">
Name<input type =text name=username size =20><br>
Email<input type=text name=email size=20><br>
Age <input type=text name=age size=4><br>
<input type=submit>
</form>
</body>
</html>
---------------------------
UserData---java

package user;
public class UserData {
String username;
String email;
int age;

public void setUsername( String value )
{
username = value;
}

public void setEmail( String value )
{
email = value;
}

public void setAge( int value )
{
age = value;
}

public String getUsername() { return username; }

public String getEmail() { return email; }

public int getAge() { return age; }
}
-------------------
<jsp:useBean id="user" class ="user.UserData" scope="session"/>
<jsp:setProperty name="user" property="*"/>
<html>
<body>
<a href="NewPage.jsp">continue </a>
</body>
</html>-------------UserSave.jsp
---------------------
<jsp:useBean id="user" class="user.UserData" scope="session"/>
<html>
<body>
You Entered <br>
Name:<%= user.getUsername() %><br>
E-mail:<%= user.getEmail() %><br>
Age : <%= user.getAge() %><br>
</body>
</html>------------NewPage.jsp
-------------------------------------------



org.apache.jasper.JasperException: /jsp/UserSave.jsp(1,1) The value for the useBean class attribute user.UserData is invalid.



org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


else this the url from where i am trying as an example
http://www.jsptut.com/Forms.jsp
13 years ago
JSP
HI

I am facing problem while I am deploying my servlet app in jboss,when i start my jboss it shows the following in command prompt.

-----------------------------------------------
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..

JAVA: java

JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: \lib\tools.jar;C:\jboss-4.0.5.GA\bin\\run.jar

===============================================================================

10:38:02,766 INFO [Server] Starting JBoss (MX MicroKernel)...
10:38:02,766 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
nch_4_0 date=200610162339)
10:38:02,766 INFO [Server] Home Dir: C:\jboss-4.0.5.GA
10:38:02,766 INFO [Server] Home URL: file:/C:/jboss-4.0.5.GA/
10:38:02,813 INFO [Server] Patch URL: null
10:38:02,813 INFO [Server] Server Name: default
10:38:02,813 INFO [Server] Server Home Dir: C:\jboss-4.0.5.GA\server\default
10:38:02,813 INFO [Server] Server Home URL: file:/C:/jboss-4.0.5.GA/server/defa
ult/
10:38:02,813 INFO [Server] Server Log Dir: C:\jboss-4.0.5.GA\server\default\log

10:38:02,813 INFO [Server] Server Temp Dir: C:\jboss-4.0.5.GA\server\default\tm
p
10:38:02,813 INFO [Server] Root Deployment Filename: jboss-service.xml
10:38:03,422 INFO [ServerInfo] Java version: 1.4.2_04,Sun Microsystems Inc.
10:38:03,438 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_04-b05
,Sun Microsystems Inc.
10:38:03,438 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
10:38:04,688 INFO [Server] Core system initialized
10:38:09,049 INFO [WebService] Using RMI server codebase: http://osi-d-rkollepa
ra:8083/
10:38:09,080 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
10:38:18,551 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date
=200609291417)
10:38:21,333 INFO [Embedded] Catalina naming disabled
10:38:21,411 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
10:38:21,411 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
10:38:22,130 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0
.0.0-8080
10:38:22,192 INFO [Catalina] Initialization processed in 781 ms
10:38:22,192 INFO [StandardService] Starting service jboss.web
10:38:22,192 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.2
0
10:38:22,348 INFO [StandardHost] XML validation disabled
10:38:22,427 INFO [Catalina] Server startup in 235 ms
10:38:23,224 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
10:38:24,536 INFO [WebappLoader] Dual registration of jndi stream handler: fact
ory already defined
10:38:25,771 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbosswe
b-tomcat55.sar/ROOT.war/
10:38:26,209 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
loy/tmp30405jbossws-context-exp.war/
10:38:26,521 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
10:38:29,819 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
10:38:31,178 INFO [MailService] Mail Service bound to java:/Mail
10:38:32,007 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
10:38:32,147 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
10:38:32,210 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
10:38:32,319 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
10:38:32,413 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
10:38:32,522 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/mail-ra.rar
10:38:34,257 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java efaultDS'
10:38:34,882 INFO [A] Bound to JNDI name: queue/A
10:38:34,882 INFO [B] Bound to JNDI name: queue/B
10:38:34,882 INFO [C] Bound to JNDI name: queue/C
10:38:34,882 INFO [D] Bound to JNDI name: queue/D
10:38:34,898 INFO [ex] Bound to JNDI name: queue/ex
10:38:34,929 INFO [testTopic] Bound to JNDI name: topic/testTopic
10:38:34,929 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
10:38:34,945 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

10:38:34,945 INFO [testQueue] Bound to JNDI name: queue/testQueue
10:38:35,039 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
0.0:8093
10:38:35,132 INFO [DLQ] Bound to JNDI name: queue/DLQ
10:38:35,648 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
10:38:35,836 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=posds,service=DataSourceBinding' to JNDI name 'posds'
10:38:36,039 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=posorads,service=DataSourceBinding' to JNDI name 'posorads'
10:38:36,258 INFO [TomcatDeployer] deploy, ctxPath=/NewPOS, warUrl=.../deploy/N
ewPOS.war/
10:38:36,727 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@180ba759 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/classes/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/classes/Hell
oWorld.class
altDD: null
lastDeployed: 1224133716695
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@84f2d2db { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.class
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@805a4eb5 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.java }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.java
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716711
mbeans:

org.jboss.deployment.DeploymentInfo@c19d0d8d { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/web.xml
altDD: null
lastDeployed: 1224133716727
lastModified: 1224133716727
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@180ba759 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/classes/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/classes/Hell
oWorld.class
altDD: null
lastDeployed: 1224133716695
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@84f2d2db { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.class
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@805a4eb5 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.java }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.java
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716711
mbeans:

org.jboss.deployment.DeploymentInfo@c19d0d8d { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/web.xml
altDD: null
lastDeployed: 1224133716727
lastModified: 1224133716727
mbeans:


10:38:36,930 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
10:38:37,258 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
10:38:37,305 INFO [JkMain] Jk running ID=0 time=0/282 config=null
10:38:37,352 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Bran
ch_4_0 date=200610162339)] Started in 34s:539ms
----------------------------------

Can any one suggest me the solution ....

Thanks
Naveen
13 years ago
HI I am trying to work with joss server for my simple servlet application and when i satrt the server i can find the error messages as follows, can any one help me--------


JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..

JAVA: java

JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: \lib\tools.jar;C:\jboss-4.0.5.GA\bin\\run.jar

===============================================================================

10:38:02,766 INFO [Server] Starting JBoss (MX MicroKernel)...
10:38:02,766 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
nch_4_0 date=200610162339)
10:38:02,766 INFO [Server] Home Dir: C:\jboss-4.0.5.GA
10:38:02,766 INFO [Server] Home URL: file:/C:/jboss-4.0.5.GA/
10:38:02,813 INFO [Server] Patch URL: null
10:38:02,813 INFO [Server] Server Name: default
10:38:02,813 INFO [Server] Server Home Dir: C:\jboss-4.0.5.GA\server\default
10:38:02,813 INFO [Server] Server Home URL: file:/C:/jboss-4.0.5.GA/server/defa
ult/
10:38:02,813 INFO [Server] Server Log Dir: C:\jboss-4.0.5.GA\server\default\log

10:38:02,813 INFO [Server] Server Temp Dir: C:\jboss-4.0.5.GA\server\default\tm
p
10:38:02,813 INFO [Server] Root Deployment Filename: jboss-service.xml
10:38:03,422 INFO [ServerInfo] Java version: 1.4.2_04,Sun Microsystems Inc.
10:38:03,438 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_04-b05
,Sun Microsystems Inc.
10:38:03,438 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
10:38:04,688 INFO [Server] Core system initialized
10:38:09,049 INFO [WebService] Using RMI server codebase: http://osi-d-rkollepa
ra:8083/
10:38:09,080 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
10:38:18,551 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date
=200609291417)
10:38:21,333 INFO [Embedded] Catalina naming disabled
10:38:21,411 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
10:38:21,411 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
10:38:22,130 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0
.0.0-8080
10:38:22,192 INFO [Catalina] Initialization processed in 781 ms
10:38:22,192 INFO [StandardService] Starting service jboss.web
10:38:22,192 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.2
0
10:38:22,348 INFO [StandardHost] XML validation disabled
10:38:22,427 INFO [Catalina] Server startup in 235 ms
10:38:23,224 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
10:38:24,536 INFO [WebappLoader] Dual registration of jndi stream handler: fact
ory already defined
10:38:25,771 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbosswe
b-tomcat55.sar/ROOT.war/
10:38:26,209 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
loy/tmp30405jbossws-context-exp.war/
10:38:26,521 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
10:38:29,819 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
10:38:31,178 INFO [MailService] Mail Service bound to java:/Mail
10:38:32,007 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
10:38:32,147 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
10:38:32,210 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
10:38:32,319 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
10:38:32,413 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
10:38:32,522 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/mail-ra.rar
10:38:34,257 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java efaultDS'
10:38:34,882 INFO [A] Bound to JNDI name: queue/A
10:38:34,882 INFO [B] Bound to JNDI name: queue/B
10:38:34,882 INFO [C] Bound to JNDI name: queue/C
10:38:34,882 INFO [D] Bound to JNDI name: queue/D
10:38:34,898 INFO [ex] Bound to JNDI name: queue/ex
10:38:34,929 INFO [testTopic] Bound to JNDI name: topic/testTopic
10:38:34,929 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
10:38:34,945 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

10:38:34,945 INFO [testQueue] Bound to JNDI name: queue/testQueue
10:38:35,039 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
0.0:8093
10:38:35,132 INFO [DLQ] Bound to JNDI name: queue/DLQ
10:38:35,648 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
10:38:35,836 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=posds,service=DataSourceBinding' to JNDI name 'posds'
10:38:36,039 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:name=posorads,service=DataSourceBinding' to JNDI name 'posorads'
10:38:36,258 INFO [TomcatDeployer] deploy, ctxPath=/NewPOS, warUrl=.../deploy/N
ewPOS.war/
10:38:36,727 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@180ba759 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/classes/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/classes/Hell
oWorld.class
altDD: null
lastDeployed: 1224133716695
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@84f2d2db { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.class
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@805a4eb5 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.java }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.java
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716711
mbeans:

org.jboss.deployment.DeploymentInfo@c19d0d8d { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/web.xml
altDD: null
lastDeployed: 1224133716727
lastModified: 1224133716727
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@180ba759 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/classes/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/classes/Hell
oWorld.class
altDD: null
lastDeployed: 1224133716695
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@84f2d2db { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.class }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.class
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716695
mbeans:

org.jboss.deployment.DeploymentInfo@805a4eb5 { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/src/HelloWorld.java }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/src/HelloWor
ld.java
altDD: null
lastDeployed: 1224133716711
lastModified: 1224133716711
mbeans:

org.jboss.deployment.DeploymentInfo@c19d0d8d { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/iapp/WEB-INF/web.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/iapp/WEB-INF/web.xml
altDD: null
lastDeployed: 1224133716727
lastModified: 1224133716727
mbeans:


10:38:36,930 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
10:38:37,258 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
10:38:37,305 INFO [JkMain] Jk running ID=0 time=0/282 config=null
10:38:37,352 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Bran
ch_4_0 date=200610162339)] Started in 34s:539ms

Thanks
naveen
13 years ago