Aadav N | 18 Nov 03:23 2012

[Beginner's Corner] - Re: Jboss 5.1.0 hanging while start up

JBoss Community

Re: Jboss 5.1.0 hanging while start up

created by Aadav N in Beginner's Corner - View the full discussion

Hi Srikanth,

 

Did you get to resolve this jBOSS AS 5.1 issues..? can you pls share the steps to avoid it.. I'm also facing the same issue

 

Thanks,

Aadav

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
vijay harikrishna | 18 Nov 07:38 2012

[Beginner's Corner] - h2console.war and postgreSQL

JBoss Community

h2console.war and postgreSQL

created by vijay harikrishna in Beginner's Corner - View the full discussion

Hi All,

 

Installed AS 7.1.1.Final on my MacBook Pro.

Downloaded the Quickstart examples. Was able to successfully deploy and test helloworld, jboss-as-greeter wars.

Then i set up the postgresql database engine to try jboss-as-cmt example. I was able to compile and deploy it.

Everything works great except for one thing - i am unable to connect to the postgresql database from the h2console web-app that is shipped with the application server.

 

The jboss-as-cmt war works perfectly i.e i am able to add customers to the invoice. I can psql into the db engine and i can see all the records. My only problem is that i can't use h2console webapp to get into my jboss-as-cmt postgres database i created.

 

I am using:

"org.postgresql.Driver" for the Driver Class field.

"jdbc:postgresql://127.0.0.1:5432/jboss-as-cmt" for the JDBC URL. This is the same as my connection-url value set in the standalone-full.xml config file.

"sa" for username and password.

When i press the "Test Connection" button on the h2console app, unfortunately i see -

 

Class "org.postgresql.Driver" not found [90086-161]
org.h2.message.DbException: Class "org.postgresql.Driver" not found [90086-161]
    at org.h2.message.DbException.get(DbException.java:158)
    at org.h2.util.Utils.loadUserClass(Utils.java:429)
    at org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:146)
    at org.h2.server.web.WebServer.getConnection(WebServer.java:653)
    at org.h2.server.web.WebApp.test(WebApp.java:839)
    at org.h2.server.web.WebApp.process(WebApp.java:215)
    at org.h2.server.web.WebApp.processRequest(WebApp.java:164)
    at org.h2.server.web.WebServlet.doGet(WebServlet.java:118)
    at org.h2.server.web.WebServlet.doPost(WebServlet.java:153)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
    at java.lang.Thread.run(Thread.java:680)
Caused by: org.h2.jdbc.JdbcSQLException: Class "org.postgresql.Driver" not found [90086-161]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
    ... 24 more
Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver from [Module "com.h2database.h2:main" from local module loader <at> b4e29b (roots: /Users/avyayatek/Downloads/jboss-as-7.1.1.Final/modules)]
    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at org.h2.util.Utils.loadUserClass(Utils.java:424)
    ... 22 more

 

I am able to establish a successful connection from the jboss admin management console (http://localhost:9990/console) to the datasource. On the datasources profile panel, i have the name of the datasource set to "postgresDS", jndi set to "java:jboss/postgresDS". Connection URL is same as what i am use on the h2console - "jdbc:postgresql://127.0.0.1:5432/jboss-as-cmt"

 

I don't know why h2console is not connecting to the postgresql db engine. It makes a successful connection to the h2 in-memory database that is used in the jboss-as-greeter example.

 

I have placed the JDBC driver in the $JBOSS_HOME/modules/org/postgresql/main folder. Created the module.xml there. There is a Driver.class file inside the jar in ~/org/postgresql/ folder. I have modified the $JBOSS_HOME/standalone/configuration/standalone-full.xml to add the postgresql related datasource and driver sections.

 

As i said, i can build jboss-as-cmt and deploy and it works as expected. If i could make the h2console connect to this postgresql database, it will give me some peace.

 

I am a newbie to JBoss and server side stuff in general.

 

I have attached some pics for reference.

 

Thanks for your time.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
Wolf-Dieter Fink | 18 Nov 14:54 2012

[Beginner's Corner] - Re: h2console.war and postgreSQL

JBoss Community

Re: h2console.war and postgreSQL

created by Wolf-Dieter Fink in Beginner's Corner - View the full discussion

As the h2console is a developer tool to connect to the h2 database which is the default for simple tests, I suppose that it will be not easy or even not possible to get it to work.

For the missing driver you need to set a dependency to the deployment-structure or MANIFEST.

But I suppose that the tool is more or less hardcoded for H2.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
lyman liu | 18 Nov 16:10 2012

[jBPM] - Re: [Jbpm5.2]how to get the image showing the current status of a workflow in the web application

JBoss Community

Re: [Jbpm5.2]how to get the image showing the current status of a workflow in the web application

created by lyman liu in jBPM - View the full discussion

hi,did you hava solve this question ,I also meet this problem,can u help me :-/



Reply to this message by going to Community

Start a new discussion in jBPM at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
Jiri Svitak | 18 Nov 17:17 2012

[jBPM] - Re: how to call tuscany sca service from script task

JBoss Community

Re: how to call tuscany sca service from script task

created by Jiri Svitak in jBPM - View the full discussion

I think that you've already described it. To compile a package in Guvnor you have to add a .jar file as a model and also import necessary classes in process properties. The same applies for your application, you have to make sure that necessary classes are on the classpath. But the problem is with the script task itself. It uses Eclipse compiler for Java by default, but this compiler cannot match standard javac compiler. You can use other small compiler like Janino, but this simple compiler does not support generic data types for example. So the script tasks are only for small pieces of code, not for complex code full of all Java features. Not to mention that script tasks block engine execution. Earlier I tried to upload a large .jar file as a model and invoke complex script task, but in the end without success.

 

Were you able to compile the package which contains your business process? If your script task doesn't execute, please provide a test case, it can be a bug.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
Mario Jaramillo | 18 Nov 21:10 2012

Re: [JBoss Web Services] - JBossWS - Installation

JBoss Community

JBossWS - Installation

new comment by Mario Jaramillo View all comments on this document

Hi, I downloaded "jbossws-cxf-4.1.0.Final" and "jboss-as-7.1.1.Final"

setting properties

 

# Optional JBoss Home

jboss710.home= <at> jboss710.home <at>

jboss711.home=C:\jboss-as-7.1.1.Final

jboss712.home= <at> jboss712.home <at>

jboss720.home= <at> jboss720.home <at>

 

# The JBoss server under test. This can be [jboss710|jboss711|jboss712|jboss720]

jbossws.integration.target=jboss711

 

- - And when I try execute  ant deploy-jboss711, obtain this error, someone has a suggestion please !!

 

C:\jbossws-cxf-bin-dist>ant deploy-jboss711

Buildfile: C:\jbossws-cxf-bin-dist\build.xml

 

target-jboss711:

 

prepare:

 

init:

     [echo] integration.target=jboss711

 

undeploy-jboss711:

 

BUILD FAILED

C:\jbossws-cxf-bin-dist\build\build-deploy.xml:110: Not available: C:jboss-as-7.1.1.Final/jboss-modules.jar

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
Genrose Hirudaysamy | 18 Nov 21:22 2012

[JBoss Web Services] - Re: Consume a web service from another web service

JBoss Community

Re: Consume a web service from another web service

created by Genrose Hirudaysamy in JBoss Web Services - View the full discussion

I am using Jboss 7.1.1

 

I am unable to run the attached hello service successfully.

It gives the following exception:

 

15:20:50,458 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/HelloWorldJAXWS].[jsp]] (http--127.0.0.1-8080-1) Servlet.service() for servlet jsp threw exception: javax.xml.ws.WebServiceException: Port {http://www.examples.com/wsdl/HelloService}Hello_Port not found.
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:328)
        at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319)
        at javax.xml.ws.Service.getPort(Service.java:99) [jboss-jaxws-api_2.2_spec-2.0.0.Final.jar:2.0.0.Final]
        at com.examples.wsdl.helloservice.HelloServiceClient.getHelloPort(HelloServiceClient.java:57) [classes:]

 

Could you show light on this. How to deploy hello.wsdl?



Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
harikris | 18 Nov 21:55 2012

[Beginner's Corner] - Re: h2console.war and postgreSQL

JBoss Community

Re: h2console.war and postgreSQL

created by harikris in Beginner's Corner - View the full discussion

Hi Wolf-Dieter,

 

Is the tool (h2console.war) that is shipped with jboss-quickstart always been like this - that we can only connect to the H2? I am just beginning to do server side development and never had any experience with app servers before (JBoss or otherwise).

 

I have added sections in the standalone-full.xml config file for loading the postgres sql driver and have defined the postgres datasource.

 

I can see that the driver getting loaded while the server starts:

 

[org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)

 

Isn't that sufficient?

 

Could you please point me to reading material on how to set the dependency in MANIFEST file?

Thanks a lot.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
spyhunter99 | 18 Nov 22:37 2012

[JBoss Web Services] - Re: Consume a web service from another web service

JBoss Community

Re: Consume a web service from another web service

created by spyhunter99 in JBoss Web Services - View the full discussion

I'm assuming that it deployed correctly. The most likely cause is in the HelloServiceClient.java, try changing the Hello_Port annotation to  Hello_PortType

 

 

I wrote the example using jbossws native on jbossas 5 and 6.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
Sebastian W. | 18 Nov 22:52 2012

[jBPM] - Re: Host property for jbpm5 console

JBoss Community

Re: Host property for jbpm5 console

created by Sebastian W. in jBPM - View the full discussion

In jBPM 5.3.0 the jbpm.console.properties can be found twice -.- For me it worked by adapting the version under gwt-console-server.war/web-inf/classes/jbpm.console.properties.

 

This whole configuration for a remote access with new users/roles and changed admin password is a disaster. There are too many configuration XMLs or Properties and you never no which one is used.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

_______________________________________________
jboss-user mailing list
jboss-user <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Gmane