Comments (4)
When I debugged it further, scannit library is not able to scan class when it is inside nested jar file.
from overthere.
@gkhakare Were you able to figure out a solution? I'm having the same problem with a Spring Boot app.
from overthere.
@Teshel I have changed the Overthere.java and loading the Protocol classes using method
private static void boot() {
final Set<Class> protocolClasses = getProtocolClassess();
for (Class protocol : protocolClasses) {
if (OverthereConnectionBuilder.class.isAssignableFrom(protocol)) {
final String name = protocol.getAnnotation(Protocol.class).name();
RMOverthere.protocols.get().put(name, (Class<? extends OverthereConnectionBuilder>) protocol);
} else {
logger.warn("Skipping class {} because it is not a HostConnectionBuilder.", protocol);
}
}
}
private static void boot(Scannit scannit) {
}
private static Set<Class<?>> getProtocolClassess() {
Set<Class<?>> set = new HashSet<Class<?>>();
set.add(SshConnectionBuilder.class);
set.add(CifsConnectionBuilder.class);
set.add(LocalConnection.class);
set.add(SmbConnectionBuilder.class);
set.add(ProxyConnection.class);
set.add(SshJumpstationConnectionBuilder.class);
return set;
}
from overthere.
With 4fa6795 you can now use OverthereConnector
instead of the Overthere
class to create connections. You can programmatically register the protocols you want to enable on the Connector.
from overthere.
Related Issues (20)
- com.hierynomus.smbj.Session.connectShare() can return a closed Share HOT 1
- No exception for no write permission HOT 2
- Intermittent Connection timeout on WinRM connections HOT 1
- overthere not connecting to STIG applied windows host HOT 3
- Unknown connection protocol ssh HOT 9
- Failed to obtain huawei switch configuration file using SFTP protocol HOT 1
- Access denied error
- WinRM Error: Unexpected HTTP response on some windows machines HOT 1
- Kerberos authentication problems due to changes in Apache HTTPClient 4.4.1
- Why WINRS (Native) is not supported inside unix box? HOT 1
- STATUS_INTERNAL_ERROR (0xc00000e5): QueryInfo failed for SMB2FileId HOT 1
- Unable to access the file, which is the AWS EC2 windows Machine jcifs.util.transport.TransportException: Connection timeout
- Read .ssh/config ?
- Execute Remote Process and exit without getting Attached to the process HOT 1
- CmdLine.build
- Strange behavior on long running commands HOT 1
- WinRM Error: java.net.SocketTimeoutException: connect timed out
- Incorrect ordering of StdErr and StdOut Output of powershell scripts
- how to switch root and use exec function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from overthere.