BlazeDS with WSDL importer tool

Hello I'm using BlazeDS with MXML tags and I manually declare
the parameters passed to the webservice and this works fine. It is
however a pain because I have complicated DTO's. An option would be
to use the WSDL import tool which creates stubs and the objects. It
would be so much faster to use these generated objects. Has anyone
ever used this approach? Can it work? I can't seem to make it
work...
Thanks

i have a group called let's say AandBGroup consisting of UserA and UserB. the wiki called AandBGroup is configured "private" and writable (only) by the group AandBGroup. just to be doubly sure that the reliance on group privs was not a complicating factor here, i also added privs for UserA and UserB explicitly.
i have confirmed that both UserA and UserB can connect (via browser) and create pages in this the AandBGroup wiki.
i have confirmed (about 50x) that i am entering valid usernames and passwords into the tool, at least based on my current understanding - i have tried using UserA's credentials and UserB's. no difference.
as a test, i tried creating a new wiki that was publicly readable and writable and using that - still no change. i immediately get the same error message when i try to import.
the only complicating factors i can think of are that i have SSL turned on on the new site. however, this seems like it would be taken care of by the fact that i specified the new site URL starting with "https://..." -- i.e. exactly what you would use to connect via a browser.
one thing i've noticed: it seems as though a wiki can be created in multiple ways - either by creating a new group in the Server Preferences app and checking the "create group wiki..." button or by a user simply clicking the "create a new wiki" button from the browser. does it matter how target wiki was created? i checked and the AandBGroup wiki is linked if i look at the AandBGroup group settings in Server Preferences, so it doesn't seem like this should be an issue... but maybe i'm missing something.
i am running the WikiImporter tool on the server. shouldn't matter, i don't think.

Similar Messages

  • Component getServiceDescription() with WSDL imports

    How are WSDL imports handled in JBI service descriptions? I was looking through several specifications OASIS and many of the WSDL definitions are broken into several files and use WSDL imports. According to the JBI spec,
    "The document must not use the <wsdl:import> or <wsdl:include> elements (the document MUST be stand-alone)."
    From this I gather it is up to a JBI component developer to merge existing WSDL specs together so that they can be represented by a WC3 Document object?
    Also several of the OASIS specs have WSDL SOAP binding requirements. Since the SOAP binding component is not in the JBI spec is it optional that the binding allow component/SU deployer's to specify the precise bindings to the Services? How does open-esb handle it?

    Aaron,
    The JBI component developer must do the merge you mentioned. Quite often this is done at design-time, and deployed as part of the service unit, so the component itself has little or nothing to do to create the description.
    The JBI specification does require each JBI implemenation to provide a WS-I 1.1-compliant SOAP binding.
    A service engine only declares the "service-engine" type of endpoint for services provided; if it declares other endpoint types (say, a SOAP binding) it is meaningless from the JBI perspective.
    To expose a service provided by an SE through the SOAP BC, normally an SU must be deployed to the BC (usually part of the SA that contains the SU for the SE).
    More dynamic situations are possible: the BC could dynamically discover services, and expose them to external consumers using some sort of heuristic mapping. This dynamic approach remains, as far as I know, theoretical: no one has actually implemented such a BC. Controlling exposure of services is something that needs to be more carefully controlled, via design-time mechanisms and/or a registry/repository.

  • I'm trying to import contacts from Outlook to mac address book. I've exported as a CSV but when i try to open with the Address book import tool, the file is greyed out and can't be imported

    I'm trying to import contacts from Outlook to Mac address book. I've exported as a CSV but when I try to open with the Address book import tool, the file is greyed out and can't be imported. Any ideas? 
    Thanks,
    Ian

    If you can't get the exported .csv file to work you might consider using Migration Assistant: http://support.apple.com/kb/HT2518, particular if you need to move more than just your contacts.  There is some granularity in the options on what to transfer but I'm not sure if you can choose to just your migrate contacts.

  • Errors creating a Web Service Proxy using Microsoft WSDL.exe tool

    I have deployed a BPEL process using JDeveloper. This process can be invoked from the BPEL console and completes as expected. I am trying to create a Web Service Proxy using the Microsoft WSDL.exe tool so that the process can be invoked from a Microsoft Word document. This process is based on the AutoLoan example in the Developer's Guide for Microsoft Office Interoperability B25781-01.
    WSDL.exe returns the following error message
    Error: There was an error processing 'http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0/HonorariumSmartDoc?wsdl'.
    - The document at the url http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0/HonorariumSmartDoc?wsdl was not recognized as a known document type. The error message from each known type may help you fix the problem:
    - Report from 'WSDL Document' is 'There is an error in XML document (19, 7).'.
    - A schema with the namespace '' has already been added.
    - Report from 'DISCO Document' is 'Discovery document at the URL http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0/HonorariumSmartDoc?wsdl could not be found.'.
    - The document format is not recognized.
    - Report from 'XML Schema' is 'Expected Schema root. Make sure that the root element is <schema> and the namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. An error occurred at , (2, 2).'.
    How do I resolve this error?

    The WSDL file is below.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions name="HonorariumSmartDoc" targetNamespace="http://xmlns.oracle.com/HonorariumSmartDoc" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/HonorariumSmartDoc" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:client="http://xmlns.oracle.com/HonorariumSmartDoc">
    - <types>
    - <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/HonorariumSmartDoc" schemaLocation="HonorariumSmartDoc.xsd" />
    </schema>
    - <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://erp.template.co.uk:8889/orabpel/xmllib/ws-addressing.xsd" />
    </schema>
    </types>
    - <message name="HonorariumSmartDocResponseMessage">
    <part name="payload" element="tns:HonorariumSmartDocProcessResponse" />
    </message>
    - <message name="HonorariumSmartDocRequestMessage">
    <part name="payload" element="tns:HonorariumSmartDocProcessRequest" />
    </message>
    - <message name="WSARelatesToHeader">
    <part name="RelatesTo" element="wsa:RelatesTo" />
    </message>
    - <message name="WSAReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo" />
    </message>
    - <message name="WSAMessageIDHeader">
    <part name="MessageID" element="wsa:MessageID" />
    </message>
    - <portType name="HonorariumSmartDocCallback">
    - <operation name="onResult">
    <input message="tns:HonorariumSmartDocResponseMessage" />
    </operation>
    </portType>
    - <portType name="HonorariumSmartDoc">
    - <operation name="initiate">
    <input message="tns:HonorariumSmartDocRequestMessage" />
    </operation>
    </portType>
    - <binding name="HonorariumSmartDocBinding" type="tns:HonorariumSmartDoc">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="initiate">
    <soap:operation style="document" soapAction="initiate" />
    - <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle="" />
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle="" />
    <soap:body use="literal" />
    </input>
    </operation>
    </binding>
    - <binding name="HonorariumSmartDocCallbackBinding" type="tns:HonorariumSmartDocCallback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="onResult">
    <soap:operation style="document" soapAction="onResult" />
    - <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle="" />
    <soap:body use="literal" />
    </input>
    </operation>
    </binding>
    - <service name="HonorariumSmartDocCallbackService">
    - <port name="HonorariumSmartDocCallbackPort" binding="tns:HonorariumSmartDocCallbackBinding">
    <soap:address location="http://set.by.caller" />
    </port>
    </service>
    - <service name="HonorariumSmartDoc">
    - <port name="HonorariumSmartDocPort" binding="tns:HonorariumSmartDocBinding">
    <soap:address location="http://erp.template.co.uk:8889/orabpel/default/HonorariumSmartDoc/1.0" />
    </port>
    </service>
    - <plnk:partnerLinkType name="HonorariumSmartDoc">
    - <plnk:role name="HonorariumSmartDocProvider">
    <plnk:portType name="tns:HonorariumSmartDoc" />
    </plnk:role>
    - <plnk:role name="HonorariumSmartDocRequester">
    <plnk:portType name="tns:HonorariumSmartDocCallback" />
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

  • Performance and usability problems with Illustrator imports

    I am usually an enthusiast advocate for Adobe Software. As a UI/Interaction designer I regularly showcase your products as a shining example.
    That's why I am somewhat frustrated about the Flash Catalyst Beta. I trust you guys to come out with SOMETHING GREAT eventually, but I have just spend an entire day with Catalyst and it was not particularly a joy. Couldn't you have released it a bit later to save me the frustration?
    Situation:
    - Medium size Adobe Illustrator CS4 import (10 screens/stages with 20-100 Illustrator objects per screen)
    - Target : 800x600 embedded UI for medical product
    - Illustrator file chosen as starting point
    Performance / reliability problems include
    - Crashing (Vista Core2Duo with 2gig of Ram)
    - Super poor performance (wait 8 seconds to hide/show a layer)
    - No show of thumbnail images anywhere
    - No matching of document size (exact 800x600 from Illustrator became 800x599)
    - Playing the file did not work
    Usability issues
    - Poor test display
    - Poor match with Illustrator file (things seem to be rendered differently!)
    - Window selecting does not work well
    - No hand tool
    - No ability to lock layers
    - Cluttered interface (Not enough space for the "stage"or what you call it)
    - No way to resize Illustrator elements from one of 9 edge/center points
    - etc. etc.
    Building a wireframe version from the ground up (with Illustrator import) seemed to work fine
    I played around with the MS Blend beta for a while, and while the basic concept of your product is much more clear, the execution of the MS product in the beta phase was lightyears ahead in terms of stability and usability
    I'm sure you can do better!
    Koen

    Koen,
         Thank you for the detailed feedback about the performance problems you have experienced and your thoughts about features you would like. Let me respond to each of your points
    Performance: We are aware that Catalyst doesn't perform well with large complex files. We have made many performance improvements since the current plublic beta, so you should find Catalyst more responsive with larger projects when the next beta is posted.
    Here are a few things you can do to work around the performance issues you are seeing with the current beta:
    - Consider rasterizing complex elements that don't need to scaled in Catalyst
    - In Catalst turn complex artwork into optimized graphics using the "Convert to optimized graphics" in the float HUD (heads up display panel)
    We have also found that particularly on Windows that Catalyst can run out of memory with large files. This area is also being worked on so stay tuned for the next beta.
    Features:
    - Poor test display [tv] Do you mean the design display doesn't match the appearance of the published project?
    - Poor match with Illustrator file (things seem to be rendered differently!) [tv] we have fixed a lot of bugs here. Expect this to improve a lot in the next beta
    - No hand tool - [tv] coming soon :-)
    - No ability to lock layers [tv] coming soon :-)
    - Cluttered interface (Not enough space for the "stage"or what you call it) [tv] Yes, Catalyst currently cannot dock/undock panels
    - No way to resize Illustrator elements from one of 9 edge/center points [tv] This is also a known limitation. I agree it is useful
    I hope the next beta comes closer to meeting your expectations. A lot of performance work and new features has been done since the last public posting, so look forward to beta II.
    - Ty

  • XI 3.1 SP2 QaaWS Trusted Authentication with WSDL

    Hi, there,
    QaaWS comes with a client tool to build query as a web service and provide corresponding WSDL to consume these services. We are not using Xcelsius, but using Apache Axis to access the query web service via WSDL.
    There's a [note from SMP KB|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3134313434303726] that denoted the support for XI 3.1 SP2 and XI R2 SP5, but without further details:
    "XI 3.1 SP2 and XI R2 SP5 has the enhancement supporting Trusted Authentication but it's for Web Services (dswsbobje), isn't for LiveOffice."
    Our Java code generated from QaaWS WSDL works fine with correct user name and password.  I then setup the system so that trusted authentication works fine with InfoView, but the generate Java code failed to authenticate without providing a correct password.
    There're a few parameters in the dsws.properties file:
    trustedAuthentication.enabled = false
    #qaaws.principal.username=QaaWSServletPrincipal
    #qaaws.principal.password=
    Can someone explain how these parameters (and perhaps settings in the web.xml file for dswsbobje) need to be configured to get Trusted Authentication to work with Web Serivice Java SDK?
    Thanks in advance!
    Dafang Zhang

    I've used LoadRunner for this purpose before.  There is a tutorial that comes with the product.  My suggestion is to go through that and from there you should be able to get it working with enterprise.  I feel that's the best way to get up and running quickly.

  • Issue with WSDL created for sender agreement

    Hi,
    Can you please help me why I am getting the erroe with WSDL that has been created from directory Sener agreement in PI 7.1 EHP1?
    My interface is a SOAP to file ASYNC scenario and we have been given 5 XSDs that are referencing one each other ,5 XSDs are imported successfully and referenced properly,no errors/issues found.
    Created all ESr and directory objects and I tried creating WSDL from sender agreement for my Source/outbound inteface that is created with XSDs in ESR.
    When I try to import WSDL into SOPA UI to validate ,the import process stuck for ever while trying to import "http://www.w3.org/2001/xml.xsd" and finally throws me error.
    After that I tried importing WSDL created in Directory into AltovaXML spy to created the webservice request,I am getting the following error""invalid XML Schema:"xml:lang" is already declared in the schema dcument C:|..my WSDL.
    Even our partner who wants to make Webservice calls using this WSDL,they are not able to develop their Webservices they are getting errors something related to schema not found /not defined etc.
    Please let me know,what might be the issue?I verified several times with my XSD imports and referencing properly and configuration objects.
    Thank you for your help in advance.
    Regards,
    Prem

    Hi Mark,
    I am not getting issue while displaying/Exporting  as WSDL in ESR.I am getting issue while trying import WSDL that is generated out of Service Interface into SOAP UI or Altova XML Spy.
    I don't think PI created the WSDl out of W3 standards.
    This is the error I am getting in XML Spy:
    File C:\Documents and Settings\Prem\Desktop\SI_XYZ_O.wsdl is not valid
         Invalid XML schema: ''xml:lang' is already declared.
              Error location: schema / attribute++
    and in SOAP UI:It is trying to import the WSDL and it stuck for ever while trying to import http://www.w3.org/2001/xml.xsd and never imprts the WSDL into SOAP UI project.
    Please let me know,if you have any ideas.
    Thank you,
    Prem.

  • Help! How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?

    I am a new Indesign user and I have been working with GIMP for the last year creating single colour print-ready PDFs. But now I need to create a document with a FOGRA27 CMYK colour profile and a resolution of at least
    How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?
    I can import the PDF by creating a new document and finding the PDF in places, but it's bad quality.
    The only colour profile I can find under View - Proof Setup is FOGRA39, but I need FOGRA27!
    Help help help, I need to get these files printed in two days!
    Thanks so much..
    xx

    Proof Colors doesn't change the file's color management, it just lets you see what the color values would look like if they are printed unchanged on different output devices. If you want to actually convert the color from one CMYK space to another, it's probably better to do that in Acrobat—Tools>Print Production>Convert Colors.
    There's very little difference between Fogra27 and Fogra39—Fogra27 allows more total ink 350 vs. 330.
    There's nothing you can do to improve the quality of low res images

  • How to generate web services for OAS with wsdl extension

    Hi,
    I wanted to know how to generate web services from Oracle Application Server especially with .wsdl extension and with document/literal style.
    I know that earlier there was a tool called SmartConnect from BEA WebLogic.
    But that will work only with ALSB (Aqua logic Service Bus). I guess that ALSB has been renamed as Oracle Service Bus by Oracle after the acquisition of WebLogic. My question is what is the new name for the SmartConnect Tool from WebLogic, which generates wsdl very easily from Oracle database.
    I am unable to know the new name for SmartConnect and how to download that tool from Oracle web site.
    Also, I want to know, whether there is any other way to generate the wsdl from Oracle, if so, please let me know.
    Regards
    Raman

    Hi Jeethandra,
    Please refere to the below link might be some help.
    [http://help.sap.com/saphelp_mdmgds55/helpdata/en/45/069152856241e1e10000000a1553f6/frameset.htm]
    regards
    shankar

  • Deploy a web service with the deploy tool (J2EE)

    Hi!
    I want to deploy a web service with the Deploy Tool (J2EE 1.4).
    (For info, I'm working on Win 2000.)
    I have the following error when I'm trying to deploy:
    distribute: C:\monHello2\monApp.ear
    Deploy action running...
    Deployment failed on target localhost:4848_server : Fatal Error from EJB Compiler -- jaxrpc compilation exception
    !!! Operation Failed !!!
    Someone can help me, please? What's the problem?
    Other question: when I create the WAR file, I have to add : my interface class, my implementation class, my others java classes, my WSDL file and my mapping.xml file.
    Should I add the .jar that is used by one of my class???? I think yes, but...
    thank you and excuse me for my english... ;o)

    Only primitive types can be returned? Is thatcorrect????
    true - for more details check out section 3.4.1.3 of
    this book which is available for purchase or online
    http://java.sun.com/blueprints/guidelines/designing_w
    ebservices/I meant to say primitive type and "special POJOs" called "JAXRPC Value Types" - check out the reference I listed

  • Wsimport failure as my wsdl import files from different sources

    I have tried to generate java code from wsdl using mtosi 1.1 example I ahve found in the Apache CXF sample.
    For the sake of knowledge wsdl2java of cxf was able to generate everything fine.
    wsimport fails.
    Unfortunately it's a pain to post all the wsdl, because each different WSDL imports other schemas and wsdl separately.
    The example is to be found in the cxf samples dir or at the following url.http://sourceforge.net/project/showfiles.php?group_id=153083
    Does wsimport work when the bindig files and schemas are defined explicitly?
    trying using the -b option with all the binding files and schemas does not change anything.
    This is the main wsdl:
    mtosi_1.1\wsdl\transport\http\ManagedElementMgrSOAP_HTTP.wsdl
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- TMF854 Version 1.0 - Copyright TeleManagement Forum 2005, 2006 -->
    <wsdl:definitions xmlns:tmf854WS="tmf854.v1.ws" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="tmf854.v1.ws" name="TMF854-ManagedElementMgr-SOAP-HTTP">
         <wsdl:import namespace="tmf854.v1.ws" location="../../binding/soap_http/ManagedElementMgrSOAP.wsdl" />
         <wsdl:service name="ManagedElementMgr">
              <wsdl:port name="ManagedElementMgr" binding="tmf854WS:ManagedElementMgrSoapHTTPBinding">
                   <soap:address location="http://127.0.0.1/mtosi/v1/ManagedElementMgr" />
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>I get this message:
    [ERROR] invalid extension element: "soap:header" (in namespace "http://schemas.xmlsoap.org/wsdl/soap/")

    I have posted this issue even in the netbeans issuezilla ( the defect appears in netbeans wizard as well).
    http://www.netbeans.org/issues/show_bug.cgi?id=122505
    from this url you can download the zip file containing the WSDL MTOSI specification I have tried to use.
    Every file contained into the directory I have used the mtosi_1.1\wsdl\transport\http\ is fine.

  • Import button not active on Aperture import tool

    I have a rMBP 15" (early 2013) model, and I was trying to import Aperture library (about 300GB) to Lightroom using import tool.
    However, as I try to Import, Number of Image/video files and Disk space required remained undetermined and Import button has not been active for two hours.
    What can I do? Just wait?

    I too have exactly the same problem (the "Import" button on the Lightroom plug-in to import from Aperture library is not available).
    The import button on the Adobe plug-in tool to import from my Aperture library is not available.  It's greyed out.
    I've tried the "repair permissions" option in Aperture ("Command+Options keys held while starting Aperture.app on my iMac).  Aperture appears to fix the file permissions successfully (no error messages). However, the Adobe Lightroom import tool still shows the "Import" button greyed out.
    I've tried the "repair database" option in Aperture ("Command+Options keys held while starting Aperture.app on my iMac).  Aperture appears to fix the database successfully (no error messages).  However, Adobe Lightroom import tool still fails to show an active "Import" button (still greyed out).
    Finally, I've tried the "rebuild database" option in Aperture ("Command+Options keys held while starting Aperture.app on my iMac).  Aperture appears to rebuild the database successfully (no error messages).  However, Adobe Lightroom import tool still fails to show an active "Import" button (still greyed out)
    The vital statistics for my aperture file are:
      Version: Aperture Library 3.6
      Filename: Aperture Library.aplibrary
      Filesize: 136.08 GB
      # Projects: 403
      # Photos: 27,392
      Permissions:
        myself     Read + Write
        staff         Read
        everyone Read
    This is very frustrating.  Did Adobe rush this import tool out too quickly without adequate testing?
    Adobe, if you are listening please fix this issue with your Aperture import tool ASAP.  Otherwise, I and a lot more users will be asking for our money back on the Creative Cloud plan we selected and are now paying for on a monthly basis!
    Regards,
    Tony

  • Wsdl import list

    I've been using flex's wsdl import feature to generate web
    service client code. It's been working quite well, but I noticed
    that if I checked in my entire project on one pc, then go to
    another pc and update it (im using svn btw), the second pc doesn't
    have the list of wsdls in the the manage web services window. To
    make matters worse, if i try to add the wsdl, it says its already
    added. Does anyone know how I might be able to get flex on the
    second pc to add the wsdl files to the management window
    automatically from an svn update? Thanks!

    Hello!
    I am getting this error, but the above fix does not solve the issue, however I do know what has caused it.
    I have an edmx file in a WCF webservice which feeds a silverlight app.  The edmx is quite complex and a bit fragile, but was working fine up until I introduced our Industry Codes view into the model.  The view is basically { ID, ParentID, Name, ... }.  In my model I have created an association to itself which describes Children(*)/Parent(0/1) so I have a nice and tidy hierarchical structure.  The edmx and the service build without any errors - hurrah!  However, when I update the service reference I then get the below error (and a whole load of others as none of the webservice objects exist anymore):
    Error 21 Custom tool error: Failed to generate code for the service reference 'WCF_ContactAdmin'.  Please check other error and warning messages for details. X:\2008-054 ContactAdmin_Silverlight\Contact2_Admin_Silverlight\Service References\WCF_ContactAdmin\Reference.svcmap 1 1 Contact2_Admin_Silverlight
    When I try the fix mentioned in the link above this error disappears, but then so do all the objects in the datamodel, so I cannot continue from there.
    Having the hierarchical data objects defined in the EDM will make like so much easier in future, any help will be greatly appreciated, thank you!!
    Tim
    Web Developer at Terrapinn

  • Acrobat Pro Crash with Flash Import

    Every time I try to import a Flash file with the Flash tool in Acrobat Pro v9.2.0 it crashes out. i thought it might have been a file size issue but it happens regardless of the size of the file I am trying to import.
    I'm running 10.6.1 on a MacBook Pro which is a year old.

    BSOD's are never good. They point to a problem much bigger and deeper than any software issues.
    When XP came out eleven years ago, people were astonished at how much processor it took to handle the GUI vs Windows 98. Processors an RAM have upgraded a lot since then. It was worse with VIsta, even on newer systems. Seven was a step in the right direction, but I'd guess that your old computer (your words, not mine) isn't up to the task of running Windows 7.

  • Need help with log4j logging tool (org.apache.log4j.*) to log into database

    Hi,
    I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
    log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
    log4j: Level token is [debug].
    log4j: Category root set to DEBUG
    log4j: Parsing appender named "stdout".
    log4j: Parsing layout options for "stdout".
    log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "stdout".
    log4j: Parsed "stdout" options.
    log4j: Parsing appender named "Roll".
    log4j: Parsing layout options for "Roll".
    log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "Roll".
    log4j: Setting property [file] to [HelloWorld.log].
    log4j: Setting property [maxBackupIndex] to [10].
    log4j: Setting property [maxFileSize] to [20KB].
    log4j: setFile called: HelloWorld.log, true
    log4j: setFile ended
    log4j: Parsed "Roll" options.
    log4j: Parsing appender named "CRSDBAPPENDER".
    {color:#ff0000}
    Can't find class HelloWorld{color}
    import org.apache.log4j.*;
    public class HelloWorld {
    static Logger log = Logger.getLogger(HelloWorld.class.getName());
    public static void main(String[] args) {
    try{
    // Now, try a few logging methods
    MDC.put("myComputerName", "Ravinder");
    MDC.put("crsServerName", "ARNDEV01");
    log.debug("Start of main()");
    log.info("Just testing a log message with priority set to INFO");
    log.warn("Just testing a log message with priority set to WARN");
    log.error("Just testing a log message with priority set to ERROR");
    log.fatal("Just testing a log message with priority set to FATAL");
    catch(Exception e){
    e.printStackTrace();
    ------------------------- log4j.properties file ------------------------------
    #### Use three appenders - log to console, file and database
    log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
    log4j.debug=true
    # Print only messages of priority WARN or higher for your category
    # log4j.category.your.category.name=WARN
    # Specifically inherit the priority level
    # log4j.category.your.category.name=INHERITED
    #### stdout - First appender writes to console
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### Roll - Second appender writes to a file
    log4j.appender.Roll=org.apache.log4j.RollingFileAppender
    ##log4j.appender.Roll.File=${InstanceName}.log
    log4j.appender.Roll.File=HelloWorld.log
    log4j.appender.Roll.MaxFileSize=20KB
    log4j.appender.Roll.MaxBackupIndex=10
    log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
    log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### CRSDBAPPENDER - third appender writes to the database
    log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
    log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
    log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
    log4j.appender.CRSDBAPPENDER.USER=sa
    log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
    log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
    log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
    ------------------------------- end of log4j.properties file ------------------------------
    Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
    HelloWorld\bin
    HelloWorld\lib
    HelloWorld\src
    Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
    Thanks
    Ravinder

    try this :
    log4j.appender.PROJECT.Append=false

Maybe you are looking for