Filters in java
hi,
I would like to know how to redirect a filter to the request URL itself... I have tried
res.sendRedirect(req.getRequestURI());but, it does not seem to work.
Any help is appreciated.
TIA
Never mind: cross-posted elsewhere.
Similar Messages
-
Hi,
I am new to java, I have some simple matlab programs that i need to convert to java. In one of them i perform a simple butterworth filter (simple in matlab). I have had some trouble implementing this in Java. Could anyone tell me if this is possible? and could you point me in a direction where i might learn how to do it?
Thanksshnanl1 wrote:
Thanks for your reply, my problem is really just with the butterworth filter. the rest of the code i can translate easily. In matlab you can implement a filter with just one line. So I suppose im asking if there is a java library for dsp filters? If not then i will have to study exactly how a butterworth filter works and write code that way. But i think that will be very time consuming and messy.Can you post 2/3 sample Input Output Examples ? Something like :
Input 1 : 1
Input 2 : 2
After Addition Output :3
=======================
Input 1 : -1
Input 2 : 2
After Addition Output :1 I am myself not aware of matlab functions but may be someone else could help you out with your issue.
Thanks. -
Question about Filters in Java.
Hello ,
I want to make a filter over a JTable , so that data that appears in the JTable is filetered with the characters that are typed in the Field , each time a new character is entered the table is filtered. What can I use to make that happen?
Thanks.hii,
if you're defining SomeTableModel, already, then
global def.
private final JTextField someTextField = new JTextField();
//private JButton refreshButton = new JButton("Refresh Data");
private JTable someTable = new JTable();
private SomeTableModel tableModel;somewhere in class definition (for jtable)
someTextField.setText("");
final TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(tableModel);
someTable.setRowSorter(sorter);
someTextField.getDocument().addDocumentListener(new DocumentListener() {
private void searchFieldChangedUpdate(DocumentEvent evt) {
String text = someTextField.getText();
if (text.length() == 0) {
sorter.setRowFilter(null);
//someTable.clearSelection();
} else {
try {
sorter.setRowFilter(RowFilter.regexFilter("(?i)" + text)); // hack for ignore CaseSensitive
//someTable.clearSelection();
} catch (PatternSyntaxException pse) {
JOptionPane.showMessageDialog(null, "Bad regex pattern", "Bad regex pattern", JOptionPane.ERROR_MESSAGE);
public void insertUpdate(DocumentEvent evt) {
searchFieldChangedUpdate(evt);
public void removeUpdate(DocumentEvent evt) {
searchFieldChangedUpdate(evt);
public void changedUpdate(DocumentEvent evt) {
searchFieldChangedUpdate(evt);
}); any changes from someTextField set filter/change result from/to SomeTableModel
... kopik -
Java not working in Internet Explorer
I normally use another browser (Google Chrome) but need to use Internet Explorer for a particular online banking service. This service requires a Java applet.
I have the current Java environment (as at 21.3.12), SE 6 Update 31.
Java works in Chrome but does not work in IE8 or IE9.
I have un-installed and re-installed Java several times, tried going back to IE8, turned off ActiveX filtering, confirmed Java scripting is on, checked add-ins are managed correctly and so on and so on, without success. Given Java works it is not a Java
issue but must be an IE issue.
Are there any additional steps or diagnostics I can run to try to identify the problem as I need this to be resolved for the purposes of running my business.
Many thanks!Hi guys.
I'm having an issue like this and none of the solutions above helped me.
I'm trying to open a specific web page that is not working with Java only on Internet Explorer (7, 8 nor 9). If I try to open in Google Chrome or Firefox it goes fine.
I've tried various versions of Java and all my tries were done both on Windows XP Professional and Windows 7 Professional.
The weird thing is that when I test it through Java webpage or some other page, it goes fine. It is not working only for this specific webpage.
This is the webpage:
http://iweb03ds.magnaclosures.com/stconf.nsf/meeting/mid3FC5EBB1D59C830685257A2900420436
It is a meeting webpage for our company to present their work to our clients and suppliers. I've also followed their own step-by-step advises, but no good either.
Could anyone help me on that? -
Design Mode not working - java.lang.Null Pointer exception
When attempting to use the Design mode Flash Builder has started to completely fail to display the design and issues following erros in the components tab:
"Could not create the view: An unexpected exception was thrown."
"java.lang.NullPointerException
at com.adobe.flexbuilder.codemodel.internal.design.ComponentCategoryList.getCustomComponents Filtered(ComponentCategoryList.java:207)
at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView$ViewContentProvider.get Elements(ComponentsView.java:339)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:959)
at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1330)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:390)
at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java: 636)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:60 2)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:799)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:639)
at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.ja va:1490)
at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:828)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1392 )
at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:402)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1353 )
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1634)
at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView.createMainControl(Compo nentsView.java:594)
at com.adobe.flexbuilder.mxml.editor.views.AbstractDesignOnlyView.createPartControl(Abstract DesignOnlyView.java:125)
at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView.createPartControl(Compo nentsView.java:1036)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2229)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1067)
at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3816)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3813)
at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.showViews (CodeAndDesignViewManager.java:665)
at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.reconfigP anels(CodeAndDesignViewManager.java:547)
at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.pageAbout ToChange(CodeAndDesignViewManager.java:409)
at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor.pageAboutToChange(CodeAndDesi gnEditor.java:582)
at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor.setActivePage(CodeAndDesignEd itor.java:682)
at com.adobe.flexbuilder.mxml.editor.MXMLEditor.setActivePage(MXMLEditor.java:544)
at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor$1.clicked(CodeAndDesignEditor .java:454)
at com.adobe.flexide.editorcore.ui.controls.ButtonBar.clicked(ButtonBar.java:289)
at com.adobe.flexide.editorcore.ui.controls.AbstractButton.sendClickEvent(AbstractButton.jav a:41)
at com.adobe.flexide.editorcore.ui.controls.ToggleButton.handleChange(ToggleButton.java:79)
at com.adobe.flexide.editorcore.ui.controls.ToggleButton.mouseDown(ToggleButton.java:66)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1598)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1622)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1607)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1396)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3484)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :109)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)"
This makes Flash Builder 4 pretty much useless to me. Anybody happen to know how to fix this issue?
Thanks a lot in advanceUninstalling Flash Builder 4 (my machine is a Mac Pro) and re-installing it solved the issue. Not my favourite way to resolve issues ... but desperate times ask for desperate measures.
-
How to use Filters in FileDialog class
Hi!
I want to get the open dialog of FileDialog window with filters eg, *.java. Could any one help me out to get the solution....
Regards
Shan
[email protected]class MyFileChooser{
JFileChooser fc;
MyFileChooser(){
fc = new JFileChooser();
fc.setFileSelectionMode( JFileChooser.FILES_ONLY );
fc.setFileFilter(new CustomFileFilter("txt","Text files"));
fc.setFileFilter(new CustomFileFilter("html","html files"));
fc.setFileFilter(new CustomFileFilter("java","Java source files"));
open a a file method(){
close a a file method(){
class CustomFileFilter extends javax.swing.filechooser.FileFilter{
String ext;
String desc;
CustomFileFilter(String extension, String description) {
this.ext = extension;
this.desc = description;
public String getDescription(){
return desc;
public String getExtension(){
return ext;
} -
Problem with transfering unicode form data in MULTIPART/FORM-DATA
HI experts,
I have this web based multilingual application. Page 1(form6.jsp) is basic registeration form with 5 fields and one image upload to the server. Page 2(verify.jsp) is another jsp page for verification of UTF data entered in page 1.
page 2 (verify.jsp) also uses a bean called (verify.java) for picking up values. page 3(insertEntry.jsp) is the page for inserting that data into the Database and uses a bean called (logicbean.java).
Now, the problem im facing here is that if i use multipart/form-data, the unicode text filled in page1 is shown as garbage when its is transfered to page2 and displayed on page2. It is all gibberish. But if i do not use multipart/form-data, the unicode text transfered from page1 to page2 is displayed perfectly on page2.Im using devenagari(UTF) language for filling in details.
// form6.jsp
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,java.text.*" %>
<%@ page import="com.oreilly.servlet.*" %>
<%
request.setCharacterEncoding("UTF-8");
%>
<HTML>
<HEAD>
<TITLE>
<%=session.getValue("main.title")%>
</TITLE>
</HEAD>
<h1><center><%=session.getValue("main.head")%><Center>
<BODY background="brown.bmp">
<form name=form6 action="verify.jsp" method="post" enctype="multipart/form-data">
<center>
<font>
<table border=1>
<tr>
<td colspan=2><center><img src="asok.bmp"></center>
</tr>
<tr>
<td >
<b>1.)<%=session.getValue("main.ec")%></b>
</td>
<td></td>
</tr>
<tr>
<td align="right"><b><%=session.getValue("main.ecname")%></b>                 <input type="text" name="votername"></td>
<td></td>
</tr>
<tr>
<td align="right"> <b><%=session.getValue("main.ecsurname")%></b>            <input type="text" name="votersurname"></td>
<td></td>
</tr>
<tr>
<td align="left"><b>2.)<%=session.getValue("main.rel")%></b>                
<select name="relation" onchange="if(this.selectedIndex!=0){this.form.texthiddenrelation.value=this.options[this.selectedIndex].value}" size="1">
<option>Choose</option>
<option value="father">Father</option>
<option value="mother">Mother</option>
<option value="husband">Husband</option>
</select>
<input type="hidden" name="texthiddenrelation" />
</td>
</tr>
<tr>
<td align="right"><b><%=session.getValue("main.relname")%></b>                 <input type="text" name="parentname">
<td></td>
</tr>
<tr>
<td align="right"><b><%=session.getValue("main.relsurname")%>            </b><input type="text" name="parentsurname">
<td></td>
</tr>
<tr>
<td align="right"><b>3.)<%=session.getValue("main.sex")%></b>                                                 
      
<select name="sex" onchange="if(this.selectedIndex!=0){this.form.texthiddensex.value=this.options[this.selectedIndex].value}" size="1">
<option>Choose</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
<input type="hidden" name="texthiddensex" /> </td>
<td align="right"><b><%=session.getValue("form6.image")%><input type ="file" name=pic1 onchange={this.form.pic.value=this.form.pic1.value}><input type= hidden name=pic> </b></td>
</tr>
<tr>
<td colspan=2><b>4.)<%=session.getValue("main.age")%></b><input type="text" name="age">
</td>
</tr>
<tr>
<td><b>5.)<%=session.getValue("main.dob")%></b>
<td><b><%=session.getValue("main.dobday")%></b> <select name="cmbday">
<option value="1"> 1 </option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">10</option>
<option value="10">11</option>
<option value="11">12</option>
<option value="12">13</option>
<option value="13">14</option>
<option value="14">15</option>
<option value="15">16</option>
<option value="16">17</option>
<option value="17">18</option>
<option value="18">19</option>
<option value="19">20</option>
<option value="20">21</option>
<option value="21">22</option>
<option value="22">23</option>
<option value="23">24</option>
<option value="24">25</option>
<option value="25">26</option>
<option value="26">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<b><%=session.getValue("main.dobmonth")%></b><select name="cmbmonth">
<option value="jan">JAN</option>
<option value="feb">FEB</option>
<option value="mar">MAR</option>
<option value="apr">APR</option>
<option value="may">MAY</option>
<option value="jun">JUN</option>
<option value="jul">JUL</option>
<option value="aug">AUG</option>
<option value="sep">SEPT</option>
<option value="oct">OCT</option>
<option value="nov">NOV</option>
<option value="dec">DEC</option>
</select>
<b><%=session.getValue("main.dobyear")%></b> <select name="cmbyear" onchange="if(this.form.cmbday.selectedIndex!=0 && this.form.cmbmonth.selectedIndex!=0 && this.form.cmbyear.selectedIndex!=0){this.form.mergedage.value=this.form.cmbday.options[this.form.cmbday.selectedIndex].value +' '+this.form.cmbmonth.options[this.form.cmbmonth.selectedIndex].text +' '+ this.form.cmbyear.options[this.form.cmbmonth.selectedIndex].value}" size="1">
<option value="1970">1970</option>
<option value="1971">1971</option>
<option value="1972">1972</option>
<option value="1973">1973</option>
<option value="1974">1974</option>
<option value="1975">1975</option>
<option value="1976">1976</option>
<option value="1977">1977</option>
<option value="1978">1978</option>
<option value="1979">1979</option>
<option value="1980">1980</option>
<option value="1981">1981</option>
<option value="1982">1982</option>
<option value="1983">1983</option>
<option value="1984">1984</option>
<option value="1985">1985</option>
<option value="1986">1986</option>
<option value="1987">1987</option>
<option value="1988">1988</option>
<option value="1989">1989</option>
<option value="1990">1990</option>
<option>
</select>
<input type="hidden" name="mergedage">
</tr>
<tr>
<td colspan=2><b>6.)<%=session.getValue("main.add")%></b>
</tr>
<tr>
<td align="right"><b><%=session.getValue("main.addline1")%></b>                 <input type="text" name="address1" value=""></td>
<td><b><%=session.getValue("main.addstate")%></b>             <input type="text" name="state"></td>
</tr>
<tr>
<td align="right"><b><%=session.getValue("main.addline2")%></b>                 <input type="text" name="address2" onChange="this.form.finaladdress.value=this.form.address1.value + ';' + this.value;"> <input type="hidden" name="finaladdress"> </td>
<td><b><%=session.getValue("main.addcity")%>               </b><input type="text" name="city"></td>
</tr>
<tr>
<td align="right"> <b><%=session.getValue("main.addpin")%></b>              <input type="text" name="pincode">
<td></td>
</tr>
<tr>
<td ><b>7.)<%=session.getValue("main.const")%></b> <input type="text" name="constituency">
<td ><b>8.)<%=session.getValue("main.id")%></b>   <input type="text" name="refno">
</tr>
<tr>
<td colspan="2"><center><input type="reset" name="reset" value="<%=session.getValue("button.reset")%>">  <input type=submit name=Submit value="<%=session.getValue("button.submit")%>"></center></td>
</tr>
<tr>
<td>
</td>
</tr>
</form>
</font>
</BODY>
</HTML>
// verify.jsp
<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:useBean id="verify" class="pack.verify" scope="request"/>
<%@ page import="com.oreilly.servlet.*" %>
<%@ page import="java.util.*,java.text.*" %>
<%!
MultipartRequest mp;
// ParameterParser pp;
%>
<!-- Perform the actions on the bean. -->
<%
//pp.setCharacterEncoding("utf-8");
%>
<%
try
mp = new MultipartRequest(request, "d:/Files");
out.println("DONE");
/* Set the request object.*/
/* The request object is implicitly available in the JSP page.*/
verify.setRequest(mp);
/* Insert the employee data into the database.*/
verify.verifyEntry();
//verify.setscope();
/* Run the query to retrieve the employee data from the database.*/
//logicbean.runQuery();
catch (Exception e)
System.out.println(e.getMessage());
%>
<HTML>
<HEAD>
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>
</TITLE>
</HEAD>
<BODY background="brown.bmp">
<form name=form6 action="insertEntry.jsp" method="POST">
<center>
<table border=3>
<tr>
<td colspan=2><center><img src="asok.bmp"></center>
</tr>
<tr>
<td >
<b>1.)<%=session.getValue("main.ec")%></b>
</td>
<td rowspan=3>
<image src="<%=verify.getpic()%>" width="85" hieght="85">
</td>
</tr>
<tr>
<td >             <b><%=session.getValue("main.ecname")%></b> <%=verify.getvotername()%>  <input type="hidden" value= "<%=verify.getvotername()%>" name="votername"></td>
</tr>
<tr >
<td>             <b><%=session.getValue("main.ecsurname")%></b><%=verify.getvotersurname()%>
<input type="hidden" value= "<%=verify.getvotersurname()%>" name="votersurname"></td>
</tr>
<tr>
<td ><b>2.)<%=session.getValue("main.rel")%></b><input type="hidden" value= "<%=verify.getvoterrelation()%>" name="texthiddenrelation"></td>
<td><%=verify.getvoterrelation()%></td>
</tr>
<tr>
<td >            <b><%=session.getValue("main.relname")%></b>    <input type="hidden" value= "<%=verify.getparentname()%>" name="parentname"></td>
<td><%=verify.getparentname()%></td>
</tr>
<tr>
<td >            <b><%=session.getValue("main.relsurname")%></b><input type="hidden" value= "<%=verify.getparentsurname()%>" name="parentsurname"></td>
<td><%=verify.getparentsurname()%></td>
</tr>
<tr>
<td><b>3.)<%=session.getValue("main.sex")%></b><input type="hidden" value= "<%=verify.getsex()%>" name="texthiddensex"></td>
<td><%=verify.getsex()%></td>
</tr>
<tr>
<td ><b>4.)<%=session.getValue("main.age")%></B><input type="hidden" value= "<%=verify.getage()%>" name="age"></td>
<td><%=verify.getage()%></td>
</tr>
<tr>
<td><b>5.)<%=session.getValue("main.dob")%></b> <input type="hidden" value= "<%=verify.getdob()%>" name="mergedage"></td>
<td> <%=verify.getdob()%></td>
</tr>
<tr>
<td colspan=2><b>
6.)<b><%=session.getValue("main.add")%></b></td>
</tr>
<tr>
<td>             <b><%=session.getValue("verify.add")%></b><input type="hidden" value= "<%=verify.getadderess()%>" name="finaladdress"> </td>
<td><%=verify.getadderess()%></td>
</tr>
<tr>
<td >            <b><%=session.getValue("main.addpin")%></b><input type="hidden" value= "<%=verify.getpin()%>" name="pincode"></td>
<td><%=verify.getpin()%></td>
</tr>
<tr>
<td>            <b><%=session.getValue("main.addstate")%></b><input type="hidden" value= "<%=verify.getstate()%>" name="state"></td>
<td><%=verify.getstate()%></td>
</tr>
<tr>
<td><b>            <%=session.getValue("main.addcity")%></b><input type="hidden" value= "<%=verify.getcity()%>" name="city"></td>
<td><%=verify.getcity()%></td>
</tr>
<tr>
<td><b>7.)<%=session.getValue("main.const")%></b> <input type="hidden" value= "<%=verify.getconst()%>" name="constituency"></td>
<td><%=verify.getconst()%></td>
</tr>
<tr>
<td><b>8.)<%=session.getValue("main.id")%></b> <input type="hidden" value= "<%=verify.getrefno()%>" name="refno"></td>
<td><%=verify.getrefno()%></td>
</tr>
<tr>
<td colspan="2"><center><INPUT TYPE="button" VALUE="<%=session.getValue("ie.back")%>" onClick="history.go(-1)">
<input type=submit name=Submit value="<%=session.getValue("button.submit")%>"></center><input type="hidden" value= "<%=verify.getpic()%>" name="pic"></td>
</tr>
</form>
</BODY>
</HTML>
//verify.java
package pack;
import java.lang.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.oreilly.servlet.*;
import com.oreilly.servlet.ParameterParser.*;
* @author Administrator
* To change this generated comment edit the template variable "typecomment":
* Window>Preferences>Java>Templates.
* To enable and disable the creation of type comments go to
* Window>Preferences>Java>Code Generation.
public class verify {
String votername = "";
String votersurname = "";
String texthiddenrelation="";
String parentname = "";
String parentsurname = "";
String gender = "";
String texthiddensex="";
String age = "";
String dob = "";
String mergedage="";
String address = "";
String finaladdress="";
String pincode = "";
String state = "";
String city = "";
String constituency = "";
String refno = "";
MultipartRequest request = null;
Connection dbConn = null;
ParameterParser pp;
private String voternameParam;
* Set the request object. This is used for getting parameters.
public void setRequest(MultipartRequest request)
this.request = request;
public void verifyEntry()
throws Exception
/* Connect to the database.*/
//pp.setCharacterEncoding("utf-8");
//String nameParam = request.getParameter("name");
MultipartRequest mp;
System.out.println("connected to db2 through insertemployee");
/* Get all the parameters from the calling HTML form.*/
String voternameParam = request.getParameter("votername");
System.out.println("the votername is " + request.getParameter("votername"));
System.out.println(voternameParam);
String votersurnameParam = request.getParameter("votersurname");
System.out.println("the votersurname is " + request.getParameter("votersurname"));
String hiddenrelationParam = request.getParameter("texthiddenrelation");
System.out.println("the relation is " + request.getParameter("texthiddenrelation"));
String parentnameParam = request.getParameter("parentname");
System.out.println("the parentname is " + request.getParameter("parentname"));
String parentsurnameParam = request.getParameter("parentsurname");
System.out.println("the parentsurname is " + request.getParameter("parentsurname"));
String ageParam = request.getParameter("age");
System.out.println("the age is " + request.getParameter("age"));
String mergedageParam = request.getParameter("mergedage");
System.out.println("the mergedage is " + request.getParameter("mergedage"));
String hiddensexParam = request.getParameter("texthiddensex");
System.out.println("the hiddensex is " + request.getParameter("texthiddensex"));
//String dobParam = request.getParameter("dob");
//System.out.println("the dob is " + request.getParameter("dob"));
String finaladdressParam = request.getParameter("finaladdress");
System.out.println("the finaladdress is " + request.getParameter("finaladdress"));
String pincodeParam = request.getParameter("pincode");
System.out.println("the pincode is " + request.getParameter("pincode"));
String stateParam = request.getParameter("state");
System.out.println("the state is " + request.getParameter("state"));
String cityParam = request.getParameter("city");
System.out.println("the city is " + request.getParameter("city"));
String constituencyParam = request.getParameter("constituency");
System.out.println("the constituency is " + request.getParameter("constituency"));
String refnoParam = request.getParameter("refno");
System.out.println("the refno is " + request.getParameter("refno"));
System.out.println("encoding = " + System.getProperty("file.encoding"));
public String getvotername()
return request.getParameter("votername");
public String getvotersurname()
return request.getParameter("votersurname");
public String getvoterrelation()
return request.getParameter("texthiddenrelation");
public String getparentname()
return request.getParameter("parentname");
public String getparentsurname()
return request.getParameter("parentsurname");
public String getage()
return request.getParameter("age");
public String getsex()
return request.getParameter("texthiddensex");
public String getadderess()
return request.getParameter("finaladdress");
public String getpin()
return request.getParameter("pincode");
public String getstate()
return request.getParameter("state");
public String getcity()
return request.getParameter("city");
public String getconst()
return request.getParameter("constituency");
public String getrefno()
return request.getParameter("refno");
public String getdob()
return request.getParameter("mergedage");
public String getpic()
//String a=request.getParameter("pic");
//a=a.substring(a.lastIndexOf("/")+1);
//System.out.print("Java path is "+a);
//Enumeration enum=request.getFileNames();
//while(enum.hasMoreElements())
// String abc=(String)enum.nextElement();
// System.out.print("Java the path is "+abc);
return request.getParameter("pic");
String votername1;
//public void setScope()
//request.setAttribute("votername1" ,voternameParam );
//insertEntry.jsp
<jsp:useBean id="logicbean" class="pack.logicbean" scope="request"/>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="java.util.*,java.text.*" %>
<%@ page import="com.oreilly.servlet.*" %>
<%
request.setCharacterEncoding("UTF-8");
%>
<!-- Perform the actions on the bean. -->
<%
request.setCharacterEncoding("UTF-8");
%>
<%
try
/* Set the request object.*/
/* The request object is implicitly available in the JSP page.*/
logicbean.setRequest(request);
//MultiPartRequest mp=MultiPartRequest(request,"E:\Files");
/* Insert the employee data into the database.*/
logicbean.insertEntry();
/* Run the query to retrieve the employee data from the database.*/
//logicbean.runQueryInsert();
catch (Exception e)
System.out.println(e.getMessage());
%>
<HTML>
<HEAD>
<TITLE>
Insert Record
</TITLE>
</HEAD>
<BODY background="brown.bmp">
<center><H2><%=session.getValue("ie.label")%>
</H2>
<font face = "Devanagari MT for IBM" size = +2>
<b><%=session.getValue("ie.sd")%>|<%=session.getValue("ie.home")%></b>
</font>
</center>
</BODY>
</HTML>
I have narrowed down the problem to the point where i understand that the "request.getParameter()" function for multipart is not able to understand or read UTF data properly. The out.println prints garbage from this function on the console. im using WAS
plz help
thanx in advance
caffainehi,
To solve your problem Servlet Filters
FILTER PROGRAM
===============
package filters;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.UnavailableException;
public class SetCharacterEncodingFilter implements Filter {
// ----------------------------------------------------- Instance Variables
* The default character encoding to set for requests that pass through
* this filter.
protected String encoding = null;
* The filter configuration object we are associated with. If this value
* is null, this filter instance is not currently configured.
protected FilterConfig filterConfig = null;
* Should a character encoding specified by the client be ignored?
protected boolean ignore = true;
// --------------------------------------------------------- Public Methods
* Take this filter out of service.
public void destroy() {
this.encoding = null;
this.filterConfig = null;
* Select and set (if specified) the character encoding to be used to
* interpret request parameters for this request.
* @param request The servlet request we are processing
* @param result The servlet response we are creating
* @param chain The filter chain we are processing
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet error occurs
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
throws IOException, ServletException {
// Conditionally select and set the character encoding to be used
if (ignore || (request.getCharacterEncoding() == null)) {
String encoding = selectEncoding(request);
if (encoding != null)
request.setCharacterEncoding(encoding);
// Pass control on to the next filter
chain.doFilter(request, response);
* Place this filter into service.
* @param filterConfig The filter configuration object
public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
this.encoding = filterConfig.getInitParameter("encoding");
String value = filterConfig.getInitParameter("ignore");
if (value == null)
this.ignore = true;
else if (value.equalsIgnoreCase("true"))
this.ignore = true;
else if (value.equalsIgnoreCase("yes"))
this.ignore = true;
else
this.ignore = false;
// ------------------------------------------------------ Protected Methods
* Select an appropriate character encoding to be used, based on the
* characteristics of the current request and/or filter initialization
* parameters. If no character encoding should be set, return
* <code>null</code>.
* <p>
* The default implementation unconditionally returns the value configured
* by the <strong>encoding</strong> initialization parameter for this
* filter.
* @param request The servlet request we are processing
protected String selectEncoding(ServletRequest request) {
return (this.encoding);
web-xml entry
+++++++++++
<filter>
<filter-name>Set Character Encoding</filter-name>
<filter-class>filters.SetCharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Set Character Encoding</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping> -
Can we have a filter to handle all the apps in a container?
Hi,
I have a simple (Stupid) question.
Can I configure a Servlet filter to intercept requests to all the applications (a.k.a all the ServletContexts)? All I know is we can configure a filter for each ServletContext (application), but I am wondering if there is any way.
The reason I am asking is because, if there is a way to do so, I can configure my filter to provide me the debug output (Such as CGI, session, request, and ServletContext variables) on all the applications on development servers and when I can get rid of debugging on production servers (by not deploying the filter).
Thanx in advance,
Thirupati PanyalaThanks for the reply Sudhir.
I tried it in Tomcat 4.x. It works for only the root resources even though I configured the filter for /* which is expected to include all the resources including root (for ex: /examples/...).
So, I understand, the web.xml under /conf will be overriden by that of the respective apps as you go further down the context paths (apps). That's why the container was not executing my filter when I went to the next level of the URI (http://localhost:8080/index.html WORKED, but NOT http://localhost:8080/examples/jsp/num/numguess.jsp).
If you want to try it for yourself, here is the piece of code I tried with (This is taken from Apache Tomcat source):
package filters;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.Timestamp;
import java.util.Enumeration;
import java.util.Locale;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
* Example filter that dumps interesting state information about a request
* to the associated servlet context log file, before allowing the servlet
* to process the request in the usual way. This can be installed as needed
* to assist in debugging problems.
* @author Craig McClanahan
* @version $Revision: 1.5 $ $Date: 2001/05/23 22:26:17 $
public final class RequestDumperFilter implements Filter {
// ----------------------------------------------------- Instance Variables
* The filter configuration object we are associated with. If this value
* is null, this filter instance is not currently configured.
private FilterConfig filterConfig = null;
// --------------------------------------------------------- Public Methods
* Take this filter out of service.
public void destroy() {
this.filterConfig = null;
* Time the processing that is performed by all subsequent filters in the
* current filter stack, including the ultimately invoked servlet.
* @param request The servlet request we are processing
* @param result The servlet response we are creating
* @param chain The filter chain we are processing
* @exception IOException if an input/output error occurs
* @exception ServletException if a servlet error occurs
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
throws IOException, ServletException {
if (filterConfig == null)
return;
// Render the generic servlet request properties
StringWriter sw = new StringWriter();
PrintWriter writer = new PrintWriter(sw);
writer.println("Request Received at " +
(new Timestamp(System.currentTimeMillis())));
writer.println(" characterEncoding=" + request.getCharacterEncoding());
writer.println(" contentLength=" + request.getContentLength());
writer.println(" contentType=" + request.getContentType());
writer.println(" locale=" + request.getLocale());
writer.print(" locales=");
Enumeration locales = request.getLocales();
boolean first = true;
while (locales.hasMoreElements()) {
Locale locale = (Locale) locales.nextElement();
if (first)
first = false;
else
writer.print(", ");
writer.print(locale.toString());
writer.println();
Enumeration names = request.getParameterNames();
while (names.hasMoreElements()) {
String name = (String) names.nextElement();
writer.print(" parameter=" + name + "=");
String values[] = request.getParameterValues(name);
for (int i = 0; i < values.length; i++) {
if (i > 0)
writer.print(", ");
writer.print(values);
writer.println();
writer.println(" protocol=" + request.getProtocol());
writer.println(" remoteAddr=" + request.getRemoteAddr());
writer.println(" remoteHost=" + request.getRemoteHost());
writer.println(" scheme=" + request.getScheme());
writer.println(" serverName=" + request.getServerName());
writer.println(" serverPort=" + request.getServerPort());
writer.println(" isSecure=" + request.isSecure());
// Render the HTTP servlet request properties
if (request instanceof HttpServletRequest) {
writer.println("---------------------------------------------");
HttpServletRequest hrequest = (HttpServletRequest) request;
writer.println(" contextPath=" + hrequest.getContextPath());
Cookie cookies[] = hrequest.getCookies();
if (cookies == null)
cookies = new Cookie[0];
for (int i = 0; i < cookies.length; i++) {
writer.println(" cookie=" + cookies[i].getName() +
"=" + cookies[i].getValue());
names = hrequest.getHeaderNames();
while (names.hasMoreElements()) {
String name = (String) names.nextElement();
String value = hrequest.getHeader(name);
writer.println(" header=" + name + "=" + value);
writer.println(" method=" + hrequest.getMethod());
writer.println(" pathInfo=" + hrequest.getPathInfo());
writer.println(" queryString=" + hrequest.getQueryString());
writer.println(" remoteUser=" + hrequest.getRemoteUser());
writer.println("requestedSessionId=" +
hrequest.getRequestedSessionId());
writer.println(" requestURI=" + hrequest.getRequestURI());
writer.println(" servletPath=" + hrequest.getServletPath());
writer.println("=============================================");
// Log the resulting string
writer.flush();
response.getWriter().print(sw.getBuffer().toString());
// Pass control on to the next filter
chain.doFilter(request, response);
* Place this filter into service.
* @param filterConfig The filter configuration object
public void init(FilterConfig filterConfig) throws ServletException {
this.filterConfig = filterConfig;
* Return a String representation of this object.
public String toString() {
if (filterConfig == null)
return ("RequestDumperFilter()");
StringBuffer sb = new StringBuffer("RequestDumperFilter(");
sb.append(filterConfig);
sb.append(")");
return (sb.toString());
And the config in web.xml is :
<filter>
<filter-name>Request Dumper Filter</filter-name>
<filter-class>filters.RequestDumperFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Request Dumper Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Thanx
Thirupati Panyala -
Looking for an api to provide timing support for a music app
Hey folks, new member says Hi !
I was wondering if this would fit better here or in the multimedia section, but here goes :
I've been thinking about some music sequencing ideas that I'd like to implement in ruby.
However, the language has poor runtime performance and won't cut it if it has to handle the timing-critical processing.
So I was wondering if I could possibly design it in a way that would rely on a lower level api to provide clock info.
I've read a bit about jack, and at first glance, it seems reasonable to think that I could develop my application model in ruby and have it register as a jack client (provided I manage to make a proper bridge for it), to fire up events in a timely manner. Same with alsa, which seems to have a special timer api.
But I'm new to this (even linux itself), so it's a lot of info to get one's head around.
I'd love to hear from some people who've had experience developing with these sort of musical/osc/midi apis, and maybe could give some insights regarding whether this is doable, and maybe some pointers on what to investigate.
cheers !I'm not sure I completely follow you with the "privilege".
To answer your question, yes, you may enhance behaviour of standard services such as CHECKIN_UNIVERSAL via so called "filters". Filters are Java pieces of code, that might be hooked to "filter events" such as validateCheckinData. When a service is being processed, the filter code is triggered on that event automatically.
However, the checkin services already contain a security check (it calls a Java method from the standard code), and it will do checks like "can this user check in a document with such a security group?" or "does this folder exist?", no extra code needed. So, I'm not sure what your enhancement would do additional. -
Strange Error when starting tomcat 5.5.7
Hello,
on WinXP SP2 I am using JavaStudio Enterprise 8, with J2SE 1.5 update 9. I am trying to run the tomcat-servlet-example. The project compile properly, but when i run the project i get the error below. Since i have no clue how to overtake this, i ask assistance on fixing it.
TIA,
Luca
Using CATALINA_BASE: C:\Documents and Settings\luca.C64\.jstudio\Ent8\jakarta-tomcat-5.5.7_base
Using CATALINA_HOME: D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7
Using CATALINA_TMPDIR: C:\Documents and Settings\luca.C64\.jstudio\Ent8\jakarta-tomcat-5.5.7_base\temp
Using JAVA_HOME: C:\Programmi\Java\jdk1.5.0_09
13-ott-2006 18.56.05 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
13-ott-2006 18.56.05 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1297 ms
13-ott-2006 18.56.05 org.apache.tomcat.util.digester.Digester fatalError
GRAVE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.naming.NamingContext lookup
AVVERTENZA: Unexpected exception resolving reference
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
GRAVE: Exception processing Global JNDI Resources
javax.naming.NamingException: Content is not allowed in prolog.
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:676)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13-ott-2006 18.56.05 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
13-ott-2006 18.56.05 org.apache.tomcat.util.digester.Digester fatalError
GRAVE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.naming.NamingContext lookup
AVVERTENZA: Unexpected exception resolving reference
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1580)
at org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:370)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:97)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.realm.UserDatabaseRealm start
GRAVE: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Content is not allowed in prolog.
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException: No UserDatabase component found under key UserDatabase
at org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:228)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.catalina.startup.Catalina start
INFO: Server startup in 391 ms
13-ott-2006 18.56.05 org.apache.catalina.core.StandardServer await
GRAVE: StandardServer.await: create[8025]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:346)
at org.apache.catalina.startup.Catalina.await(Catalina.java:600)
at org.apache.catalina.startup.Catalina.start(Catalina.java:560)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
13-ott-2006 18.56.05 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080Hello,
I have set the verbosity of Ant to Debug, and the resulting log after clicking on the Run Main Project button is here below. The same error happens in Debug Maing Project.
It seems to be difficult to get it working, and i cant understand why. After all, i used it for 1 year without problems, and now i m struggling...
See you,
Luca
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Programmi\Java\jdk1.5.0_09\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
+Datatype nbbrowse org.netbeans.modules.ant.browsetask.NbBrowse
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
+Datatype antlib:org.netbeans.modules.ant.browsetask:nbbrowse org.netbeans.modules.ant.browsetask.NbBrowse
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
+Datatype nbjpdaconnect org.netbeans.modules.debugger.jpda.ant.JPDAConnect
+Datatype nbjpdastart org.netbeans.modules.debugger.jpda.ant.JPDAStart
+Datatype nbjpdareload org.netbeans.modules.debugger.jpda.ant.JPDAReload
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/ide5/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
+Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjpdaconnect org.netbeans.modules.debugger.jpda.ant.JPDAConnect
+Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjpdastart org.netbeans.modules.debugger.jpda.ant.JPDAStart
+Datatype antlib:org.netbeans.modules.debugger.jpda.ant:nbjpdareload org.netbeans.modules.debugger.jpda.ant.JPDAReload
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
+Datatype nbdeploy org.netbeans.modules.j2ee.ant.Deploy
+Datatype nbverify org.netbeans.modules.j2ee.ant.Verify
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
+Datatype antlib:org.netbeans.modules.j2ee.ant:nbdeploy org.netbeans.modules.j2ee.ant.Deploy
+Datatype antlib:org.netbeans.modules.j2ee.ant:nbverify org.netbeans.modules.j2ee.ant.Verify
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
+Datatype sun-appserv-deploy org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask
+Datatype sun-appserv-undeploy org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask
+Datatype sun-appserv-instance org.apache.tools.ant.taskdefs.optional.sun.appserv.InstanceTask
+Datatype sun-appserv-component org.apache.tools.ant.taskdefs.optional.sun.appserv.ComponentTask
+Datatype sun-appserv-admin org.apache.tools.ant.taskdefs.optional.sun.appserv.AdminTask
+Datatype sun-appserv-input org.apache.tools.ant.taskdefs.Input
+Datatype sun-appserv-jspc org.apache.tools.ant.taskdefs.optional.sun.appserv.SunJspc
+Datatype sun-appserv-update org.apache.tools.ant.taskdefs.optional.sun.appserv.UpdateTask
parsing buildfile jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml with URI = jar:file:/D:/Programmi/Sun/jstudio_ent8/ide/enterprise1/ant/nblib/org-netbeans-modules-j2ee-sun-ide.jar!/org/netbeans/modules/j2ee/sun/ide/antlib.xml
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-deploy org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-undeploy org.apache.tools.ant.taskdefs.optional.sun.appserv.UndeployTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-instance org.apache.tools.ant.taskdefs.optional.sun.appserv.InstanceTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-component org.apache.tools.ant.taskdefs.optional.sun.appserv.ComponentTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-admin org.apache.tools.ant.taskdefs.optional.sun.appserv.AdminTask
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-input org.apache.tools.ant.taskdefs.Input
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-jspc org.apache.tools.ant.taskdefs.optional.sun.appserv.SunJspc
+Datatype antlib:org.netbeans.modules.j2ee.sun.ide:sun-appserv-update org.apache.tools.ant.taskdefs.optional.sun.appserv.UpdateTask
Setting ro project property: ant.file -> C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml
Setting ro project property: ant.version -> Apache Ant version 1.6.2 compiled on July 16 2004
Setting ro project property: ant.home -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\ant
Setting ro project property: forceRedeploy -> false
Setting ro project property: build.compiler.emacs -> true
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml with URI = file:///C:/Documents%20and%20Settings/luca.C64/TomcatServletExample1/build.xml
Setting ro project property: ant.project.name -> TomcatServletExample
Adding reference: TomcatServletExample
Setting ro project property: ant.file.TomcatServletExample -> C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml
Project base dir set to: C:\Documents and Settings\luca.C64\TomcatServletExample1
+Target:
Importing file nbproject/build-impl.xml from C:\Documents and Settings\luca.C64\TomcatServletExample1\build.xml
parsing buildfile C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\build-impl.xml with URI = file:///C:/Documents%20and%20Settings/luca.C64/TomcatServletExample1/nbproject/build-impl.xml
Setting ro project property: ant.file.TomcatServletExample-impl -> C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\build-impl.xml
+Target: default
+Target: -pre-init
+Target: -init-private
+Target: -init-user
+Target: -init-project
+Target: -do-ear-init
+Target: -do-init
+Target: -post-init
+Target: -init-check
+Target: -init-macrodef-property
+Target: -init-macrodef-javac
+Target: -init-macrodef-junit
+Target: -init-macrodef-java
+Target: -init-macrodef-nbjpda
+Target: -init-macrodef-debug
+Target: init
+Target: deps-module-jar
+Target: deps-ear-jar
+Target: deps-jar
+Target: -pre-pre-compile
+Target: -pre-compile
+Target: -do-compile
+Target: -copy-manifest
+Target: -post-compile
+Target: compile
+Target: -pre-compile-single
+Target: -do-compile-single
+Target: -post-compile-single
+Target: compile-single
+Target: compile-jsps
+Target: -do-compile-single-jsp
+Target: compile-single-jsp
+Target: -pre-dist
+Target: -do-dist-without-manifest
+Target: -do-dist-with-manifest
+Target: do-dist
+Target: library-inclusion-in-manifest
+Target: library-inclusion-in-archive
+Target: do-ear-dist
+Target: -post-dist
+Target: dist
+Target: dist-ear
+Target: run
+Target: run-deploy
+Target: verify
+Target: run-display-browser
+Target: run-main
+Target: debug
+Target: debug-display-browser
+Target: debug-single
+Target: -debug-start-debugger
+Target: -debug-start-debuggee-single
+Target: debug-single-main
+Target: -pre-debug-fix
+Target: -do-debug-fix
+Target: debug-fix
+Target: javadoc-build
+Target: javadoc-browse
+Target: javadoc
+Target: -pre-pre-compile-test
+Target: -pre-compile-test
+Target: -do-compile-test
+Target: -post-compile-test
+Target: compile-test
+Target: -pre-compile-test-single
+Target: -do-compile-test-single
+Target: -post-compile-test-single
+Target: compile-test-single
+Target: -pre-test-run
+Target: -do-test-run
+Target: -post-test-run
+Target: test-report
+Target: -test-browse
+Target: test
+Target: -pre-test-run-single
+Target: -do-test-run-single
+Target: -post-test-run-single
+Target: test-single
+Target: -debug-start-debuggee-test
+Target: -debug-start-debugger-test
+Target: debug-test
+Target: -do-debug-fix-test
+Target: debug-fix-test
+Target: deps-clean
+Target: do-clean
+Target: check-clean
+Target: -post-clean
+Target: clean
+Target: clean-ear
Build sequence for target `run' is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-ear-init, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-java, -init-macrodef-nbjpda, -init-macrodef-debug, init, deps-module-jar, deps-ear-jar, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, library-inclusion-in-archive, library-inclusion-in-manifest, -do-compile, -post-compile, compile, compile-jsps, -do-compile-single-jsp, -pre-dist, -do-dist-with-manifest, -do-dist-without-manifest, do-dist, -post-dist, dist, run-deploy, run-display-browser, run]
Complete build sequence is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-ear-init, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-java, -init-macrodef-nbjpda, -init-macrodef-debug, init, deps-module-jar, deps-ear-jar, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, library-inclusion-in-archive, library-inclusion-in-manifest, -do-compile, -post-compile, compile, compile-jsps, -do-compile-single-jsp, -pre-dist, -do-dist-with-manifest, -do-dist-without-manifest, do-dist, -post-dist, dist, run-deploy, run-display-browser, run, debug-display-browser, -post-compile-test-single, -pre-test-run, -pre-compile-single, -do-compile-single, -post-compile-single, compile-single, run-main, -pre-pre-compile-test, -pre-compile-test, -do-compile-test, -post-compile-test, compile-test, debug, javadoc-build, compile-single-jsp, -debug-start-debugger-test, -debug-start-debuggee-test, debug-test, -do-test-run, test-report, debug-single, do-clean, check-clean, -pre-test-run-single, javadoc-browse, javadoc, default, -pre-compile-test-single, -do-compile-test-single, compile-test-single, -do-test-run-single, do-ear-dist, -post-test-run-single, -post-test-run, -test-browse, test, dist-ear, deps-clean, -post-clean, clean, -pre-debug-fix, -do-debug-fix, debug-fix, -do-debug-fix-test, -debug-start-debuggee-single, clean-ear, -debug-start-debugger, verify, debug-fix-test, test-single, debug-single-main, ]
-pre-init:
-init-private:
Loading C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\private\private.properties
Setting project property: javac.debug -> true
Setting project property: javadoc.preview -> true
Setting project property: j2ee.platform.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\jsp-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar
Setting project property: j2ee.server.instance -> tomcat55:home=$bundled_home:base=$bundled_base
Setting project property: user.properties.file -> C:\Documents and Settings\luca.C64\.jstudio\Ent8\build.properties
-init-user:
Loading C:\Documents and Settings\luca.C64\.jstudio\Ent8\build.properties
Setting project property: libs.absolutelayout.src ->
Setting project property: libs.absolutelayout.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\AbsoluteLayout.jar
Setting project property: wsclientuptodate.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\ant\extra\wsclientuptodate.jar
Setting project property: default.javac.target -> 1.5
Setting project property: libs.jstl11.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\config\TagLibraries\JSTL11\standard.jar;D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\config\TagLibraries\JSTL11\jstl.jar
Setting project property: libs.jstl11.src ->
Setting project property: libs.absolutelayout.javadoc ->
Setting project property: libs.PortletBuilder.src ->
Setting project property: copyfiles.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\ant\extra\copyfiles.jar
Setting project property: libs.PortletBuilder.javadoc ->
Setting project property: libs.junit.src ->
Setting project property: default.javac.source -> 1.5
Setting project property: libs.junit.javadoc -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\docs\junit-3.8.1-api.zip
Setting project property: libs.junit.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar
Setting project property: libs.jstl11.javadoc -> D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\docs\jstl-1.1.2-javadoc.zip
Setting project property: jspc.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\ant\lib\ant.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\jsp-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-compiler-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-runtime-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\commons-el.jar:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\commons-logging-1.0.4.jar
Setting project property: libs.PortletBuilder.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\common.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\container.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\jdom.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portlet.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portletappengine.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portletcontainercommon.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\portlettl.jar;D:\Programmi\Sun\jstudio_ent8\ide\portletbuilder1\modules\ext\psrun.jar
Override ignored for property default.javac.source
Override ignored for property default.javac.target
-init-project:
Loading C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\project.properties
Setting project property: javac.deprecation -> true
Setting project property: build.test.results.dir -> build/test/results
Setting project property: javadoc.nonavbar -> false
Setting project property: war.name -> TomcatServletExample.war
Setting project property: run.test.classpath -> :build/web/WEB-INF/classes:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar:build/test/classes
Setting project property: javac.target -> 1.5
Setting project property: j2ee.server.type -> Tomcat55
Setting project property: client.urlPart ->
Setting project property: display.browser -> true
Setting project property: javadoc.noindex -> false
Setting project property: web.docbase.dir -> web
Setting project property: source.root -> src
Setting project property: build.classes.dir -> build/web/WEB-INF/classes
Setting project property: javadoc.author -> false
Setting project property: test.src.dir -> test
Setting project property: build.dir -> build
Setting project property: build.ear.web.dir -> build/ear-module
Setting project property: resource.dir -> setup
Setting project property: war.ear.name -> TomcatServletExample.war
Setting project property: build.test.classes.dir -> build/test/classes
Setting project property: platform.active -> default_platform
Setting project property: javac.compilerargs ->
Setting project property: javadoc.use -> true
Setting project property: lib.dir -> web/WEB-INF/lib
Setting project property: build.web.excludes -> **/*.java,**/*.form
Setting project property: debug.test.classpath -> :build/web/WEB-INF/classes:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar:build/test/classes
Setting project property: dist.dir -> dist
Setting project property: build.classes.excludes -> **/*.java,**/*.form
Setting project property: javadoc.splitindex -> true
Setting project property: javadoc.encoding ->
Setting project property: javac.source -> 1.5
Override ignored for property javadoc.preview
Setting project property: debug.classpath -> :build/web/WEB-INF/classes
Setting project property: compile.jsps -> false
Setting project property: build.web.dir -> build/web
Setting project property: runmain.jvmargs ->
Setting project property: conf.dir -> src/conf
Setting project property: build.generated.dir -> build/generated
Setting project property: jar.compress -> false
Setting project property: javac.test.classpath -> :build/web/WEB-INF/classes:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\junit-3.8.1.jar
Setting project property: javadoc.private -> false
Override ignored for property javac.debug
Setting project property: war.content.additional ->
Setting project property: jspcompilation.classpath -> D:\Programmi\Sun\jstudio_ent8\ide\ide5\ant\lib\ant.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\jsp-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\jakarta-tomcat-5.5.7\common\lib\servlet-api.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-compiler-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\jasper-runtime-5.5.7.jar:D:\Programmi\Sun\jstudio_ent8\ide\enterprise1\modules\autoload\ext\commons-el.jar:D:\Programmi\Sun\jstudio_ent8\ide\ide5\modules\ext\commons-logging-1.0.4.jar:
Setting project property: build.ear.classes.dir -> build/ear-module/WEB-INF/classes
Setting project property: dist.javadoc.dir -> dist/javadoc
Setting project property: src.dir -> src
Setting project property: javac.classpath ->
Setting project property: j2ee.platform -> 1.4
Setting project property: javadoc.version -> false
Setting project property: javadoc.windowtitle ->
Setting project property: dist.war -> dist/TomcatServletExample.war
Setting project property: javadoc.notree -> false
Setting project property: dist.ear.war -> dist/TomcatServletExample.war
-init-macrodef-property:
+Datatype http://www.netbeans.org/ns/web-project/1:property org.apache.tools.ant.taskdefs.MacroInstance
-do-ear-init:
Skipped because property 'dist.ear.dir' not set.
-do-init:
Unable to find test
Condition false; not setting have.tests
Condition false; not setting netbeans.home+have.tests
Condition false; not setting no.javadoc.preview
Override ignored for property javac.compilerargs
Property ${no.dependencies} has not been set
Condition false; not setting no.deps
Condition true; setting no.dist.ear.dir to true
Setting project property: no.dist.ear.dir -> true
Override ignored for property build.web.excludes
Condition false; not setting do.compile.jsps
Condition true; setting do.display.browser to true
Setting project property: do.display.browser -> true
Unable to find src\conf\MANIFEST.MF to set property has.custom.manifest
Setting project property: build.meta.inf.dir -> build/web/META-INF
Setting project property: build.classes.dir.real -> build/web/WEB-INF/classes
Setting project property: build.web.dir.real -> build/web
-post-init:
-init-check:
-init-macrodef-javac:
+Datatype http://www.netbeans.org/ns/web-project/2:javac org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-junit:
+Datatype http://www.netbeans.org/ns/web-project/2:junit org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-java:
Property ${main.class} has not been set
+Datatype http://www.netbeans.org/ns/web-project/1:java org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-nbjpda:
Property ${main.class} has not been set
+Datatype http://www.netbeans.org/ns/web-project/1:nbjpdastart org.apache.tools.ant.taskdefs.MacroInstance
+Datatype http://www.netbeans.org/ns/web-project/1:nbjpdareload org.apache.tools.ant.taskdefs.MacroInstance
-init-macrodef-debug:
Property ${main.class} has not been set
Property ${application.args} has not been set
+Datatype http://www.netbeans.org/ns/web-project/1:debug org.apache.tools.ant.taskdefs.MacroInstance
init:
deps-module-jar:
deps-ear-jar:
Skipped because property 'dist.ear.dir' not set.
deps-jar:
-pre-pre-compile:
-pre-compile:
-copy-manifest:
Skipped because property 'has.custom.manifest' not set.
library-inclusion-in-archive:
library-inclusion-in-manifest:
Skipped because property 'dist.ear.dir' not set.
-do-compile:
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\src with patternSet{ includes: [] excludes: [] }
CookieExample.java omitted as CookieExample.class is up to date.
HelloWorldExample.java omitted as HelloWorldExample.class is up to date.
LocalStrings.properties skipped - don't know how to handle it
LocalStrings_en.properties skipped - don't know how to handle it
LocalStrings_es.properties skipped - don't know how to handle it
LocalStrings_fr.properties skipped - don't know how to handle it
RequestHeaderExample.java omitted as RequestHeaderExample.class is up to date.
RequestInfoExample.java omitted as RequestInfoExample.class is up to date.
RequestParamExample.java omitted as RequestParamExample.class is up to date.
SessionExample.java omitted as SessionExample.class is up to date.
compressionFilters\CompressionFilter.java omitted as compressionFilters/CompressionFilter.class is up to date.
compressionFilters\CompressionFilterTestServlet.java omitted as compressionFilters/CompressionFilterTestServlet.class is up to date.
compressionFilters\CompressionResponseStream.java omitted as compressionFilters/CompressionResponseStream.class is up to date.
compressionFilters\CompressionServletResponseWrapper.java omitted as compressionFilters/CompressionServletResponseWrapper.class is up to date.
filters\ExampleFilter.java omitted as filters/ExampleFilter.class is up to date.
filters\RequestDumperFilter.java omitted as filters/RequestDumperFilter.class is up to date.
filters\SetCharacterEncodingFilter.java omitted as filters/SetCharacterEncodingFilter.class is up to date.
listeners\ContextListener.java omitted as listeners/ContextListener.class is up to date.
listeners\SessionListener.java omitted as listeners/SessionListener.class is up to date.
util\HTMLFilter.java omitted as util/HTMLFilter.class is up to date.
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\src with patternSet{ includes: [] excludes: [**/*.java, **/*.form] }
LocalStrings.properties omitted as LocalStrings.properties is up to date.
LocalStrings_en.properties omitted as LocalStrings_en.properties is up to date.
LocalStrings_es.properties omitted as LocalStrings_es.properties is up to date.
LocalStrings_fr.properties omitted as LocalStrings_fr.properties is up to date.
omitted as is up to date.
compressionFilters omitted as compressionFilters is up to date.
filters omitted as filters is up to date.
listeners omitted as listeners is up to date.
util omitted as util is up to date.
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\web with patternSet{ includes: [] excludes: [**/*.java, **/*.form] }
META-INF\context.xml omitted as META-INF/context.xml is up to date.
WEB-INF\web.xml omitted as WEB-INF/web.xml is up to date.
cookies.html omitted as cookies.html is up to date.
helloworld.html omitted as helloworld.html is up to date.
images\code.gif omitted as images/code.gif is up to date.
images\execute.gif omitted as images/execute.gif is up to date.
images\return.gif omitted as images/return.gif is up to date.
index.html omitted as index.html is up to date.
reqheaders.html omitted as reqheaders.html is up to date.
reqinfo.html omitted as reqinfo.html is up to date.
reqparams.html omitted as reqparams.html is up to date.
sessions.html omitted as sessions.html is up to date.
omitted as is up to date.
META-INF omitted as META-INF is up to date.
WEB-INF omitted as WEB-INF is up to date.
images omitted as images is up to date.
-post-compile:
compile:
compile-jsps:
Skipped because property 'do.compile.jsps' not set.
-do-compile-single-jsp:
Skipped because property 'jsp.includes' not set.
-pre-dist:
-do-dist-with-manifest:
Skipped because property 'has.custom.manifest' not set.
-do-dist-without-manifest:
Setting project property: dist.jar.dir -> C:\Documents and Settings\luca.C64\TomcatServletExample1\dist
fileset: Setup scanner in dir C:\Documents and Settings\luca.C64\TomcatServletExample1\build\web with patternSet{ includes: [] excludes: [] }
META-INF\context.xml omitted as META-INF/context.xml is up to date.
WEB-INF\classes\CookieExample.class omitted as WEB-INF/classes/CookieExample.class is up to date.
WEB-INF\classes\HelloWorldExample.class omitted as WEB-INF/classes/HelloWorldExample.class is up to date.
WEB-INF\classes\LocalStrings.properties omitted as WEB-INF/classes/LocalStrings.properties is up to date.
WEB-INF\classes\LocalStrings_en.properties omitted as WEB-INF/classes/LocalStrings_en.properties is up to date.
WEB-INF\classes\LocalStrings_es.properties omitted as WEB-INF/classes/LocalStrings_es.properties is up to date.
WEB-INF\classes\LocalStrings_fr.properties omitted as WEB-INF/classes/LocalStrings_fr.properties is up to date.
WEB-INF\classes\RequestHeaderExample.class omitted as WEB-INF/classes/RequestHeaderExample.class is up to date.
WEB-INF\classes\RequestInfoExample.class omitted as WEB-INF/classes/RequestInfoExample.class is up to date.
WEB-INF\classes\RequestParamExample.class omitted as WEB-INF/classes/RequestParamExample.class is up to date.
WEB-INF\classes\SessionExample.class omitted as WEB-INF/classes/SessionExample.class is up to date.
WEB-INF\classes\compressionFilters\CompressionFilter.class omitted as WEB-INF/classes/compressionFilters/CompressionFilter.class is up to date.
WEB-INF\classes\compressionFilters\CompressionFilterTestServlet.class omitted as WEB-INF/classes/compressionFilters/CompressionFilterTestServlet.class is up to date.
WEB-INF\classes\compressionFilters\CompressionResponseStream.class omitted as WEB-INF/classes/compressionFilters/CompressionResponseStream.class is up to date.
WEB-INF\classes\compressionFilters\CompressionServletResponseWrapper.class omitted as WEB-INF/classes/compressionFilters/CompressionServletResponseWrapper.class is up to date.
WEB-INF\classes\filters\ExampleFilter.class omitted as WEB-INF/classes/filters/ExampleFilter.class is up to date.
WEB-INF\classes\filters\RequestDumperFilter.class omitted as WEB-INF/classes/filters/RequestDumperFilter.class is up to date.
WEB-INF\classes\filters\SetCharacterEncodingFilter.class omitted as WEB-INF/classes/filters/SetCharacterEncodingFilter.class is up to date.
WEB-INF\classes\listeners\ContextListener.class omitted as WEB-INF/classes/listeners/ContextListener.class is up to date.
WEB-INF\classes\listeners\SessionListener.class omitted as WEB-INF/classes/listeners/SessionListener.class is up to date.
WEB-INF\classes\util\HTMLFilter.class omitted as WEB-INF/classes/util/HTMLFilter.class is up to date.
WEB-INF\web.xml omitted as WEB-INF/web.xml is up to date.
cookies.html omitted as cookies.html is up to date.
helloworld.html omitted as helloworld.html is up to date.
images\code.gif omitted as images/code.gif is up to date.
images\execute.gif omitted as images/execute.gif is up to date.
images\return.gif omitted as images/return.gif is up to date.
index.html omitted as index.html is up to date.
reqheaders.html omitted as reqheaders.html is up to date.
reqinfo.html omitted as reqinfo.html is up to date.
reqparams.html omitted as reqparams.html is up to date.
sessions.html omitted as sessions.html is up to date.
do-dist:
-post-dist:
dist:
run-deploy:
In-place deployment at C:\Documents and Settings\luca.C64\TomcatServletExample1\build\web
Server returned HTTP response code: 403 for URL: http://localhost:8080/manager/deploy?config=file:/C:/DOCUME~1/luca.C64/IMPOST~1/Temp/context33857.xml&path=/TomcatServletExample1
C:\Documents and Settings\luca.C64\TomcatServletExample1\nbproject\build-impl.xml:355: Deployment failed.
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:85)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.e -
Failed to open design mode for .mxml document
Hi,
I have recently installed flash builder 4 plugin to eclipse galilo. I am working on a project which uses flex SDK. Using eclipse flash perspective when try to open a .MXML file, the design tab is throwing an error message on the screen "An unknown item declared as root of your MXML document. Swoitch to source mode to correct it".
Under Components tab of eclipse I can see the following error:
Could not create the view: An unexpected exception was thrown.
java.lang.NullPointerException
at com.adobe.flexbuilder.codemodel.internal.design.ComponentCategoryList.getCustomComponents Filtered(ComponentCategoryList.java:207)
at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView$ViewContentProvider.get Elements(ComponentsView.java:339)
at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:959)
at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1330)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:390)
Below is my mxml file content:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical" backgroundColor="white" width="100%" height="100%"
paddingBottom="6" paddingLeft="6" paddingRight="6" paddingTop="6"
keyUp="Mediator.instance.debugLogic.handleDebugToggle(event)"
applicationComplete="Mediator.instance.init(this, ID_TABS)">
<mx:Script><![CDATA[
import metasearch.main.Mediator;
]]></mx:Script>
<mx:TabNavigator id="ID_TABS"
backgroundColor="#cccccc" width="100%" height="100%"
paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10">
</mx:TabNavigator>
</mx:Application>
Please tell me what's wrong with the above document.thank you! I'll let you know if it worked!
the only problem is that none of my tweens and actions are correct. -
How to set Header variables through Jsp
Hi,
Can anybody help me with the code.
I need to send user id in http header variable from jsp to a third party tool, which will read user id from the http header.
i am tryng to test if ui can set the variable using th efollowing code
<%response.addHeader("REMOTE_USER" ,"user1"); %>
and to get that i am using response.getHeader("REMOTE_USER");
The header variable is not set.
can you let me know if is possible , can we set user defined header variables??
Any help will be highly appreciated
Thanks in advanceHi,
If you'd like to send some additional headers from your jsp it would make sense to add it to your request than the response. Unfortunately, neither a servlet or jsp is allowed to modify the request object. You would need to write a filter to achieve this.
See the below url for more information on creating filters.
http://java.sun.com/products/servlet/Filters.html
cheers,
vidyut -
How to use the "target Data lines"?
Hello,
I want to program some DSP effects and filters with Java. I know to use the "Clip" and the "Sound" data lines in the Java Sound API, but it is difficult to me tu use the "target data lines" to do what I want to. So I have several questions :
I have found how to convert a clip to a target data line. I have understood how to get the int from the sounds via the target data line. But, when I have done the operations with this int, how to do again a sound from the int? Wich method must I use to "convert the int to a sound"?
Normally, oscillators and filters need to do an integration using the sample rate. Does anyone could give to me some exemples?
I have found code sources for C++ for DSP. Where could I find the same for Java?
Do you know a book about this subject, I did not find any?
Thank you for your help.My idea is to create a byte array from the audio clip via a ByteArrayOutputStream, then to create an int or a float, then do the operations, and then do another audio line from the new byte array. Am I wrong?This is correct, I believe.
This byte array will have a size of 16 (for PCM or wave files) surrely.Not necessarily. If you're using 16-bit samples for PCM data, then every 2 array positions will be "a sample". Your byte array will be 2 times the number of samples.
You'll want to pull the data 2-bytes at a time and do basiclly:
byte[] data_in = new byte[2];
myTargetDataline.read(data_in, 0, 2);
short sample = (data_in[0] << 8) + (data_in[1]);Then do whatever you want to your sample, and then write it back...
byte[] data_out = new byte[] {
(byte)(sample >>> 8),
(byte)(sample )
mySourceDataline.write(data_out, 0, 2);I used a short instead of an int because it's 16-bit data, so it's a short. PCM may be an "unsigned" short, but you'll have to check into that yourself ;-)
To be perfectly honest, I've never done this so my sample code will probably need to be tweaked. But I hope it helps you get headed in the right direction, and gimme an update when you try it out. -
Hi,
I'm using WebLogic 9.2.2. I have a single server in my cluster. The server is perpetually stuck in a "STARTING" state (http://screencast.com/t/GMDTihmVYD). I'm not sure how it got there, but when I visit the Shutdown -> Force Shutdown Now option, although I'm told the request was sent to the server, the server remains in this ambiguous "STARTING" state.
How do I break out of this state and restart my server?
Thanks, - DaveOn your advice, logged in as etsbea, I ran the command, filtered with java and got:
etsbea 9948 49.1 2.9562912464808 ? O Oct 13 58:22 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/bin/java -Dweblogic.Name=btsgui-ms-1 -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.management.server=http://rhonti:17001 -Djava.library.path=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/lib/sparc/client:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/lib/sparc:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/../lib/sparc:/export/third-party/etsbea/product/wls_9.2.2/patch_weblogic922/profiles/default/native:/export/third-party/etsbea/oracle/product/10.2.0/lib:/export/third-party/etsbea/home/etsbea/netegrity/sdk/bin:/opt/GCC3.3.2/lib/:/opt/GCC3.3.2/lib/sparcv9/:/usr/lib/:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/native/solaris/sparc:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/native/solaris/sparc/oci920_8:/export/third-party/etsbea/product/netegrity_6.0.2/sdk/bin:/usr/lib -Djava.class.path=/export/third-party/etsbea/application_conf/wls_9.2.2/btsgui_conf:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n-schemas.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n_common.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n_system.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_common.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_schemas.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_system.jar:.:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/lib/tools.jar -Dweblogic.system.BootIdentityFile=/export/third-party/etsbea/product/wls_9.2.2/user_projects/domains/nps_pt_92/servers/btsgui-ms-1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xms256m -Xmx256m -XX:NewSize=64m -XX:MaxNewSize=64m -XX:SurvivorRatio=4 -Dweblogic.wsee.useRequestHost=true weblogic.Server
etsbea 9171 1.3 4.0821424652216 ? S Oct 13 46:17 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/bin/java -server -Xms256m -Xmx512m -XX:MaxPermSize=128m -da -Dplatform.home=/export/third-party/etsbea/product/wls_9.2.2/weblogic92 -Dwls.home=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server -Dwli.home=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/integration -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/export/third-party/etsbea/product/wls_9.2.2/patch_weblogic922/profiles/default/sysext_manifest_classpath -D_Offline_FileDataArchive=true -Dweblogic.Name=npsadmin -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy weblogic.Server
etsbea 18855 0.3 2.5579448398064 ? S Oct 14 7:00 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/bin/java -Dweblogic.Name=npsgui-ms-1 -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.management.server=http://rhonti:17001 -Djava.library.path=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/lib/sparc/client:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/lib/sparc:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/../lib/sparc:/export/third-party/etsbea/product/wls_9.2.2/patch_weblogic922/profiles/default/native:/export/third-party/etsbea/oracle/product/10.2.0/lib:/export/third-party/etsbea/home/etsbea/netegrity/sdk/bin:/opt/GCC3.3.2/lib/:/opt/GCC3.3.2/lib/sparcv9/:/usr/lib/:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/native/solaris/sparc:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/native/solaris/sparc/oci920_8:/export/third-party/etsbea/product/netegrity_6.0.2/sdk/bin:/usr/lib -Djava.class.path=/export/third-party/etsbea/application_conf/wls_9.2.2/nps_gui_conf:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n-schemas.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n_common.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n_system.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_common.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_schemas.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_system.jar:.:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/lib/tools.jar -Dweblogic.system.BootIdentityFile=/export/third-party/etsbea/product/wls_9.2.2/user_projects/domains/nps_pt_92/servers/npsgui-ms-1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=4 -Dweblogic.wsee.useRequestHost=true -XX:+HeapDumpOnOutOfMemoryError -D_Offline_FileDataArchive=true -Dweblogic.connector.ConnectionPoolProfilingEnabled=false -Dcom.bea.wlw.netui.disableInstrumentation=true weblogic.Server
etsbea 9474 0.3 0.622793689408 ? S Oct 13 8:51 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/bin/java -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Xverify:none -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12 -DListenPort=11555 weblogic.NodeManager -v
etsbea 16582 0.2 2.5641048413024 ? S Oct 14 6:04 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/bin/java -Dweblogic.Name=nps-prov-ws-ms-1 -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.management.server=http://rhonti:17001 -Djava.library.path=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/lib/sparc/client:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/lib/sparc:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/jre/../lib/sparc:/export/third-party/etsbea/product/wls_9.2.2/patch_weblogic922/profiles/default/native:/export/third-party/etsbea/oracle/product/10.2.0/lib:/export/third-party/etsbea/home/etsbea/netegrity/sdk/bin:/opt/GCC3.3.2/lib/:/opt/GCC3.3.2/lib/sparcv9/:/usr/lib/:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/native/solaris/sparc:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/native/solaris/sparc/oci920_8:/export/third-party/etsbea/product/netegrity_6.0.2/sdk/bin:/usr/lib -Djava.class.path=/export/third-party/etsbea/application_conf/wls_9.2.2/nps_provisioning_ws_conf:/export/third-party/etsbea/product/wls_9.2.2/patch_weblogic922/patch_jars/CR359539_920MP2.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n-schemas.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n_common.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/p13n/p13n_system.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_common.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_schemas.jar:/export/third-party/etsbea/product/wls_9.2.2/weblogic92/platform/lib/wlp/netuix_system.jar:.:/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/lib/tools.jar -Dweblogic.system.BootIdentityFile=/export/third-party/etsbea/product/wls_9.2.2/user_projects/domains/nps_pt_92/servers/nps-prov-ws-ms-1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=2 -XX:MaxPermSize=128m -XX:PermSize=128m -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -D_Offline_FileDataArchive=true -Dweblogic.connector.ConnectionPoolProfilingEnabled=false -Dcom.bea.wlw.netui.disableInstrumentation=true -Dweblogic.wsee.useRequestHost=true -Dweblogic.wsee.security.clock.skew=28800000 -Dweblogic.wsee.security.delay.max=28800000 weblogic.Server
etsbea 9255 0.1 0.414619251752 ? S Oct 13 1:18 /export/third-party/etsbea/bea/jdk142_05/bin/java -client -Xms32m -Xmx200m -Xverify:none -Djava.security.policy=/export/third-party/etsbea/bea/weblogic81/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/export/third-party/etsbea/bea/jdk142_05 weblogic.NodeManager
etsbea 9540 0.1 0.422755263480 ? S Oct 13 1:06 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/bin/java -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Xverify:none -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12 -DListenPort=5566 weblogic.NodeManager -v
etsbea 26464 0.0 0.0 1280 1032 pts/2 S 12:40:21 0:00 grep java
etsbea 18608 0.0 0.1227296 9480 ? S Oct 14 0:00 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/bin/java -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Xverify:none -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12 -DListenPort=11555 weblogic.NodeManager -v
etsbea 25011 0.0 0.1227296 9648 ? S 09:04:31 0:00 /export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12/bin/java -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Xverify:none -Djava.security.policy=/export/third-party/etsbea/product/wls_9.2.2/weblogic92/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/export/third-party/etsbea/product/wls_9.2.2/jdk1.5.0_12 -DListenPort=11555 weblogic.NodeManager -v
Hard for me to figure out what is going on with the above. I definitely appreciate any further info, - Dave -
Server ---IP address//redirection..Pls
I am new to this Please help me
i am using JSPs
i wanna a redirect my clients request to a secure payment
gateway (Bank here after) ,But while doing so the Bank needs the
invoked IP is from the server(constant) but always I try this Bank gets the clients IP address
instead, i used sendredirest or jsp:forward ,
is there any other alternatives to achieve this ,Please help me
NB:- I tried with URLconnection directly from server but it failed as the
Bank url holds a https protocolHi,
You can use filters which are part of Servlet & JSP s latest specification, to
change the contents of the request before forwarding.You can find more information
on this technology at http://java.sun.com/jsp.Also there is an white paper on filters http://java.sun.com/products/servlet/Filters.html.
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Micro Sysytems
http://www.sun.com/developers/support/
Maybe you are looking for
-
Can I save my playlist to a flash drive?
I need to switch my song library (playlist) from one computer to a new one. Is it possible to save all the songs on my flash drive? If so, please give specific instructions...no tech guru here.
-
I have a normal Standard Def TV and was hoping to connect my new 13" Macbook pro to it so that I could watch Hulu. I stopped in the Apple Store and they said no cord could do that. But when I did a search on the Apple website I found this cord, the A
-
Changing 'ownership' of MacBook Pro
I recently purchased a MacBook Pro (2008 model) and I'm running 10.8 on it. I changed the administrator information to reflect my information but when I view the HDD info, it still shows the previous oner's name. How can I change this? -Thanks in adv
-
Can't get my iphone 4 to work now I've moved countries.
I've just moved to Germany and have an Iphone that I got from the car phone warehouse, I was on contract with o2, o2 in England told me my phone is not locked to them but when Iput my German sim pre pay sim in it won't work. It tells me to activate t
-
Integrating External JQUERY code with Edge Animate
Hi all... There are two ways i can see of integrating Edge Animate With External JQuery Something happens within Adobe edge and triggers something to happen externally or vice versa..... 1: When an action is performed (mouseUp MouseOver... etc...) we