Kashinath Roy

Greenhorn
+ Follow
since Apr 21, 2009
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 Kashinath Roy

Please find error message

HTTP Status 401 -

--------------------------------------------------------------------------------

type Status report

message

description This request requires HTTP authentication ().


--------------------------------------------------------------------------------

Apache Tomcat/6.0.35






12 years ago

Inordere to implement BASIC authentication having following configurationPutting this in tomcat user.xml

<role rolename="Admin"/>
<role rolename="Member"/>
<role rolename="Guest"/>

<user username="admin1" password="admin1" roles="Admin,Member,Guest"/>
<user username="knroy" password="knroy" roles="Member"/>
<user username="guest1" password="guest1" roles="Guest"/>

putting this in myproject1--->web.xml

<security-role>
<role-name>Admin</role-name>
</security-role>
<security-role>
<role-name>Member</role-name>
</security-role>
<security-role>
<role-name>Guest</role-name>
</security-role>


<security-constraint>
<web-resource-collection>
<web-resource-name>Testing</web-resource-name>
<url-pattern>/validate/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name>
<role-name>Member</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>


and restart tomcat 6 ----->run Project---> asking login prompt---->username: admin1 password:admin1--->HTTP 401 error
[ Under Windows XP with running in localhost:8080 ]

Why it is not working despite follwing all the steps as mentioned above
12 years ago
But Why low is executing count more then High thread despite low priroty is low

Code:



Eclipsc IDE OUTPUT

Low-priority thread: 382730681
High-priori thread: 22847397


Thank you for your reply

But I am looking for solution not the problem

any body knows the solution of the above mentioned problem .
13 years ago
Line 31

#sql{ SELECT name into :first_name FROM staff WHERE id=:eid};

Error Message in NetBeans

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code
at jdbc_demo.Sample.getFName(Sample.java:31)
at jdbc_demo.Sample.main(Sample.java:42)
Java Result: 1
13 years ago
How to resole the issue,

Any way to overcome the problem

so that i can use sqlj in netbeans
13 years ago
My Code for sqlj is something like this



This code working nice in Command Prompt with Notepad.


But while trying to execute it on NetBeans IDE it is returning an error


Exception in thread "main" java.lang.RuntimeException: Uncompilable source code
at jdbc_demo.Sample.getFName(Sample.java:33)
at jdbc_demo.Sample.main(Sample.java:47)
Java Result: 1
13 years ago
How to Run SQLJ in NetBeans

Code Working fine in Notepad and Command Prompt.

But not working in netbens ,

What are the steps to run SQJL in NetBeans ( Using DB2)
13 years ago


out in System class

System.out.println();

is it data or object of System Class
if data how does it call println() method of System Class
13 years ago