User Profile

Collapse

Profile Sidebar

Collapse
kokababu
kokababu
Last Activity: Aug 17 '10, 12:18 PM
Joined: Jul 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • XML validation error: javax.xml.validation.Validator.validate(Unknown Source)

    Hi,

    I have created an XML writer module to write xml using StaX api for our Rest Web Service(using Jersey). I am validating my XML against schema. It works Locally without
    any error but when I have deployed it in the production server, I have got the following error:

    Code:
    java.lang.NullPointerException
    
    at com.sun.org.apache.xerces.internal.jaxp.validation.StAXValidatorHelper.validate(Unknown Source)
    ...
    See more | Go to post

  • kokababu
    replied to A question about XSD deployment
    in XML
    Thank you. I understood
    See more | Go to post

    Leave a comment:


  • kokababu
    started a topic A question about XSD deployment
    in XML

    A question about XSD deployment

    Hi

    I would like to have an advice about xsd deployment.
    I have some xsd files to verify the XMLs. Now I want
    to deploy xsd files to server. Will I deploy them to Application server or HTTP server?

    As far as I know, people deploys xsd into the
    HTTP server but I want to know the reason.

    Thanks
    See more | Go to post

  • kokababu
    started a topic Eclipse xsd problem
    in Java

    Eclipse xsd problem

    I have tomcat server and eclipse. I created multiple schemas and contains <import> tags. They are outside of the eclipse environment. I checked my schemas and xml. They are 100% valid.

    I have dynamic web project in the eclipse. I just copied
    my schema to the project's WebContent/ directory.
    Now I am getting error:

    src-resolve: Cannot resolve the name 'user:userType' to a(n) 'type definition' component...
    See more | Go to post

  • Hmmm, I understood nobody knows answer of my question. However, I overcome the problem. I just take out the jaxb api and I have used StaX now. StaX is cool because it gives me to work low level task such I can now attache my multiple external schemes with the parser and writer. I have successfully achieved my goal using StaX.
    See more | Go to post

    Leave a comment:


  • kokababu
    started a topic How to add xml schema attributes using JAXB?
    in Java

    How to add xml schema attributes using JAXB?

    Hi,

    I have to add xml schema attributes into the java object.
    Such as, my java object is User. This User object will be
    represented as XML using JAXB. I generated XML
    from User object successfully using JAXB. But I want to add xml schema attributes. For example:

    <User
    xmlns="http://testws/rest/schema"
    xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance"...
    See more | Go to post

  • How to add xml schema attributes into the java object using JAXB?

    Hi,

    I have to add xml schema attributes into the java object.
    Such as, my java object is User. This User object will be
    represented as XML using JAXB. I generated XML
    from User object successfully using JAXB. But I want to add xml schema attributes such as
    Code:
    <User 
        xmlns="http://testws/rest/schema"		
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    ...
    See more | Go to post

  • kokababu
    started a topic JAXB @xmlSchema and package-info.java error
    in Java

    JAXB @xmlSchema and package-info.java error

    I have a java object such as:

    Code:
    @XmlSchema(namespace="http://www.testws.com")
    package org.test;
    
    public class XmlObj{
    ............
    }
    But from Eclipse, I am getting error:
    Package annotations must be in file package-info.java

    I created a file named "package-info.java" and put
    the following lines in the package-info.java file:...
    See more | Go to post

  • kokababu
    started a topic why I am getting method not allowed error (405)
    in PHP

    why I am getting method not allowed error (405)

    Hi,

    I have a simple rest web service which is running in the Tomcat. I tested my web service successfully using REST Client for FireFox.

    Now, I used PHP socket to post xml as string to my web service. But I got HTTP/1.1 405 Method Not Allowed error.

    I used the following code:

    Code:
    <?php
    
    	$str="<?xml version=\"1.0\"?><userEntity><address1>1300
    ...
    See more | Go to post

  • kokababu
    started a topic Log4J and Stripes Framework
    in Java

    Log4J and Stripes Framework

    Hi,

    I have to add Log4J's JDBCAppender with Stripes Framework.
    So I created commons-loggin.properti es and log4j.propertie s inside WEB-INF\CLASSES\ directory.

    My log4J.propertie s contains:

    log4j.rootLogge r=debug,R
    log4j.appender. R.Driver=com.my sql.jdbc.Driver
    log4j.appender. R=org.apache.lo g4j.jdbc.JDBCAp pender
    log4j.appender. R.URL=jdbc:mysq l://localhost:3306/test
    log4j.appender. R.user=root...
    See more | Go to post

  • kokababu
    started a topic AIR error 2006 after loading <mx:HTML>

    AIR error 2006 after loading <mx:HTML>

    I am new in AIR/Flex. I have created a browser using <mx:HTML>. During the loading, I am getting the following error:

    RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display:: DisplayObjectCo ntainer/getChildAt()
    at mx.core::Contai ner/getChildAt()
    at mx.containers.u tilityClasses:: BoxLayout/updateDisplayLi st()
    at mx.containers:: Box/updateDisplayLi st()
    at mx.core::UIComp onent/validateDisplay List()...
    See more | Go to post

  • kokababu
    replied to PreparedStatement is not working
    in Java
    Thank you,

    Now, I am very surprised that not all data is inserted into the table.
    I wanted to insert 5 rows data, only last rows has been inserted into table.
    See more | Go to post

    Leave a comment:


  • kokababu
    replied to PreparedStatement is not working
    in Java
    my counter value is 1.
    See more | Go to post

    Leave a comment:


  • kokababu
    replied to PreparedStatement is not working
    in Java
    Hi,
    Thank you
    I set setAutoComit true and removed commit() from my code.
    But still, no data is inserted into the table. I am very confused.
    See more | Go to post

    Leave a comment:


  • kokababu
    started a topic PreparedStatement is not working
    in Java

    PreparedStatement is not working

    Hi

    I have to insert multiple rows into a Table. I am inserting rows
    using addBatch and executeBatch.
    Each row has 5 columns. Four columns of each row contain
    same value except last column.
    So I am using for loop to set the last column value.

    I am using JDK1.5, DB2 and WAS6.1. My connection is OK and setAutoCommit sets as false.

    Code:
    String insertStr="INSERT
    ...
    See more | Go to post

  • kokababu
    started a topic JNDI and Java Thread
    in Java

    JNDI and Java Thread

    Hi

    I am developing a WebService using Java (JAX-RPC).
    According to the requirement, I have to create a Thread to
    insert data into Database.

    So I am opening a database connection in the following way:
    Note: I am using runnable interface and I am calling the getCon() from run method.
    Code:
    public Connection getCon(){
        	 ctx = new javax.naming.InitialContext();
        	 ds = (javax.sql.DataSource)
    ...
    See more | Go to post

  • kokababu
    started a topic java and Lotus Domino api
    in Java

    java and Lotus Domino api

    Hi,

    I am developing a java program where I can insert
    Lotus distribution list id such as "SampleList " then
    the program will return email addresses.

    I am searching about it but I did not get any hint so far.

    Can anyone please help me to figure out which Domino api I need to use?
    See more | Go to post

  • kokababu
    started a topic about Cross Domain Dojo Resource Loading

    about Cross Domain Dojo Resource Loading

    I am trying to load dojo module from different domain; such as dojo.parser, dijit.form.Text Box etc.

    Code:
     <html>
    	<head>
    	   <script type="text/javascript">
    		djConfig = {
    			isDebug: true,
    			parseOnLoad: true,
    			xdWaitSeconds: 10
    		};
    	  </script>
    	<script type="text/javascript" src="http://somedomain.com/toolkit/dojo-release-1.2.3/dojo/dojo.js"></script>
    ...
    See more | Go to post

  • kokababu
    replied to Javascript Widget
    hi,

    Thank you.

    Suppose, a end user wants to attach this widget and his webpage is in different server. How will he/she attach this widget and submit data, using proxy?
    See more | Go to post

    Leave a comment:


  • kokababu
    started a topic Javascript Widget

    Javascript Widget

    Hi,

    How do I develop a widget or any tutorial?

    Can anyone please give me some info about the ajax based javascript widget
    where client can submit data to other server (cross domain)?


    Thank you.
    See more | Go to post
No activity results to display
Show More
Working...