[EJB3] - Help needed - Rest Services deployed but are not accessible
by Avinash Munaga
Avinash Munaga [http://community.jboss.org/people/avinashmunaga] created the discussion
"Help needed - Rest Services deployed but are not accessible"
To view the discussion, visit: http://community.jboss.org/message/637852#637852
--------------------------------------------------------------
Hi All,
Need some help in fixing my problem.
I have an .ear file which consists of jar's, rar's and war files. The webmodules in my project are of different kinds. Some are just dynamic web projects while some other projects implements Webservices with JAX-RS implementation. Also I have an EJB which implements accel services.
My Enterprise Application is deployed and installed on JBoss (which I am assuming as there are no errors on the console while deploying and I can see all the modules of the .ear file UP in the admin console webpage of JBoss server ). Now the problem is that, when I am trying to login on a webpage, the request has to go from that webpage to the RestService in another web project through the Jboss server. But, the request is not coming to the server. I found that there was a 404 page not found error on the browser error console.
The request comes from one the login page of one Web project to another web project implementing JAX-RS Rest Services through *AJAX.* I am using JBoss 5.1 AS in IBM Rational Application Developer.
I have tried all the things available on web to fix this issue but unable to do so. Can some one help me out in fixing this issue as I am new to working with JBoss.
Thanks in Advance.
Regards,
Avinash.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637852#637852]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Portal] - error running jsp page in jboss, any ideas how to fix?
by Nick Gun
Nick Gun [http://community.jboss.org/people/reggsoft] created the discussion
"error running jsp page in jboss, any ideas how to fix?"
To view the discussion, visit: http://community.jboss.org/message/637834#637834
--------------------------------------------------------------
error running jsp page in jboss, any ideas how to fix?
*type* Exception report
*message*
*description* The server encountered an internal error () that prevented it from fulfilling this request.
*exception*
org.apache.jasper.JasperException: java.lang.NullPointerException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:413) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
*root cause*
java.lang.NullPointerException javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1858) org.apache.jsp.temp_jsp._jspx_meth_f_005fview_005f0(temp_jsp.java:110) org.apache.jsp.temp_jsp._jspService(temp_jsp.java:88) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
*note* The full stack trace of the root cause is available in the JBoss Web/7.0.1.Final logs.
---------------
04:42:44,245 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-
host].[/citypress-1.0-SNAPSHOT].[jsp]] (http--127.0.0.1-8080-1) Servlet.service(
) for servlet jsp threw exception: java.lang.NullPointerException
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClas
sicTagBase.java:1858) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]
at org.apache.jsp.temp_jsp._jspx_meth_f_005fview_005f0(temp_jsp.java:110
)
at org.apache.jsp.temp_jsp._jspService(temp_jsp.java:88)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [j
bossweb-7.0.1.Final.jar:7.0.2.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-s
ervlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:369) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
26) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jb
ossweb-7.0.1.Final.jar:7.0.2.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-s
ervlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(Secu
rityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-we
b-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmC
loserValve.java:49) [jboss-as-jpa-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:877) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:667) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:95
2) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:722) [:1.7.0]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637834#637834]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Tools] - Three Crazy Weeks
by Max Rydahl Andersen
Max Rydahl Andersen [http://community.jboss.org/people/maxandersen] modified the blog post:
"Three Crazy Weeks"
To view the blog post, visit: http://community.jboss.org/community/tools/blog/2011/11/22/three-crazy-weeks
--------------------------------------------------------------
I’ve been on the road two out of the last three weeks, speaking and attending three conferences: JUDCon London, EclipseCon in Ludwigsburg and finally Devoxx in Antwerp.
h1. JUDCon London
At JUDCon I was co-hosting the third live JBoss Asylum Podcast together with Emmanuel Bernard. The topic was “Polyglot JBoss” with Marek Goldmann and Galder Zamarreno as guests talking about how JBoss supports, extends and develop on multiple languages outside just Java.
The recording of this is http://asylum.libsyn.com/webpage/podcast-22-polyglot-j-boss-at-jud-con-lo... available on JBoss Asylum site or http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=332953048 iTunes.
http://1.bp.blogspot.com/-rnnqJg4dzBQ/TrD6Z1ZWqMI/AAAAAAAAGSc/xOl-FFsU7KM... http://1.bp.blogspot.com/-rnnqJg4dzBQ/TrD6Z1ZWqMI/AAAAAAAAGSc/xOl-FFsU7KM... Image curtesy Eric D. Schabell.
After the panel we got a set of lightning talks done by JBossians and external contributors which I had the pleasure of moderating. Was great fun.
I did the first lightning talk about how you make your examples for your framework/distribution the most accessible to users. Not everyone liked the conclusion, but I got good feedback on the content, thus I re-recorded the audio for this talk.
I’ve made the slides available together with the audio on http://vimeo.com/groups/jbosstools/videos/32501925 JBoss Tools Vimeo group.
If you just want the the slides you can get those from http://www.slideshare.net/maxandersen/ my SlideShare
At JUDCon I spent most of my time talking with attendees and colleagoues, but also did find time to attend a few talks. One of those stood out, namely “Hibernate Puzzlers” by Patrycja from http://twitter.com/yonlabs @yonlabs. She presented a set of puzzlers and even though I knew all the issues she was presenting on, her puzzlers did caught me being unsure what the right answer was. Well worth watching if you get a chance.
h1. EclipseCon
At Eclipsecon Europe they were celebrating it was 10 years since the first release of Eclipse the IDE. I unfortunately missed out on the party and cake since I was sure the celebration would be on the Thursday not Wednesday. Instead I spent that evening having early dinner with Fred Bricon and then we went separate ways to prepare for our talks the next day.
Fred did his first public presentation for Red Hat called “ http://eclipsecon.org/sessions/workaround-driven-development-how-maven-in... Workaround Driven Development: How Maven integrates with Eclipse WTP”. He covered how the https://github.com/sonatype/m2eclipse-wtp/wiki m2e-wtp project makes Maven usable in context of Eclipse WTP projects and how it was technically done by bridging Eclipse and Maven’s two different worldviews on projects.
All during EclipseCon we got very good feedback from users of m2e-wtp and how it was the piece they were missing to actually be productive within their work on enterprise projects - always good to hear we and especially Fred's work are making a difference.
My talk was about the experiences we’ve done with the move to Tycho on the JBoss Tools project. It was hard to boil it down to a 20 minutes presentation but I think I succeded.
If you want to see and hear the presentation it is available from EclipseCon’s audio/video recordings under: http://www.fosslc.org/drupal/content/tycho-good-bad-and-ugly Tycho - The good, the bad and the ugly
http://fosslc.org/drupal/content/tycho-good-bad-and-ugly http://content.screencast.com/users/max.rydahl.andersen/folders/Jing/medi...
h1. Devoxx
Devoxx also had its 10th anniversary in Antwerp and I had the pleasure to attend and speak again this year. This year with a quickie on how to “ http://www.devoxx.com/display/DV11/Deploy+JEE+applications+to+OpenShift Deploy Java EE Applications to OpenShift”. I also got to reveal the news and do a demo of the new Jenkins support on OpenShift.
https://lh6.googleusercontent.com/-eEBJLVkZcNQ/TsreV-JMRWI/AAAAAAAABPQ/rH... https://lh6.googleusercontent.com/-eEBJLVkZcNQ/TsreV-JMRWI/AAAAAAAABPQ/rH...
All in all a good talk but I don’t have a recording of this talk but the OpenShift team released a video covering similar content.
http://www.youtube.com/watch?v=4Htd9vAxJAc&feature=player_embedded “Deploying Java Apps to the Cloud with the OpenShift Eclipse Plug-in”
They even made a cartoon over the whole OpenShift release including JBoss Tools called “A Comprehensive Lifecycle for Java Developers in the Cloud with OpenShift (http://www.youtube.com/watch?v=raXByPQTd8s)”
Devoxx is also the conference in Europe where I get to meet up with many of the JBoss folks speaking there and this year was no exception. What was exceptional this year was though that we had a small booth this year leaving no space for the traditional fussball table. That was no fun. Lincoln, Kabir and I did though find a way have fun since there was beer and helium baloons at the booth:
http://vimeo.com/32212118 http://vimeo.com/32212118
Beyond having fun with helium I was also happy to hear that Google finally announced their opensourcing of their GWT Eclipse plugin tools. You can read my thoughts on that in http://community.jboss.org/community/tools/blog/2011/11/16/thoughts-on-go... my previous blog entry.
The most work was though on helping getting the http://ceylon-lang.org Ceylon website and Eclipse updatesite ready for the planned launch at the end of Emmanuel Bernard and Stephan’s talk about Ceylon.
That turned out to be quite tricky despite Devoxx wifi being the best ever, but we made it through and now everyone can try out David Festal's Ceylon IDE by following the http://ceylon-lang.org/documentation/ide/ instructions on ceylon-lang.org
Pierre-Antoine Gregorie snapped a photo of us hacking away on getting the site in shape:
https://lh6.googleusercontent.com/-PJyLY2zLhbk/TsfJQktiS5I/AAAAAAAAyHU/uI... https://lh6.googleusercontent.com/-PJyLY2zLhbk/TsfJQktiS5I/AAAAAAAAyHU/uI...
All in all three very busy weeks and I here I’m not even covering all the other work that went on, but I’ll hopefully be able to write about the end-results of that in the upcoming weeks and months.
Until then, Have fun!
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/community/tools/blog/2011/11/22/three-crazy-weeks]
13 years
[jBPM] - Process Version
by Amin Mohammed-Coleman
Amin Mohammed-Coleman [http://community.jboss.org/people/amin-mc] created the discussion
"Process Version"
To view the discussion, visit: http://community.jboss.org/message/636850#636850
--------------------------------------------------------------
Hi
I have the a process definition with an id of "process-A" and a version of 1. I have process instances which refer to the process definition. I then create a new process definition which is a new version of process-A and give it the id of 'process-A' and version 2. Should the old process instances use the old version and new process instances should use the new version? This does not seem to be the case. It seems as though my old process instance is using the new version and the knowlegdebase hasn't registered the old version of the process definition even though I have specified this. Am i missing something? Do you need a new process id for the updated process definition? Surely I would expect to be able to load 2 bpmn process definition with the same id but different versions and the process instance should use the approriate definition....
Any help on this would be appreciated.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/636850#636850]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - Re: JBPM 3.2.5, MSSQL 2005 - blocking in JBPM_JOB table
by Alejandro Guizar
Alejandro Guizar [http://community.jboss.org/people/alex.guizar%40jboss.com] created the discussion
"Re: JBPM 3.2.5,MSSQL 2005 - blocking in JBPM_JOB table"
To view the discussion, visit: http://community.jboss.org/message/563437#563437
--------------------------------------------------------------
> Looking at how the jbpm_job table is utilized, yes, I think these specific indexes can be removed. Just to clarify. From what I have seen in *our use-case*, under normal circumstances the jbpm_job table has very few entries at any point in time. Seems like entries are added and removed constantly. That being the case, I'm not sure I can see a benefit of spending the extra time/resources maintaining indexes which are never utilized.
I'm going to explore the possibility of removing the job indexes. Can you please https://jira.jboss.org/browse/JBPM create a JIRA issue for this?
> By the way, this is as good a time to explain the use-case that is failing for us. We have a workflow with three steps synchronous steps. The first step takes a couple to a few hundred milliseconds to complete, the second step can take anywhere from 5 to 30 seconds to complete and then the last step usually takes a half a second. When I mentioned jobs earlier, I was referring to workflows contained the three steps just mentioned.
If possible, could you attach your workflow and test harness to the JIRA issue? Please remove any sensitive information you would not like to see published.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563437#563437]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Portal] - How to implement a custom identity model for JBoss Portal?
by Thomas Raab
Thomas Raab [http://community.jboss.org/people/prisemut] created the discussion
"How to implement a custom identity model for JBoss Portal?"
To view the discussion, visit: http://community.jboss.org/message/637123#637123
--------------------------------------------------------------
Hello!
I want to implement a custom identity model in order to connect to a proprietary webservice providing user information.
So I followed the instructions on http://docs.jboss.com/jbportal/v2.7.1/referenceGuide/html/identity.html http://docs.jboss.com/jbportal/v2.7.1/referenceGuide/html/identity.html.
I am using JBoss Portal 2.7.2 with JBoss AS 4.2.3; java version 1.6.0_29
Here are the steps that I've done:
Creating a new maven project, pom.xml snippet:
<dependency>
<groupId>org.jboss.portal.identity</groupId>
<artifactId>identity-identity</artifactId>
<version>1.0.7</version>
<scope>provided</scope>
</dependency>
Implementation of the User interface:
package com.mycompany.myIdentity;
import org.jboss.portal.identity.IdentityException;
import org.jboss.portal.identity.User;
public class MyUserImpl implements User {
...
}
Packaged to a jar file and deployed (= copied) to
\jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\lib.
Changes in \jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\conf\identity\identity-config.xml,
replacing the existing User-type module with the new one (it doesn't need any config):
<module>
<type>User</type>
<service-name>portal:service=Module,type=User</service-name>
<class>com.mycompany.myIdentity.MyUserImpl</class>
<config/>
</module>
After starting the server by double-clicking the run.bat und browsing the site http://localhost:8080/portal http://localhost:8080/portal
I get the following exception:
>
> exception
>
> javax.servlet.ServletException: org.hibernate.HibernateException: Unable to locate current JTA transaction
> org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
> root cause
>
> org.hibernate.HibernateException: Unable to locate current JTA transaction
> org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
> org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)
> org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:252)
> org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getContext(AbstractPortalObjectContainer.java:112)
> org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.getContext(AbstractPortalObjectContainer.java:81)
> org.jboss.portal.core.model.portal.DefaultPortalCommandFactory.doMapping(DefaultPortalCommandFactory.java:72)
> org.jboss.portal.core.controller.Controller.handle(Controller.java:252)
> org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
> org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
> org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
> org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:252)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
I get the same exception even without deploying the jar file, just by changing the identity-config.xml file. So I assume
that my jar isn't loaded at all. Furthermore my new module has nothing to do with databases and thus needs no JTA transaction.
So what am I missing to get this thing working?
Thanks in advance for your help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/637123#637123]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years