[JBoss Tools] - Problem with jBossTools after deleting runtimes on projects.
by James Drinkard
James Drinkard [https://community.jboss.org/people/james_drinkard] created the discussion
"Problem with jBossTools after deleting runtimes on projects."
To view the discussion, visit: https://community.jboss.org/message/805376#805376
--------------------------------------------------------------
Hello All,
We have an unusual setup for our eclipse deployments. We are using eclipse indigo, java 1.5, jboss EAP 4.3 and ant scripts for our builds, but the .metadata folder is out on a server. This was done so that everyone on the team can build using eclipse pointing to a workspace out on the server. This keeps our projects settings generic, which is needed due to size of the app and needing to keep it stable. Our lead dev put this generic version of eclipse out on the share so the other devs just copy it over to their machine and when they start it up all the settings are there for them.
The problem is I was having some issues with eclipse deployment version I had copied over and decided to delete the targeted runtimes from the projects. I left the server properties alone, but just deleted the runtimes from the individual projects that build our application. Now I can't add in the runtimes to the projects! We are only using the jboss eap server for the runtimes with our deployment eclipse, so it's added in, but unbound. We don't actually use the server to run the app from our deployment eclipse, only to get the runtimes in our build.
The other devs can still build with no problems and the runtimes show up fine for them, but I can't get the runtimes added as they don't display and the edit button is disabled.
What is odd is that the server tab shows files underneath for the other devs and they can doubleclick on the server and open up it's properties. When I do that I get an unable to open editor error.
Also, the type and vendor is missing when I view the server properties, so some metadata of some kind got lost. To add to all this, I'm concerned about just removing the server and trying to add it back in and messing up the configuration for everyone else. When I did a search to add in the runtimes I got a message that there are no new runtimes and I couldn't add them in that way.
It appears that there are some localized settings that account for this, not in eclipse as I deleted it and started over twice, but with jBoss Tools that we have installed. My eclipse installation shows I have jBoss Tools installed, but somehow, removing the runtimes messed it up. I don't see jBoss Central coming up anymore, the jBoss Central icon is missing from the Help drowpdown and on the toolbar. I'm trying to reinstall it, but I'm getting all kinds of dependency errors in the process.
+
+
So I'm thinking there are some local settings that I need to change, but I can't find them? Is it possible that there are localized settings specific to me that are out on there server? Is there any other reason to account for this? Any ideas as to how to solve this one?
PS I attached some screenshots.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805376#805376]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[Datasource Configuration] - Web -Services connection Handling
by gireesh g
gireesh g [https://community.jboss.org/people/ggireeshg] created the discussion
"Web -Services connection Handling"
To view the discussion, visit: https://community.jboss.org/message/787501#787501
--------------------------------------------------------------
Hi All,
1. I have implemented a *web service* with connection pooling(*oracle-ds.xml*) with *JBoss (http://www.coderanch.com/forums/f-63/JBoss)* server. In My business class, i am getting connection from pool and performing 4 to 5 DB operations, at last closing connection, statements and result set. It is working fine for one request.
2.If i tried for concurrent requests (Consider 5) only 1 or 2 processed, remaining failed with several reasons like (connection closed, statement closed, unusable connection, result set closed etc).
3.If i keep business class method as "synchronized" it is working fine. But it is serving only one request at a time (for concurrent request also). - This is slow downs my response time.
I came to know, This is connections problem, if one thread is doing DB operation, other thread is closing the connection or statement or result set.
Can any one help and tell me how to handle concurrent requests with out synchronized keyword.
Thanks in Advance.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/787501#787501]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[Javassist] - Multi ClassPool
by darthrooster
darthrooster [https://community.jboss.org/people/darthrooster] created the discussion
"Multi ClassPool"
To view the discussion, visit: https://community.jboss.org/message/805360#805360
--------------------------------------------------------------
Hi, i am newbe in Javassist and i have this problem:
i have below code:
ClassPool pool = ClassPool.getDefault();
ClassPool pool2 = ClassPool.getDefault();
ClassPool pool1 = new ClassPool(true); //Copy default classload
Loader cl = new Loader(pool);
Loader cl1 = new Loader(pool2);
Loader cl2 = new Loader(pool1);
ResProtAdapt.add(pool,"packageMain.TestMedia", "public static int TestMedia(int i, int j) { System.out.println(i+j); return i+j; }", "method");
ResProtAdapt.add(pool, "packageMain.TestMedia","public int Sum(int i) { return i + 1; }" , "method");
ResProtAdapt.add(pool2, "packageMain.TestMedia","public int Summ(int i) { return i + 1; }" , "method");
When it run, i have this output:
Description for class: packageMain.TestMedia
*POOL:*
Summary
-------------------------------------
Constructors: 1
Fields: 0
Methods: 5
Details
-------------------------------------
Constructors:
public packageMain.TestMedia()
Methods:
public static int packageMain.TestMedia.TestMedia(int,int)
public int packageMain.TestMedia.test(int)
public static int packageMain.TestMedia.calcolaMedia(int[])
public int packageMain.TestMedia.Sum(int)
public int packageMain.TestMedia.Summ(int)
Description for class: packageMain.TestMedia
*POOL2:*
Summary
-------------------------------------
Constructors: 1
Fields: 0
Methods: 2
Details
-------------------------------------
Constructors:
public packageMain.TestMedia()
Methods:
public int packageMain.TestMedia.test(int)
public static int packageMain.TestMedia.calcolaMedia(int[])
Description for class: packageMain.TestMedia
*POOL1:*
Summary
-------------------------------------
Constructors: 1
Fields: 0
Methods: 5
Details
-------------------------------------
Constructors:
public packageMain.TestMedia()
Methods:
public static int packageMain.TestMedia.TestMedia(int,int)
public int packageMain.TestMedia.test(int)
public static int packageMain.TestMedia.calcolaMedia(int[])
public int packageMain.TestMedia.Sum(int)
public int packageMain.TestMedia.Summ(int)
I would like that when i insert method in pool,it is not also projected in pool2...
I hope I was clear
thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805360#805360]
Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[jBPM] - CommandBasedWSHumanTaskHandler null: java.io.OptionalDataException
by Ouadi BEL
Ouadi BEL [https://community.jboss.org/people/ouadi_dev] created the discussion
"CommandBasedWSHumanTaskHandler null: java.io.OptionalDataException"
To view the discussion, visit: https://community.jboss.org/message/805069#805069
--------------------------------------------------------------
Hi,
When I want to complete a human task, this exception is triggered, and I'm not able to solve this situation :
17:17:46,192 ERROR [org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler] (NioProcessor-6) null: java.io.OptionalDataException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1358) [rt.jar:1.7.0_15]
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) [rt.jar:1.7.0_15]
at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:330) [jbpm-human-task-mina-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153) [jbpm-human-task-core-5.4.0.Final.jar:5.4.0.Final]
at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47) [jbpm-human-task-mina-5.4.0.Final.jar:5.4.0.Final]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.1.jar:]
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427) [mina-core-2.0.1.jar:]
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) [mina-core-2.0.1.jar:]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426) [mina-core-2.0.1.jar:]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:692) [mina-core-2.0.1.jar:]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:645) [mina-core-2.0.1.jar:]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:634) [mina-core-2.0.1.jar:]
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:66) [mina-core-2.0.1.jar:]
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1078) [mina-core-2.0.1.jar:]
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.1.jar:]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_15]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_15]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_15]
Here is my compete taskmethod code :
TaskClient client = null;
try {
client = connectToTaskServer(TASK_SERVER_HOST_IP_ADD,
TASK_SERVER_PORT);
BlockingTaskOperationResponseHandler responseHandler = new BlockingTaskOperationResponseHandler();
Map<String, Object> taskVariables = new HashMap<String, Object>();
// Currency validation accepted
taskVariables.put("o_validationResult", true);
client.completeWithResults(aTaskId, aOwnerId, taskVariables, responseHandler);
responseHandler.waitTillDone(2000);
client.disconnect();
} catch (Exception e) {
try {
client.disconnect();
} catch (Exception e1) {
e1.printStackTrace();
}
e.printStackTrace();
logger.error("Unable to completing the Task '" + aTaskId
+ "' assigned to user '" + aOwnerId + "' : " + e.toString());
throw new TaskManagerException("Unable to completing the Task '"
+ aTaskId + "' assigned to user '" + aOwnerId + "' : "
+ e.toString(), e);
}
After hard searching in the net, I'm not able to detect where this exception triggered !
Here is exception javadoc :
http://docs.oracle.com/javase/6/docs/api/java/io/OptionalDataException.html http://docs.oracle.com/javase/6/docs/api/java/io/OptionalDataException.html
Thanks for helps.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805069#805069]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years
[JBoss Tools] - error after push a application on openshift from jbossdeveloper
by mauro chi
mauro chi [https://community.jboss.org/people/maurojavajdeveloper] created the discussion
"error after push a application on openshift from jbossdeveloper"
To view the discussion, visit: https://community.jboss.org/message/805240#805240
--------------------------------------------------------------
hi all.
i have created from the web interface from web site openshift a diy application.
Then i heve with jbossdeveloper imported the new application ( that i heve named tomee )
Then i have modify it following the tomcat7 quick start on github.,
i have commited the modify and i have pushed from the jbossdeveloper at openshift application .
i have following the tutorial:
http://docs.jboss.org/tools/latest/en/openshift_tools_reference_guide/htm...
THe import existenting application created from web interface of openshift . it is that that i have make .
but finally i get the following error:
Repository
ssh:// http://51539fbae0b8cdbcb700004b@tomee-sito.rhcloud.com/%7E/git/tomee.git/ 51539fbae0b8cdbcb700004b(a)tomee-sito.rhcloud.com/~/git/tomee.git/
restart_on_add=false
Done
restart_on_add=false
Running
.openshift/action_hooks/pre_
build
Running
.openshift/action_hooks/build
Running .openshift/action_hooks/deploy
+
'[' -d /var/lib/openshift/51539fbae0b8cdbcb700004b/app-root/data//tomcat
']'
+ cp -rf
/var/lib/openshift/51539fbae0b8cdbcb700004b/app-root/runtime/repo//diy/tomee
/var/lib/openshift/51539fbae0b8cdbcb700004b/app-root/data/
+ cd
/var/lib/openshift/51539fbae0b8cdbcb700004b/app-root/data//tomee
+ rm
-rf logs
+ ln -s
/var/lib/openshift/51539fbae0b8cdbcb700004b/diy-0.1/logs/ logs
+ sed -ig
s/OPENSHIFT_APP_DNS/ http://tomee-sito.rhcloud.com/ tomee-sito.rhcloud.com/
conf/server.xml
hot_deploy_added=false
+ cd
/var/lib/openshift/51539fbae0b8cdbcb700004b/app-root/data//tomee
+ sed
-ig s/OPENSHIFT_INTERNAL_IP/ http://127.9.79.129/g 127.9.79.129/g conf/server.xml
+
bin/startup.sh
/var/lib/openshift/51539fbae0b8cdbcb700004b/app-root/runtime/repo//
line 15: bin/startup.sh: Permission denied
Failed to start
diy-0.1
Running .openshift/action_hooks/post_deploy
-----------------------------------------------------------------------------------------------------------
into the .openshift/action_hooks/
i have 6 fiels :
.openshift/action_hooks/pre_build
.openshift/action_hooks/build
.openshift/action_hooks/deploy
.openshift/action_hooks/start:
.openshift/action_hooks/stop
.openshift/action_hooks/post_deploy
the files above it recall the fiels of strtupo of tomee. and revrite thee variable for thte ipinternal and port .
but if i understand it not can run the fiels above.
The project from jdeveloper it is from my win7 machine ,
I not can set chomd .x ( to make the fiel executabel) from windows not is possible.
or i have erro int othe files?
-------------------------------------------------------------
i have :
1) create a diy applicatio non web site on openshift
2) i have impoter int ojbossdeveloper the diy application from openshift
3) i have downloaded the https://github.com/lulinqing/openshift-tomcat-quickstart https://github.com/lulinqing/openshift-tomcat-quickstart like a zip
4) i have modified my tomee project for use tomee . i have modified into the filess int othe .openshit/action_hooks the word tomcat with tomee.
5) into the diy directory i have created a directory tomee and i have pasted into it the files of tomee
6) i have copied the files server.xml and tomcat.user.xml and pasted into dir conf of tomee
7) i have added the tomee listener on server.xml copied form tomcat quickl start
8) into the users.tomcat.xml i have added the user for tomee and manger-gui with usename and password.
9 ) i have from the project added the fiels form team menu ogf jbossdeveloper
10) i have form the tema menu commited and pushed at openshift
but i get the error above .
Help me please .
Mauro
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/805240#805240]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years