Spring in Netbeans Tutorials

Hello,
I'm doing web Development like JSF since last one year. I want to move to Spring Framework (aiming for better career). Can anyone suggest me some guidelines or tutorials how to proceed with Spring Frameworks in Netbeans. I'm sorry if it sounds like a simple and stupid question. Any comments how is the future of Spring Framework will be highly appreciated.
Thank You,
Yuba Raj Devkota

Thank You very much,
By seeing that tutorial only, i planned to switch on Spring Framework. That tutorials is really good but is only one article. It would be better if i get more examples to practice with. Do people who uses Spring Framework uses Netbeans or any other IDE to program? I haven't used any other IDE than Netbeans 6.1 or 6.5. Do i need to change IDE to Ellicpse or JBuilder to learn Spring Web Framework?
Any sort of suggestion will be helpful.
Thank You,
Yuba Raj Devkota

Similar Messages

  • How to Struts and Spring in NetBeans using Jboss

    Hi Every One,
    I have a some basic Knowledge in Struts Spring and Hibernate. I already worked in it with Eclipse IDE in WebSphere Server...
    But Now i want to How to Use Struts Spring and Hibernate in NetBeans using JBoss i need that Folder Structure like that Stuffs
    Can Anybody Help Me for this

    Google

  • Processing of soap message

    some help is required on the SOAP processing
    <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <getPricedAvailability xmlns="http://www.openuri.org/" xmlns:tget="http://www.ba.com/schema/tGetPricedAvailabilityV1">
    <tget:GetPricedAvailabilityRequest>
    <Name>ian</Name>
    ....i need to add a tag name[in between the two tags] <asl>US </asl>
    <age>1234</age>
    </tget:GetPricedAvailabilityRequest>
    </getPricedAvailability>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope
    Can any one suggest or send me the piece of code which does this..
    i tried to add the tag by using the below code but in vain it didn't happen ...it is not adding in between the 2 tags.
    it is adding after <age>.... Can any one help me in this...Is there is any other way of parsing the SOAP message is possible
    SOAPMessageContext smc = (SOAPMessageContext)mc;
    SOAPMessage sm = smc.getMessage();
    SOAPEnvelope env = sm.getSOAPPart().getEnvelope();
    SOAPBody body = env.getBody();
    javax.xml.soap.Name sName;
    System.out.println(" Entering callEndTag #########################################");
    System.out.println("body"+body +" "+"env"+env);
    if ( body != null ){
    java.util.Iterator childElems = body.getChildElements();
    SOAPElement child;
    int i=0;
    // iterate through child elements
    while (childElems.hasNext())
    System.out.println("childElems" +childElems);
    Object elem = childElems.next();
    System.out.println("elem" +elem);
    if(elem instanceof SOAPElement )
    // get child element and its name
    child = (SOAPElement) elem;
    sName = child.getElementName();
    if (sName.getLocalName().equals("getPricedAvailability"))
    childElems = child.getChildElements();
    while (childElems.hasNext())
    // get next child element
    elem = childElems.next();
    if(elem instanceof SOAPElement )
    child = (SOAPElement) elem;
    sName = child.getElementName();
    if (sName.getLocalName().equals("GetPricedAvailabilityRequest"))
    {childElems = child.getChildElements();
                                                   sName = child.getElementName();
                                                   System.out.println("SNAME inSIDE IF  LOOP" +sName);
                                                   System.out.println("If Elem is a) instance ====After");
                                                   if (childElems.hasNext())
                                                      // get next child element
                                                       elem = childElems.next();
                                                       System.out.println("If Elem is a) instance  == before");
                                                      if(elem instanceof SOAPElement )
                                                          System.out.println("If Elem is a) instance ====After");
                                                          System.out.println("before type cast" );  
                                                          child = (SOAPElement) elem;
                                                          sName = child.getElementName();
                                                          System.out.println("Start adding process added end date" +sName);
                                                          SOAPElement fResponse12 =  child.addChildElement(env.createName("EndDate-- ==child ")); 
                                                          fResponse12.addAttribute(env.createName("xmlns"),   
                                                          fResponse12.addTextNode(strEndDate );
    ((SOAPMessageContext)mc).setMessage(sm);

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • JCAPS 5.1.3 Error re-deploying projects in Enterprise Manager

    Hi
    We are having an occasional problem when deploying and enabling JCAPS 5.1.3 projects from Enterprise Manager (see first error below). We've restarted the Logical Host with limited success. Also, we tried recreating the Deployment Profile, again with limited success. The intermittent nature of the problem suggests it's something that is being cached which is refreshed after a while. We haven't tried recreating the Connectivity Map and would like to avoid, if possible.
    Does anyone know what causes the problem? Is there a proper solution? Or a workaround?
    Thanks
    [#|2008-05-20T10:57:52.500+0100|SEVERE|IS5.1.3|javax.enterprise.system.container.ejb.mdb|_ThreadID=20; ThreadName=http28000-Processor3;|MDB00017: [queueFromOasisOPADT_svcTIEOPRouter]: Exception in creating message-driven bean container: [com.sun.enterprise.connectors.ConnectorRuntimeException: The MDB references an unknown resource adapter: dpCS_TESTprjOasisADT#queueFromOasisOPADT_svcTIEOPRouter; (the MDB is com.sun.ejb.containers.MessageBeanContainer:[Name=dpCS_TestprjOasisADT:queueFromOasisOPADT_svcTIEOPRouter]; id isdpCS_TESTprjOasisADT::queueFromOasisOPADT_svcTIEOPRouter; registry of known resource adapters: com.sun.enterprise.connectors.ConnectorRegistry:[Registered connectors: eventmanagement, rajboss, dpCS_TestprjOasisADT#queueFromOasisIPADT_svcTIEIPRouter, dpCS_TestprjOasisADT#svcOASISOP2TIE_queueFromOasisOPADT, rawave, rajndi, rawmq, dpCS_TestprjOasisADT#queueFromOasisOPADT_svcTIEOPRouter, dpCS_TestprjOasisADT#cmOASISIP2TIE_jcdHL7MLLPServer1_queueFro_u002D_109371547, logging, dpCS_TestprjOasisADT#cmOASISIP2TIE_jcdHL7MLLPServer1_esSqlTIE, __xa, rasunone, dpCS_TestprjOasisADT#eaHL7OasisIP2TIE_cmOASISIP2TIE_jcdHL7MLLPServer1, rastcms, dpCS_TestprjOasisADT#eaHL7OasisOP2TIE_svcOASISOP2TIE, raunifiedjms, dpCS_TestprjOasisADT#StartUpConnector, rawl, rastcms453]]|#]
    [#|2008-05-20T10:57:52.500+0100|SEVERE|IS5.1.3|javax.enterprise.system.container.ejb.mdb|_ThreadID=20; ThreadName=http28000-Processor3;|com.sun.enterprise.connectors.ConnectorRuntimeException
    com.sun.enterprise.connectors.ConnectorRuntimeException: The MDB references an unknown resource adapter: dpCS_TESTprjOasisADT#queueFromOasisOPADT_svcTIEOPRouter; (the MDB is com.sun.ejb.containers.MessageBeanContainer:[Name=dpCS_TestprjOasisADT:queueFromOasisOPADT_svcTIEOPRouter]; id isdpCS_TESTprjOasisADT::queueFromOasisOPADT_svcTIEOPRouter; registry of known resource adapters: com.sun.enterprise.connectors.ConnectorRegistry:[Registered connectors: eventmanagement, rajboss, dpCS_TestprjOasisADT#queueFromOasisIPADT_svcTIEIPRouter, dpCS_TestprjOasisADT#svcOASISOP2TIE_queueFromOasisOPADT, rawave, rajndi, rawmq, dpCS_TestprjOasisADT#queueFromOasisOPADT_svcTIEOPRouter, dpCS_TestprjOasisADT#cmOASISIP2TIE_jcdHL7MLLPServer1_queueFro_u002D_109371547, logging, dpCS_TestprjOasisADT#cmOASISIP2TIE_jcdHL7MLLPServer1_esSqlTIE, __xa, rasunone, dpCS_TestprjOasisADT#eaHL7OasisIP2TIE_cmOASISIP2TIE_jcdHL7MLLPServer1, rastcms, dpCS_TestprjOasisADT#eaHL7OasisOP2TIE_svcOASISOP2TIE, raunifiedjms, dpCS_TestprjOasisADT#StartUpConnector, rawl, rastcms453]
         at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.findActivationSpec(ConnectorMessageBeanClient.java:170)
         at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:121)
         at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:174)
         at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:203)
         at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:513)
         at com.sun.enterprise.server.ApplicationLoader.secondPhaseLoad(ApplicationLoader.java:233)
         at com.sun.enterprise.server.TomcatApplicationLoader.secondPhaseLoad(TomcatApplicationLoader.java:120)
         at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:202)
         at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:96)
         at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:211)
         at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:157)
         at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:494)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:448)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:432)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:299)
         at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:107)
         at com.sun.enterprise.admin.server.core.mbean.config.ManagedServerInstance.multicastEvent(ManagedServerInstance.java:3882)
         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 com.sun.enterprise.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:181)
         at com.sun.enterprise.admin.server.core.mbean.config.AdminBase.invoke(AdminBase.java:86)
         at com.sun.enterprise.admin.server.core.mbean.config.ConfigMBeanBase.invoke(ConfigMBeanBase.java:680)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:295)
         at com.sun.enterprise.deployment.phasing.DeploymentService.multicastEvent(DeploymentService.java:341)
         at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:284)
         at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:119)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:74)
         at com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:233)
         at com.sun.enterprise.deployment.phasing.DeploymentService.start(DeploymentService.java:183)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.enable(ApplicationsConfigMBean.java:1603)
         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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:290)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:283)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:295)
         at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:318)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:583)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:173)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
         at java.lang.Thread.run(Thread.java:595)
    |#]

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • JCAPS 5.1.3 on an HP-UX 11iv3 System

    I can't seem to find any documentation indicating that JCAPS 5.1.3 will run on an HP-UX 11iv3 system. I see documentation up thru 11.23. Does anyone out there run this version of JCAPS on an 11iv3 system? If so, have you experienced any problems? Any suggestions on OS settings such as TCP_TIME_WAIT etc etal? Kernel tunables. I apologize for the 1000 questions but we are experiencing performance issues, and we've been changing something here and there trying to get this to work. A specific question would center around java on the HP-UX system ; we appear to be running a version of java out of the /../../logicalhost/jre/bin/IA64N directory. Is this what others are doing?
    Thanks for any help you might be able to provide, or point me to the appropriate documentation.
    Ed Budurka
    [email protected]

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • JCAPS 5.1.3 WS-Security problem

    Hi.
    I'm having trouble calling a web service that requires a User Name Token. We know this worked fine in 5.1.2, but have not gotten it working since upgrading to 5.1.3. When I enable "SOAP Message Securiy" and set the username + password in the Web Service External System the following error appears in the log:
    [#|2007-12-06T09:51:05.946+0100|WARNING|IS5.1.3|javax.enterprise.system.stream.err|_ThreadID=17; ThreadName=Worker: 4;|ERROR:  'NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.'|#]
    [#|2007-12-06T09:51:05.974+0100|SEVERE|IS5.1.3|javax.xml.messaging.saaj.soap|_ThreadID=17; ThreadName=Worker: 4;|SAAJ0511: Unable to create envelope from given source|#]
    [#|2007-12-06T09:51:06.022+0100|WARNING|IS5.1.3|com.stc.wsclient.runtime.ejb.impl.WSClientService|_ThreadID=17; ThreadName=Worker: 4;|Generating CMFault: <?xml version="1.0" encoding="UTF-8"?><Fault xmlns="http://seebeyond/com/xsddefined/FaultMessages"><faultcode xmlns="">CLIENT_ERROR</faultcode><faultstring xmlns="">java.rmi.RemoteException: response handler error: ; nested exception is:
    javax.xml.rpc.JAXRPCException: Error processing SOAP header inside the handleResponse of the message handler: Unable to create envelope from given source: </faultstring><faultactor xmlns="">wsclient</faultactor><detail xmlns="">java.rmi.RemoteException: response handler error: ; nested exception is:
    javax.xml.rpc.JAXRPCException: Error processing SOAP header inside the handleResponse of the message handler: Unable to create envelope from given source: and the associated fault container is not available</detail></Fault>|#]
    I find this very strange, since it worked fine in 5.1.2. Also the service we are calling has not changed its contract because calls using SoapUI with the same configuration as always works fine.
    Thanks in advance for any feedback,
    -Mario

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • JCAPS 5.12 - modifying SOAP header for webservice Invocation

    I am trying to call an external web service from JCAPS 5.1.2 and need to set a token in the SOAP header. I am able to do this in other client implementations, however, the methods to modify the header don't seem to be exposed within JCAPS 5.1.2 or I do not know how to find the methods.
    Has anyone tried this before?

    Hi Experts,
    I'm trying to protect a web service deployed in jcaps 5.1.1, using SAML assertions against an Access Manager 7/7.1, the web services clients are both, web and standalone applications, I also have read netbeans tutorials, that expose how to implement identity webservices using AppServer 9.1 + AccessManager 7.1 using the SAML Holder of key and other security mechanisms, but this implementation requiere modifications to the server.policy file to add support to SOAP message security providers and HttpServlet message security providers, the addition of a library called amwebservicesprovider.jar to the classpath suffix (this library implements the jsr-196 java Authentication Service Provider Interface for Containers) and aditional configuration required in the AM side that is not detailed in the tutorials.
    Could someone guide me on how to protect the acces to a web services deployed in the jcaps logicalhost based on AM roles assigned to users?
    Any help is aprecciated
    Juan

  • I'm lost when I try to figure out what exaclty is Java.... I need your help

    Hi, I know that java is OOP, Multiplatform, etc, etc...
    But when I try to look on google for jobs about java or "learn Java" what "Should I know in java"... I always found... whebshpere, oracle, linux, jboss, glassfish, opensolaris, struts, hibernate, spring, eclipse, netbeans, jidea, and so on!!!...
    I'm lost... I will be sincere ...
    I've started thank for a friend in a world of programming with .NET (ASP.NET SQL .NET Silverlight Windows Server) and was good BUT i feel inside that I prefer Java.
    I don't know why but with java I feel free, i think will be a good technology for a long time.
    But some things make my crazy.
    I cant found a fast path or the right path without getting mess. Like I posted above.
    So I need your help, if You are an advance programmer... tell what Should I learn ( essencially ) to get a good job. Oracle + Java ? linux + oracle + java? websphere + java? eclipse or netbeans?? all thouse things are awesome... but I am a HUMAN... I can't learn thouse all things and less in little time.... I just want to have a good preparation for to start to look a job in early time.
    I look forward yours answers.
    Thanks community.

    vidix wrote:
    Hi, I know that java is OOP, Multiplatform, etc, etc...
    So I need your help, if You are an advance programmer... tell what Should I learn ( essencially ) to get a good job. Oracle + Java ? linux + oracle + java? websphere + java? eclipse or netbeans?? all thouse things are awesome.The answer to that depends on what you want to do at work. I know great developers that never have written a single SQL statement, and I'm always trying to stay away from everything that has a web interface :)
    Decide what you want to do at work, and then figure out what technologies you need to know.

  • Databases in Java

    Do you know how to do a simple database in Netbeans 6.1?
    A simple database that stores names, usernames, passwords.
    Do you know how to do a search by username and password?
    I`m new making databases in Netbeans.

    You need to do some reading of the NetBeans' Tutorials at the NB website. These forums are not NB forums

  • Dataproviders and BLOBs

    Is it possible to use dataproviders to retrieve BLOB data and assign the bytes to a byte[]?
    Sun/Netbeans examples use a non-dataprovider way of doing this, and I'd like to know if it can be done (dataproviders are nicer to develop with after a while)
    I can't seem to get it to work For example the code below won't give the desired result:
    byte[] imageBytes = ApplicationBean1.getUserimagesDataProvider().getValue("userimages.imagebytes", rk).toString().getBytes();
    The String value of imageBytes is a 9 character string, NOT the actual BLOB data. Hence why ask this question.
    TIA

    Thank you for your response. The link you have provided is useful and demonstrates the result I need.
    But it's another example of a "non-dataprovider" way to do this. It uses DriverManager instead of dataproviders. I can use DriverManager if I have to (I've used it many times before), but the rest of my app uses dataproviders and I want to keep things consistent.
    Dataproviders are encouraged in the Creater/Netbeans tutorials and I want to know if the example you've given (DriverManager resultset in the DisplayImage servlet) can achieve the same result using a dataprovider (i.e. replace DriverManager with a dataprovider approach in the DisplayImage servlet).
    That's what I'm doing right now... it's exactly like your example, except instead of a resultset, within a servlet I'm using a dataprovider to retrieve the BLOB. At this stage... I've been able to retrieve everything other that BLOBs from dataproviders, and I want to know if it's actually possible to do so.

  • Using calculated properties of an entity

    Hi all,
    I am having some serious trouble in finding out how this works. Maybe I'm not Googling correctly, but I have spent many hours already on this problem and I'm not getting anywhere. I am also reasonably sure I have checked out all the Netbeans tutorials on this matter, but alas. So I guess, I could do with some help.
    This is really a basic (beginner?) question about persistence. As a side note: I am using Netbeans 6.7
    I am running a database and all my tables have corresponding entity classes. I have a GUI in which I want to display a table from the database, together with some calculated values.
    I'll make the setup as simple as possible. Take the simple database created by
    CREATE DATABASE administration;
    USE administration;
    CREATE TABLE customers (
      id INT NOT NULL AUTO_INCREMENT,
      firstname VARCHAR(50) NOT NULL,
      surname VARCHAR(50 NOT NULL,
      PRIMARY KEY(id)
    ) ENGINE=INNODB;
    INSERT INTO customers (firstname, surname)
      VALUES ('John', 'Adams'), ('Caroline', 'Nixon')Based on this database, Netbeans creates an entity class
    @Entity
    @Table(name = "customers")
    @NamedQueries({
      @NamedQuery(name = "Customers.findAll", query = "SELECT c FROM Customers c"),
      @NamedQuery(name = "Customers.findById", query = "SELECT c FROM Customers c WHERE c.id = :id"),
      @NamedQuery(name = "Customers.findByFirstname", query = "SELECT c FROM Customers c WHERE c.firstname= :firstname"),
      @NamedQuery(name = "Customers.findBySurname", query = "SELECT c FROM Customers c WHERE c.surname= :surname")})
    public class Customers implements Serializable {
      @Transient
      private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
      private static final long serialVersionUID = 1L;
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Basic(optional = false)
      @Column(name = "id")
      private Integer id;
      @Basic(optional = false)
      @Column(name = "firstname")
      private String firstname;
      @Basic(optional = false)
      @Column(name = "surname")
      private String surname;
      // CONSTRUCTORS
      // GET AND SET METHODS
      // A FEW SIMPLE @override METHODS
      public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
      } public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }Now, using the Netbeans GUI tools I create a JTable with values bound to Customers. This works fine: the apllication reads the database and displays correct values in the table (however, externally making a change in the database is not updated in the table, nor are changes in the table sent to the database, but that is a different matter - gonna work on that after this).
    The next step is creating a calculated property, say "private String adressee" which is calculated by Java code the be for example "C. Nixon" or "J. Adams". (*This is my question: what is the correct way of implementing something like this, so that it is updated in the table when firstname or surname are altered*?) Now the problems start. Simply defining this property gives errors, because it is automatically interpreted as a persistent value. So the apllication does an SQL query interpreting 'adressee' as a column, which of course results in an error. Alternatively, I can define 'adressee' as @Transient. Now, the application compiles and runs, but 'adressee' is never updated in the table. Note that I update it manually: that is, I have the program listen to PropertyChange for surname and firstname, and the generate the correct value for adressee. This works, but is not reflected in the table. I have also tried to refresh() the JTableBinding when a PropertyChange occurs, but this returns a NullPointerException. Moreover, even if that should work, I am convinced there must be a way more elegant method.
    I anyone would be so kind as to enlighten me, please do!
    Greets

    Somehow, retrying my first technique worked. Maybe it is because I am now using Hobernate, set to Eager (not Lazy, which gave me compiling errors!). For future reference, here is how I did it.
    The MySQL table is called 'relaties'. 'contactpersoon' is a value which I want to calculate from several other values from this table and its related tables.
    I use Netbeans to create entity classes from database. One of which is Relaties:
    @Entity
    @Table(name = "relaties", catalog = "TK", schema = "")
    public class Relaties implements Serializable {
      @Transient
      private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
      private static final long serialVersionUID = 1L;
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Basic(optional = false)
      @Column(name = "id")
      private Integer id;
      // AND MANY OTHER COLUMNS, THE USUAL ENTITY CODE
      @Transient
      private String contactpersoon;
      public String getContactpersoon() {
        return contactpersoon;
      public void setContactpersoon(String contactpersoon) {
        String oldContactpersoon = this.contactpersoon;
        this.contactpersoon = contactpersoon;
        changeSupport.firePropertyChange("contactpersoon", oldContactpersoon, contactpersoon);
      public void genContactpersoon() {
        // calculation code - note that I had to catch NullPointerExceptions for Columns without @Basic(optional = false)
        this.setContactpersoon(s);
      public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
      public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }I now make another class, in which I put everything I think Relaties should do itself, but I can't put in there because of compilation errors (my bad?):
    public class RelatiesHelper implements PropertyChangeListener {
      public void init(Relaties r) {
        r.addPropertyChangeListener(this);
        r.genContactpersoon();
        r.genAdressering();
      public void propertyChange(PropertyChangeEvent evt) {
        if (evt.getPropertyName().equals("achternaam") || evt.getPropertyName().equals("tussenvoegsels") || evt.getPropertyName().equals("voornaam") || evt.getPropertyName().equals("titel")) { // these are column titles of the properties on which 'contactpersoon' depends
          ((Relaties) evt.getSource()).genContactpersoon();
    }I now made a class ViewRelaties, which includes a JTable. The values of this JTable can now be bound in the usual way, including 'contactpersoon':
    public class ViewRelaties
            extends javax.swing.JPanel {
      /** Creates new form ViewRelaties */
      public ViewRelaties() {
        initComponents(); // code to create table and initialize a Relaties-list, bind values etc.
        ListIterator<Relaties> l = this.relatiesList.listIterator();
        RelatiesHelper rh = new RelatiesHelper();
        while (l.hasNext()) {
          rh.init(l.next());
      // THE initComponents() CODE
      private javax.persistence.EntityManager AdminPUEntityManager;
      private javax.persistence.Query relatiesQuery;
      private java.util.List<admin.entities.Relaties> relatiesList;
    }Hope this helps someone :)
    Edited by: Quinten1 on Aug 1, 2009 5:21 AM

  • Spring Frame Work with NetBeans 6.9 . I need for your helping !

    I want to make page other than index page with spring can you help me to make web page in spring ?

    no, you're beyond help if you can't find the documentation and tutorials that ship with Spring.

  • Tutorials on Spring & Hibernate

    Hi All
    i want to know some good turorials on Spring and Hibernate from you all. i searched the net but i am unable to get any good materials on these topics especially Spring.can you please let meknow any good online tutorials on these topics as i am very new to these topics.
    i hope you will help me in this matter. waiting for a positive reply from your side.
    Regards
    Vikeng

    Google "spring tutorial" and "hibernate tutorial". You'd have to be an idiot not to find a bunch of them. Avoid the roseIndia tutorials, though, they seem to be written by people who have never actually done what they're tutoring in production, but just a digest of other tutorials

  • Questions about Access Manager tutorials available in netbeans site

    Hi
    Thank you for reading my post
    I have some questions about two tutoral which i find in :
    http://www.netbeans.org/kb/55/amsecurity.html and
    http://www.netbeans.org/kb/55/amsecurity-liberty.html
    here is my problem :
    we have some web services, now we want to have authentication applied for consumer who try to access our web services.
    we need to have most possible flexibility because we may deploy the server for a customer with an already established Identity database ( Database Table with user details)
    Also we need to have Transport level security using SSL.
    I read and studied both of them and now i have some questions :
    -I think Securing Web Services Using the SAML or UserNameToken is what we need for authentication and autorization of web service consumers?
    is that right?
    -Does Sun Java System Access Manager provide flexibility to authenticate user/password with a database table content?
    -How we can apply roles in Sun Java System Access Manager when we authenticate users ?
    Thanks

    Imagine that we want to have an end to end security for our web services
    we thought that we could use message level encryption to protect the soap message and also we should protect our web services from un-authenticated acess,
    we will use userName token for this.
    Our customer has large database which contains many user/password and role of those users.
    some of web services should be available to higher role (manager) and not for all users.
    so we should check a user role before we allows him/her to access a web service.
    my question is whether Sun Access manager can help us with this? or there are other configuration or packages that we should apply to have this feature.
    to explain more :
    our client side is a swing application, users enter username/password to login into system. after they loged in, we send user/pass every time user want to request some data from some services. (is it good to send user/pass every time?)
    We want Sun Access Manager to handle users authentication .
    We also need to handle role related authorization, can Sun access manager handle this?
    Thanks

  • Problem with JNI on netBeans

    Hi !
    After a search on the forum, I request your help about a little JNI app developped to work with a 3D sensor. The research team in which I work use to working with Eclipse IDE, and this JNI appliation work on it. However, impossible to find a way on NetBeans... I get an exception :
    Exception in thread "main" java.lang.UnsatisfiedLinkError:
    materiel.videoproj.JNIsiapp.SiInitialize()I
    at materiel.videoproj.JNIsiapp.SiInitialize(Native Method)
    at materiel.videoproj.JNIsiapp.main(JNIsiapp.java:138)
    It seems the IDE get the DLL (if I change the name in the loadLibrary method, the exception change) but encounter an error with the native method.
    The application (source code + dll + java code) could be find on ftp :
    ftp://ftp-us.3dconnexion.com
    login: jni
    password: dev1221
    Please help me too find a way !
    FloDeTours

    Library loading seems to continue to be a problem. There are two things to consider. First if you wrote the C/C++ code (like in the tutorials) then you compile it into a dll. This is the only dll you have to worry about. It will get loaded by your Java code using loadLibrary.
    This method is going to look for the dll on the path java.library.path. If you don't set this, it is equal to the system path. I like to keep everything inside my project so I put alll dlls in a directory off my project root called "native". So I set java.library.path to "native". In any case it should point to the location of the dll if it is not on the system path.
    Second if you have a 3rd party dll then you also have a JNI dll. The JNI dll is the one that loadLibrary loads, so the above applies to it. The third party dll is loaded on the C/C++ side, which know nothing about java.library.path. I only knows system path. This means that the location of this dll must be in that path. You can add the location to the system path permanently or use the IDE project setting to add it only inside the project scope.
    When you deploy the app you will need to supply the various path settings in the launching code.
    Jim

Maybe you are looking for