Servlet with JBOSS

how do i run a servlet program in eclipse using JBOSS ?

JBoss is a company name, like Sun and Apache. So I have no clear idea what JBoss product you´re talking about. The AS maybe?
Anyway, you may find the Sun Java EE tutorial useful. Servlets are covered in part II: [http://java.sun.com/javaee/5/docs/tutorial/doc/]. For tutorials about creating and running Servlets in Eclipse just use our almighty friend.

Similar Messages

  • How to run a servlet with jboss

    Hello everybody my name is Noe I'm new in the forums . I want some information about how to configure and run a servlet and a jsp for the jboss server . Please help me, I have about 4 days searching information about this, and there is few information or the tutorials that I read were insuficient. I need one tutorial step by step or someone that explain me how to do this. Please help me with this
    Thank's a lot.

    Which error do you get!
    If you just want to run jsps and servlets the you should use tomcat instead of jboss.
    jboss is an aplication server that uses tomcat and adds an EJB container.
    usually you use a build.xml file to run deployment scripts but if not, then you can manually copy the project folder into the jboss --> instance ---> web zone (I said this way because I dont remember the exactly folder)
    Another thing is that you must have the project estructure built on the correct way defined by the estandar. I mean the WEB-INF folder, the web.xml file, the classes folder, etc.
    next time yo may consider to post this on the j2ee section.
    a web.xml file.
    What problem do you exactly have when doing this, you cant ask for a tutorial step by step, but punctual things. Try it and if you cant then ask.

  • How do you use Struts with Jboss Portal

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    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.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

    I am trying to use strust with jboss portal but I am getting the following error:
    An error occured while rendering window 'default.MyPortlet2.myportlet2Window'
    org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71 68: List searchresult = (List) request.getAttribute("searchresult"); 69: %> 70: Stacktrace:
    I am getting this is in the log file
    Caused by: org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/SearchResultPage.jsp:71
    68: List searchresult = (List) request.getAttribute("searchresult");
    69: %>
    70: <%
    71: for (Iterator itr=searchresult.iterator(); itr.hasNext(); )
    72: {
    73: testPackage.net.dao.hibernate.WorkList workList = (testPackage.net.dao.hibernate.WorkList)itr.next();
    74: %>
    Stacktrace:
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.ja
    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.jboss.portal.server.servlet.CommandFilter.doFilter(CommandFilter.java:65)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
    at org.jboss.portal.portlet.impl.jsr168.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.ja
    ... 238 more
    Caused by: java.lang.NullPointerException
    at org.apache.jsp.WEB_002dINF.jsp.SearchResultPage_jsp._jspService(SearchResultPage_jsp.java:152)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    ... 255 more

  • UploadBean with JBoss Problem

    Dear Experts
    I am currently creating a web page which allows the customers to upload csv file.
    I serached through the net and found that people are using "UploadBean" for this thus I downloaded the uploadbean jar file and imported it to my Jboss library.
    My jsp code is :
    <%String uploadDir = "C:/EVS Temp";%>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=uploadDir%>" />
    </jsp:useBean>Followed by a save button.
    But I got the error message like this:
    An error occurred at line: 27 in the jsp file: /meter/meter_uploadMeterList.jsp
    javazoom.upload.UploadBean cannot be resolved to a type
    26: <%String uploadDir = "C:/EVS Temp"; %>
    27: <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
    28:   <jsp:setProperty name="upBean" property="folderstore" value="<%=uploadDir%>" />
    29: </jsp:useBean>
    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)I understand that this uploadBean problem has been asked many times. But I dont think those answers can solve my problem as they was not using JBoss.
    On the Uploadbean Support site, they said uploadbean is not tested with JBoss.
    http://www.javazoom.net/jzservlets/uploadbean/documentation/software.html
    Any idea for this?
    Thanks alot.

    Drop your ear into JBOSS_HOME\server\defaultJBOSS_HOME\server\default\deploy that is. Also the webapp must have a context root set up so that you can access it through
    http//localhost:8080/myContextRoot/myPage.jsp
    The context root is specified in the application descriptor, for instance something like
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
    <display-name>PublicationBase2EAR</display-name>
    <description>Application description</description>
    <module>
    <web>
    <web-uri>war-ic.war</web-uri>
    <context-root>PubAdmin</context-root>
    </web>
    </module>
    <module>
    <ejb>ejb-jar-ic.jar</ejb>
    </module>
    </application>
    Hope this helps,
    [email protected]

  • Integrate JDeveloper with JBoss

    Hi. We're using JDeveloper 10.1.3.4 and need to integrate it with JBoss 4.2.3 so we can deploy servlets directly to the server and do breakpoints and debugging. Your help is appreciated. Thanks.

    You can define a connection to your JBoss server inside JDeveloper and then deploy directly to it from inside JDeveloper.
    You can also set your project to use remote debugging and start JBoss in remote debug mode to debug your code as it is running there.
    You can use tools->external tools to add a toolbar buttons that will start/stop the JBoss server.

  • Oracle Communicator With Jboss AS

    I´m trying to instal OCMS with JBoss App Server. All installation finish well, but when i try to run the application server it cant start rigth and always show me this Exception:
    2007-08-30 15:00:28,475 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.sdp.locationdbservice.LocationDbServiceBD
    2007-08-30 15:00:28,475 ERROR [STDERR]      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
    2007-08-30 15:00:28,475 ERROR [STDERR]      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
    2007-08-30 15:00:28,475 ERROR [STDERR]      at
    And in the end ........
    Caused by: java.lang.NullPointerException
         at oracle.sdp.registrar.RegistrarServlet.init(Unknown Source)
         at oracle.sdp.registrar.VoipRegistrarServlet.init(Unknown Source)
         at javax.servlet.GenericServlet.init(GenericServlet.java:211)
         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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
         at $Proxy60.init(Unknown Source)
         at oracle.sdp.sipservletengine.impl.SipApplicationImpl.instantiateSipServletsAndCallInit(Unknown Source)
         at oracle.sdp.sipservletengine.impl.SipApplicationImpl.start(Unknown Source)
         at oracle.sdp.sipservletengine.impl.ApplicationManagerImpl.startApplication(Unknown Source)
         ... 69 more
    2007-08-30 15:00:28,616 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@1b0a98d7{ url=file:/C:/programas/jboss-4.0.5.GA/server/default/deploy/proxyregistrarear-4.1.0-723.ear, deployedLastModified=0 }
    org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.NullPointerException)
    This should be really easy, but the thing is it isnt working. this sucks!
    Any body has installed it and got it working ??

    Hi Mauricio,
    I installed OCMS in JBOSS AS 4.0.5.GA installation mode.I m facing the same problem on ocms startup, i.e., proxyregistrar war file is not deployed properly. OCMS not working properly with JBOSS AS 4.2.1 GA and JBOSS AS 4.2.2 GA too i.e., OCMS MBeans are not shown in the jmx-console page and the oc is not getting connected to the ocms, traffic.log file shows that application proxyregistrar is not found. Please help me out in solving this issue.
    Regards,
    Harini Dhanasekaran.

  • Spring-jmx enabled with Jboss getting Exception

    Hi all,
    I am using JMX with Jboss ,
    I am getting follwing error frequently please help me.if i re-start the server this problem will not be ther.
    exception
    javax.servlet.ServletException: Failed to invoke operation
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:269)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    javax.management.MBeanException: RuntimeException thrown in
    RequiredModelMBean while trying to invoke operation reloadSuscriberOptions
    javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1090)
    javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:954)
    org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
    org.jboss.mx.modelmbean.RequiredModelMBeanInvoker.invoke(RequiredModelMBeanInvoker.java:127)
    org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
    org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
    org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken
    antlr.CharScanner.makeToken(CharScanner.java:173)
    org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
    org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
    org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
    antlr.TokenBuffer.fill(TokenBuffer.java:69)
    antlr.TokenBuffer.LA(TokenBuffer.java:80)
    antlr.LLkParser.LA(LLkParser.java:52)
    org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:139)
    org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:248)
    org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
    org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
    org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
    org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
    org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
    org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
    org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:59)
    org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
    org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:103)
    sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:346)
    $Proxy79.createNamedQuery(Unknown Source)
    sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    org.springframework.orm.jpa.JpaTemplate$CloseSuppressingInvocationHandler.invoke(JpaTemplate.java:394)
    $Proxy79.createNamedQuery(Unknown Source)
    org.springframework.orm.jpa.JpaTemplate$11.doInJpa(JpaTemplate.java:334)
    org.springframework.orm.jpa.JpaTemplate.execute(JpaTemplate.java:185)
    org.springframework.orm.jpa.JpaTemplate.executeFind(JpaTemplate.java:152)
    org.springframework.orm.jpa.JpaTemplate.findByNamedQuery(JpaTemplate.java:332)
    org.springframework.orm.jpa.JpaTemplate.findByNamedQuery(JpaTemplate.java:328)
    aero.sita.voyager.servicecontainer.persistence.PersistenceManagerImpl.findByNamedQuery(PersistenceManagerImpl.java:198)
    please help me

    Hi,
    we've a spring-webapp in a tomcat using jmx via org.springframework.jmx.export.MBeanExporter, and are facing the a similar problem.
    java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast to antlr.Token
         at antlr.CharScanner.makeToken(CharScanner.java:173)
         at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
         at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
         at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
         at antlr.TokenBuffer.fill(TokenBuffer.java:69)
         at antlr.TokenBuffer.LA(TokenBuffer.java:80)
         at antlr.LLkParser.LA(LLkParser.java:52)
         at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:139)
         at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:248)
         at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
         at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
         at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
         at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)

  • StackOverflowError when running with JBoss

    Hi all,
    i am running JBoss (Java 1.6) in windows environment.
    i have a table with a field of length 250 characters. there is a record exists with 250 characters too in that table.
    Through JBoss in windows environment, i am peforming query on that table.
    i am querying that table by passing the field with 200 characters followed by *(asteric). when i run the query i am getting an "Stack over flow error". see the error.
    how i query the record.
    also if i give few characters(30) followed by * (asteric), i am fetching records as well. for bulk characters like(150 or above) it is showing the below error.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    *     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)*
    root cause
    java.lang.StackOverflowError
    *     org.apache.oro.text.regex.OpCode._getOperand(Unknown Source)*
    *     org.apache.oro.text.regex.Perl5Matcher.__repeat(Unknown Source)*
    *     org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)*
         org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
    org.apache.oro.text.regex.Perl5Matcher.__match(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.__tryExpression(Unknown Source)
    org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source)
         org.apache.oro.text.regex.Perl5Matcher.matches(Unknown Source)
    Please help me on this.
    JMR

    jv**** wrote:
    thanks for the quick response.
    I am using "org.apache.oro.text.regex.Perl5Matcher only in the coding part. But i dont have document to verify the restrictions to pass values. in my case, i have to pass argument value as 200-250 characters.
    through jboss(run.bat) file i am running the tomcat. i configured build.properties file with jboss/mysql.
    Please corect me i am wrong
    thanks
    JMRThe fist step would be to find the API docs for those classes that you are using so you can check what they allow. In general you should refuse to write code using classes that you don't have documentation for.

  • JWSDP with JBoss

    Does JBoss support JWSDP (JAXP-RPC, WDSL, etc.)?

    Hi,
    JBOSS is only the EJB engine who are using.
    JWSDP depends on the servlet/jsp engine you'll switch infront of JBOSS.
    So if you can successfully connect JWSDP (--> Tomcat4.10) with JBOSS - what I guess is possible - you can use JBOSS with JWSDP.
    We are using JWSDP for example with BES5.1.
    Olver

  • How can i deploy a servlet with eclispe

    Hello,
    will any one of u give me the steps to deploy a servlet with eclipse on portal server(J2EE Engine),
    in help of eclipse they given as, whole webapplication deployement, but that is also giving me a error, the procedure they given is, once we created a .war file for our servlet project we need to refer this to a .Ear file, and then this Ear can be deployed in to the server. Is it the same and only procedure to deploy a servlet with eclipse, or if there is any other method,please give me the steps also.
    when i am deploying with the .Ear file, it is giving the error as,
    Jun 4, 2005 11:34:31 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !
    but the sdm is working on the server with the same host, and local deployement is also done successfully, but from my system im not able to deploy!
    Thanks&Regards,
    Sireesha.

    Yeah, i am able to see the J2EE engine clusters, there the message server port is given as 3601. becoz scs instance number is 1 here. so it is not the problem,
    the error it is giving as,
    Jun 6, 2005 11:37:28 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : obtdev9
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/sireesha.b/LOCALS1/Temp/temp56446MyServletEAR.ear
    Deployment exception : Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
    Inner exception was :
    Server obtdev9 did not accept login request as apiadmin on port 50018 - CmdXmlFactory could not find Top Element within String: "null".
    is this may be the problem with port number?
    i am not knowing what is happening here...
    if you know the exact error based on the error messgae please help me,
    thanks to u for helping in this problem,
    Regards,
    sireesha.

  • OIM installation with JBoss 4.2.3GA

    Hello..
    I have installed OIM 9.1.0.1 with JBoss 4.2.3GA. And getting the following error when access the http://localhost:8080/xlWebApp
    INFO [TomcatDeployer] deploy, ctxPath=/xlScheduler, warUrl=.../tmp/deploy/tmp21688xlScheduler-exp.war/
    INFO [WEBSTARTUP] Start the Scheduler on server startup : true
    INFO [WEBSTARTUP] SchedulerInitServlet/initializeScheduler method reads data from TSK/TSA tables and initialize Quartz scheduler with the task and trigger details
    ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: jdbc not bound]
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1215)
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:758)
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:774)
    ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
    ERROR [STDERR]      at javax.naming.InitialContext.lookup(InitialContext.java:392)
    ERROR [STDERR]      at com.thortech.xl.util.DirectDB.getDataSource(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.common.SchedulerUtil.getManagedConnection(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.initializeScheduler(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.startScheduler(Unknown Source)
    ERROR [STDERR]      at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.init(Unknown Source)
    ERROR [STDERR]      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    ERROR [DATABASE] Class/Method: DirectDB/getConnection encounter some problems: Error while retrieving database connection.Please check for the follwoing
    Database srever is running.
    Datasource configuration settings are correct.
    java.lang.NullPointerException
         at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
         at com.thortech.xl.util.DirectDB.getConnection(Unknown Source)
         at com.thortech.xl.scheduler.common.SchedulerUtil.getManagedConnection(Unknown Source)
         at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.initializeScheduler(Unknown Source)
         at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.startScheduler(Unknown Source)
         at com.thortech.xl.scheduler.deployment.webapp.SchedulerInitServlet.init(Unknown Source)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4071)
    please help me resolve this issue. Thanks in advance

    Hi,
    The server started with some errors.
    INFO [WEBSTARTUP] SchedulerInitServlet/initializeScheduler method reads data from TSK/TSA tables and initialize Quartz scheduler with the task and trigger details
    ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: jdbc not bound
    Oracle DB is running fine. But not sure on how to verity the connectivity between the OIM and the database. Some more hints would be helpful
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Ear file  cant be deployed from  eclipse with jboss 3.2.7

    I am using eclipse with JBOSS IDE1.5
    I want to work with EJB in eclipse. I have created configured all neccessary directory structure , xml files and jar,war,ear files(using XDoclet Configureations).
    But i am not able to deploy my "ear" file . At that time i am getiing following message in JBOSS Console.
    16:48:41,937 INFO [EARDeployer] Init J2EE application: file:/F:/jboss-3.2.7/server/default/deploy/FiboApp.ear
    16:48:42,421 WARN [verifier] EJB spec violation:
    Bean : Fibo
    Section: 22.2
    Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote home interface, if any, in the <home> element.
    Info : Class not found on 'tutorial.interfaces.FiboHome': No ClassLoaders found for: tutorial.interfaces.FiboHome
    16:48:42,453 WARN [verifier] EJB spec violation:
    Bean : Fibo
    Section: 22.2
    Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote interface, if any, in the <remote> element.
    Info : Class not found on 'tutorial.interfaces.Fibo': No ClassLoaders found for: tutorial.interfaces.Fibo
    16:48:42,453 WARN [verifier] EJB spec violation:
    Bean : Fibo
    Section: 7.10.1
    Warning: The session bean must implement either a remote home and remote, or a local home and a local interface.
    Any suggestions or remarks will be greatly appreciated
    Thanks in advance
    satheesh

    Atlast it worked. The problem was that in my ejb-jar.xml I was referring to 2_0.dtd. I have changed that to 2.1 and it worked.
    Older ejb-jar.xml had:
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "C:/jboss-4.0.1sp1/docs/dtd/ejb-jar_2_0.dtd">
    I changed that to:
    <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    And it worked.
    -Sathish

  • Problem in Blazeds with Jboss Clustering ( Mod_JK with SSL )

    Hi,
         We are running our flex application in jboss clustering environment with the help of Apache mod_jk(Apache Web server as front end with mod_ssl enabled). We are using the SecureAMFChannel as we deploy the application in SSL. We use the RemoteObject for communicating with Java.
    The Application is running fine when we have only one node of JBoss. But once we add one more node to the cluster the application throws the following exception .
    Duplicate HTTP-based FlexSession error: A request for FlexClient 'FDCA49A7-9317-4D8A-881F-9248B1136E7A' arrived over a new FlexSession 'C9C563B8266A03C2207C00796CD7DFF1', but FlexClient is already associated with  FlexSession '8A328320F5C530D55E94568996A1B552', therefore it cannot be associated with the new session.
    As I am maintaing the session in the server, I need to use the JBoss cluster for session replication. I heard that flex clustering is not needed as we have mod_jk and it will do all the stuff for us.
    I checked with simple application without any session data also then too I faced the same problem.
    After the very first login, I can see 2 session created simultaneously and destroyed. I checked the application whether it calls twice before the session is created, but it is calling only once.
    Also when application connects with server2 and if I down the server2 my flex application throws the error that the server is not found, It is not detecting the other server.But it works once I refresh the browser.
    Application Environment Details
    JBoss 6
    Blaze Ds 4.5
    Apache Web server 2.2.21
    Mod_JK   1.2.32
    Mod_SSL 2.8.31
    Thanks,
    Suresh T
    I enabled the sticky session in Mod_jk .
    It is working when the connection is not secure(http) in both apache web server and jboss web server ). But when the connection is https the above problem is happening .
    Message was edited by: suresh.thirumurugan

    Hi,
     Thanks for your info.
      It worked for me as well.
    Thanks,
    Prasad
    On 6/26/08,
    Matthieu Labour <
    [email protected]> wrote:
    A new message was posted by Matthieu Labour in
    Configuration and Getting Started Discussion --
      Problem with configuring BlazeDS with JBOSS
    You might want to download the following tutorial
    http://sebastien-arbogast.com/2008/04/10/flex-spring-and-blazeds-the-full-stack/
    it works on jboss
    Best
    Matt
    View/reply at
    Problem with configuring BlazeDS with JBOSS
    Replies by email are OK.
    Use the
    unsubscribe form to cancel your email subscription.

  • Install OIM 9.0.2 on Linux with JBOSS or OAS 10.1.3.1

    Hi all,
    I try to install OIM on RHEL 4 update 3 .
    First I installed OIM 9.0.2 in Oracle 10.2.0.1 with JBOSS and I obstacled with errors during compilling adapters of OEBS and OID from Connectors Pack.
    After that I desided to install OIM in existing Oracle 10.2.0.1 on OAS 10.1.3.1 during installation I obstacle with follow error "Oracle Identity Manager installer has found that Oracle Application Server is not running. So, start Oracle Application Server and then proceed with installation."
    I tested my OAS and I's starting
    Please give me advise about my abilities with installation OIM 9.0.2 on Linux.

    For JBOSS I use
    ./java -version
    java version "1.4.2_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
    For OAS 10.1.3.1 I use
    ./java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    After all, I installed OIM 9.0.2 on OAS 10.1.3.1 but I have same problems which I have with JBOSS installation:
    1. I have warnings during import xml files of adapters such as
    OID User
    [Warning] Warn:Target has more recent definition.
    Lookup.OID.Department
    [Warning] Warn:Target has more recent definition.
    Lookup.OID.Location
    [Warning] Warn:Target has more recent definition.
    UD_OID_ROLE
    [Warning] Warn:Target has more recent definition.
    adpOIDADDUSERTOGROUP
    [Warning] Warn:Target has more recent definition.
    AttrName.Prov.Map.OID
    [Warning] Warn:Target has more recent definition.
    com.thortech.xl.dataobj.tcUD_OID_ROLE
    [Warning] Warn:Target has more recent definition.
    com.thortech.xl.dataobj.tcOBJ
    [Warning] Warn:Target has more recent definition.
    etc ...
    2. I have errors during compilling adapters in Design Console, It's error such as ""CODE GEN EXCEPTION" "

  • Oracle Apps Adapter with jboss

    Hi,
    I'm using BPEL 10.1.2 with JBoss and I'm having trouble getting the Apps Adapter to work. I've tried configuring AppsAdapter-ds.xml in the deploy directory but I get the error message below when I invoke the process. Basically, the connection URL is invalid ? Looks ok to me, am I missing something. All the doco, even that with JBoss only talks about oracle BPEL engine. Not particularly helpful.
    matt.
    13:42:22,835 INFO [STDOUT] <2006-02-06 13:42:22,835> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/C:/development/orabpel_jboss1012/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/OracleDev11.wsdl [ OracleDev11_ptt::OracleDev11Select(OracleDev11Select_inparameters,ArCustomersCollection) ] - Using JCA Connection Pool - max size = <unbounded>
    13:42:23,788 INFO [STDOUT] <2006-02-06 13:42:23,788> <ERROR> <default.collaxa.cube.ws> <Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory acquireClientSession> unable to build the TopLink Session
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <ERROR> <default.collaxa.cube.ws> <Database Adapter::Outbound> <oracle.tip.adapter.db.DBInteraction executeOutboundRead> unable to execute the NamedQuery: BPELProcess1.ArCustomers.OracleDev11Select
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/C:/development/orabpel_jboss1012/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/OracleDev11.wsdl [ OracleDev11_ptt::OracleDev11Select(OracleDev11Select_inparameters,ArCustomersCollection) ] - Could not invoke operation 'OracleDev11Select' against the 'Database Adapter' due to:
    ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore.
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. orabpel/system/app
    server/jboss/server/default/deploy/DbAdapter-ds.xml) and restart the server. Caused by Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
    Exception Description: java.sql.SQLException: Invalid Oracle URL specified
    Internal Exception: java.sql.SQLException: Invalid Oracle URL specified
    Error Code: 17067.
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Outbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to see full error stack
    13:42:23,804 INFO [STDOUT] <2006-02-06 13:42:23,804> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/C:/development/orabpel_jboss1012/domains/default/tmp/.bpel_BPELProcess1_1.0.jar/OracleDev11.wsdl [ OracleDev11_ptt::OracleDev11Select(OracleDev11Select_inparameters,ArCustomersCollection) ] - Rolling back JCA LocalTransaction
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <PCException::<init>> JMS connection factory lookup failed.
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <PCException::<init>> Please verify the JMS configuration.
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <DefaultDataRouter::send> JMS connection factory lookup failed.
    13:42:23,976 INFO [STDOUT] <2006-02-06 13:42:23,976> <ERROR> <default.collaxa.cube.sensor> <DefaultDataRouter::send> Please verify the JMS configuration.

    I don't know if this is the answer or not, but at least worth a try.
    A few years ago, JBoss was VERY unforgiving if installed on a windows machine with a space in the path. Most JBoss functionality would work fine, but in some situations, it would complain about the URL, just as it has in your case. It looks to me as if you do have a space in your path. I don't know if they ever got around to fixing it (I filed the original bug on the JBoss bug system). It's at least worth a try, or at least a search through the JBoss site to see if this issue still exists.
    Catherine

Maybe you are looking for