joka badi

Greenhorn
+ Follow
since Mar 25, 2014
Merit badge: grant badges
For More
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 joka badi

oky i got you...so how can i figure it?
9 years ago
that is what i think...but you can correct me if am wrong
9 years ago
but what i know is the SMS stored in the server before reach the target person...the application what will doing is to read the 20 SMS from the server...its that sound?
9 years ago
want i need is to programe the simple application which will intercept the third part(remote phone)....it will only deal with read the incoming and out coming sms...someone can write the phone number and retrieve 20 sms (10 incoming and 10 outcoming) from the target phone.
9 years ago
Elw guyz!!...am working with my final project which is sms interceptor project...can any one help me how to start project.
9 years ago
ky!!!...i need to list the available inbox but i have problem with complex querying.
9 years ago
yes there will be more than one conversation between the users....but can you show me the right way of do this?
9 years ago
have already put the data to database and what are need is query which will help me to list available inbox or a complete code for listing the inbox...And below is my table and attributes.
Table for registration




...
can you help me plzz.
9 years ago
hi everyone!!..am working with java project concern chat room...am not much good in java so can anyone help me how to start code because have prepared the database with 3 table(registration(user_id_pk),conversation(c_id_pk),conversation_reply(r_id_pk))...so am asking for assistance please.
9 years ago
sorry its seems my code are not working,means it doesn't do what have intended/plan it to do....i want to list conversation in charting room but also have 3 table which is registration,conversation and conversation_reply....can you help me what to do.
9 years ago
exactly the problem is in line 11...so can you tell me what to do please?!
9 years ago
hi!..am working with java project which is kind of charting room..but the problem is when am writing the query for listing the message in the conversation the error prevail in my eclipse...string literal is not properly closed by double quote...this is my java file

can anybody help me.
9 years ago
hi guyz!!..Am doing the java project but the problem is servlet it does not respond...have try to run the simple code line inorder to examine where the problem iz but am fail....also have try alot of method inorder to fix this but also failed.so can anybody help me to tackle this cause have stopped to proceed.



this is my servlet code
package loginJspServletlib;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/Teba")
public class Teba extends HttpServlet {
private static final long serialVersionUID = 1L;


public void init(ServletConfig config) throws ServletException {
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
@SuppressWarnings("unused")
Connection con=(Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/maji","root", "");
} catch(Exception e){
System.err.println(e.getMessage());

}
}


protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request,response);
}

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
@SuppressWarnings("unused")
PrintWriter out=new PrintWriter(response.getWriter());
int id=-1;
String un=request.getParameter("username");
String pw=request.getParameter("password");

try {
java.sql.Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/maji","un","pw");
java.sql.Statement stm;
ResultSet rs=null;

String SQLquery="SELECT * FORM login WHERE username= '" +un +"';";
stm=con.createStatement();
rs=stm.executeQuery(SQLquery);
while(rs.next()){
id=rs.getInt("level");
pw=rs.getString("password");
}
con.close();
} catch (SQLException e) {
System.err.println(e.getMessage());
}
RequestDispatcher dispatcher=null;
Object password=null;
if(id==-1){
dispatcher=getServletContext().getRequestDispatcher("sucess.jsp");
} else if(pw.equals(password)){
dispatcher=getServletContext().getRequestDispatcher("sucess.jsp");

}else{

dispatcher=getServletContext().getRequestDispatcher("failer.jsp");
}

dispatcher.forward(request, response);
}
}

this is the result in the console

Mar 25, 2014 4:26:24 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52\webapps\host-manager
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [/host-manager]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:133)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:156)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Mar 25, 2014 4:26:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52\webapps\manager
Mar 25, 2014 4:26:24 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: The web application with context path [/manager] was not deployed because it contained a deployment descriptor [C:\apache-tomcat-7.0.52\webapps\manager\META-INF\context.xml] which may include configuration necessary for the secure deployment of the application but processing of deployment descriptors is prevented by the deployXML setting of this host. An appropriate descriptor should be created at [C:\apache-tomcat-7.0.52\conf\Catalina\localhost\manager.xml] to deploy this application.
Mar 25, 2014 4:26:24 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [/manager]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:133)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:156)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.catalina.LifecycleException: Failed to process either the global, per-host or context-specific context.xml file therefore the [/manager] Context cannot be started.
at org.apache.catalina.startup.FailedContext.startInternal(FailedContext.java:158)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 15 more
Mar 25, 2014 4:26:24 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52\webapps\manager
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [/manager]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:133)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:156)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
10 years ago